|
@@ -119,7 +119,8 @@ public class MceReceiveServiceImpl extends AbstractCrudService<MceReceiveMapper,
|
|
|
contentIds.add(page.getRecords().get(i).getId());
|
|
|
}
|
|
|
QueryWrapper<MceReceive> queryWrapper = Wrappers.query();
|
|
|
- queryWrapper.select("content_id AS contentId","COUNT(read_flag=0 or null) as notReadCount","COUNT(read_flag=1 or null) as readCount")
|
|
|
+ queryWrapper.select("content_id AS contentId","COUNT(read_flag=0 or null) as notReadCount","COUNT" +
|
|
|
+ "(read_flag=1 or null) as readCount","issuer_name AS issuerName")
|
|
|
.in("content_id",contentIds)
|
|
|
.groupBy("content_id");
|
|
|
List<Map<String,Object>> readStatisticList = this.listMaps(queryWrapper);
|
|
@@ -134,6 +135,7 @@ public class MceReceiveServiceImpl extends AbstractCrudService<MceReceiveMapper,
|
|
|
if (page.getRecords().get(i).getId().equals(readStatisticList.get(j).get("contentId"))){
|
|
|
map.put("notReadCount", readStatisticList.get(j).get("notReadCount"));
|
|
|
map.put("readCount", readStatisticList.get(j).get("readCount"));
|
|
|
+ map.put("userName", readStatisticList.get(j).get("issuerName"));
|
|
|
}
|
|
|
}
|
|
|
list.add(map);
|