Commit 93211e08 authored by 赵啸非's avatar 赵啸非

修改评价统计更新与组合查询

parent 5bcdefb0
......@@ -80,11 +80,13 @@ public class PhQueueStatController extends BaseCRUDJsonBodyMappingController<PhQ
Map<String, String> windowFromnumMap = cacheService.hgetAll(RedisKey.KEY_SITE_QUEUE_WINDOW_CHCHE + siteId);
Map<String, String> bussinessMap = cacheService.hgetAll(RedisKey.KEY_SITE_QUEUE_BUSNIESS_CHCHE + siteId);
Map<String, Integer> m1 = sectionNameMap.entrySet().stream()
.sorted((e1, e2) -> Integer.compare(Integer.parseInt(e1.getValue()), Integer.parseInt(e2.getValue())))
.collect(Collectors.toMap(Map.Entry::getKey,
y->Integer.parseInt(y.getValue()),(e1, e2) -> e1,
LinkedHashMap::new));
List<Map<String, Integer>> m1 = sectionNameMap.entrySet().stream()
.sorted((e1, e2) -> Integer.compare(Integer.parseInt(e2.getValue()), Integer.parseInt(e1.getValue())))
.map(item->{
Map<String, Integer> map = new HashMap<>();
map.put(item.getKey(), Integer.parseInt(item.getValue()));
return map;
}).collect(Collectors.toList());
this.addDict(model, "sectionNameList", m1);
this.addDict(model, "hallNameList", hallNameMap);
......
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