|
@ -70,6 +70,9 @@ public class DcDeviceOnlineController extends BaseController { |
|
|
if(StringUtil.isEmpty(params.getOrderByField()) ||"time".equals(params.getOrderByField())) { |
|
|
if(StringUtil.isEmpty(params.getOrderByField()) ||"time".equals(params.getOrderByField())) { |
|
|
params.setOrderByField("online_rate"); |
|
|
params.setOrderByField("online_rate"); |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
params.setStakeMark(params.getStakeMark().replace(" ","+")); |
|
|
|
|
|
|
|
|
List<OnlineSum> sums = onlineSumService.queryByDeviceTypesOfToday(params); |
|
|
List<OnlineSum> sums = onlineSumService.queryByDeviceTypesOfToday(params); |
|
|
Map<String,List<OnlineSum>> sumsMap = sums.stream().collect(Collectors.groupingBy(OnlineSum::getDeviceType)); |
|
|
Map<String,List<OnlineSum>> sumsMap = sums.stream().collect(Collectors.groupingBy(OnlineSum::getDeviceType)); |
|
|
LinkedHashMap<String,Object> map = new LinkedHashMap<>(); |
|
|
LinkedHashMap<String,Object> map = new LinkedHashMap<>(); |
|
@ -96,6 +99,7 @@ public class DcDeviceOnlineController extends BaseController { |
|
|
params.setOrderByField("online_rate"); |
|
|
params.setOrderByField("online_rate"); |
|
|
} |
|
|
} |
|
|
startPage(); |
|
|
startPage(); |
|
|
|
|
|
params.setStakeMark(params.getStakeMark().replace(" ","+")); |
|
|
List<OnlineSum> sums = onlineSumService.queryByDeviceTypesOfToday(params); |
|
|
List<OnlineSum> sums = onlineSumService.queryByDeviceTypesOfToday(params); |
|
|
/*Map<String,OnlineSum> onlineSumMap = redisCache.getCacheMap(RedisKeyConstants.DEVICE_ONLINE); |
|
|
/*Map<String,OnlineSum> onlineSumMap = redisCache.getCacheMap(RedisKeyConstants.DEVICE_ONLINE); |
|
|
String date = LocalDate.now().toString();*/ |
|
|
String date = LocalDate.now().toString();*/ |
|
|