Browse Source

调整消息管理字段返回

hanzhengyi 10 tháng trước cách đây
mục cha
commit
b7265b583a

+ 3 - 1
base-modules/service-system/service-system-biz/src/main/java/com/usky/system/service/impl/MceReceiveServiceImpl.java

@@ -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);