Commit 5158ac54 authored by 喻春霖's avatar 喻春霖

modify the get app version

parent 8f8c742f
...@@ -252,14 +252,15 @@ public class LogStatisticsController { ...@@ -252,14 +252,15 @@ public class LogStatisticsController {
public MapMessage authApps() { public MapMessage authApps() {
List<StatItem> result = new ArrayList<>(); List<StatItem> result = new ArrayList<>();
StatItem item1 = new StatItem(); List<ClientItem> clients = oauthClient.getClients();
item1.setName("数字教材"); if (CollectionUtils.isNotEmpty(clients)){
item1.setCode("asfsafdsf"); clients.forEach(item -> {
StatItem item2 = new StatItem(); StatItem statItem = new StatItem();
item2.setName("阅览室"); statItem.setCode(item.getClientId());
item2.setCode("safsadfasd"); statItem.setName(statItem.getName());
result.add(item1); result.add(statItem);
result.add(item2); });
}
return MapMessage.successMessage().add("data", result); return MapMessage.successMessage().add("data", result);
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment