浏览代码

我收到的周日报修复

zhangjq 1 年之前
父节点
当前提交
afea08f2a6

+ 1 - 1
zjugis-module-adm/zjugis-module-adm-biz/src/main/java/com/zjugis/module/adm/service/report/ReportServiceImpl.java

@@ -204,7 +204,7 @@ public class ReportServiceImpl implements ReportService {
         if (CollectionUtil.isEmpty(userReportReceiveList)) {
             return new PageResult<>();
         }
-        List<Long> reportIdList = userReportReceiveList.stream().filter(c -> c.getReportId() != null).map(ReportReceiveRespVO::getReportId).distinct().collect(Collectors.toList());
+        List<Long> reportIdList = userReportReceiveList.stream().filter(c -> c.getReportId() != null).limit(2000).map(ReportReceiveRespVO::getReportId).distinct().collect(Collectors.toList());
 
         //获取报告分页列表
         LambdaQueryWrapper<ReportDO> queryWrapper = new LambdaQueryWrapper<>();

+ 1 - 1
zjugis-module-adm/zjugis-module-adm-biz/src/main/java/com/zjugis/module/adm/service/reportreceive/ReportReceiveServiceImpl.java

@@ -130,7 +130,7 @@ public class ReportReceiveServiceImpl implements ReportReceiveService {
             return Collections.emptyList();
         }
         return ReportReceiveConvert.INSTANCE.convertList(reportReceiveMapper.selectList(new LambdaQueryWrapperX<ReportReceiveDO>()
-                        .eq(ReportReceiveDO::getDeleted,0)
+                        .eq(ReportReceiveDO::getDeleted,0).orderByDesc(ReportReceiveDO::getUpdateTime)
                 .eqIfPresent(ReportReceiveDO::getReceiveUserId, userId)));
     }