فهرست منبع

工作报告统计优化

zhangjq 1 سال پیش
والد
کامیت
54d7696521

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

@@ -285,7 +285,7 @@ public class ReportServiceImpl implements ReportService {
         }
 
         if(StrUtil.isNotBlank(reportStatisticReqDTO.getUserId())){
-            records.stream().filter(user -> reportStatisticReqDTO.getUserId().equals(user.getId())).collect(Collectors.toList());
+            records = records.stream().filter(user -> reportStatisticReqDTO.getUserId().equals(user.getId())).collect(Collectors.toList());
         }
         //获取工作报告
         Map<String, List<ReportDO>> staffReportMap = this.getReport(reportStatisticReqDTO.getReportType(), year, month, deptIds, reportStatisticReqDTO.getUserId());