Browse Source

修复报告提交统计数量与列表不一致问题

fuyuchuan 4 weeks ago
parent
commit
40815f9fe6

+ 2 - 1
service-iot/service-iot-biz/src/main/java/com/usky/iot/service/impl/PmTimeConfServiceImpl.java

@@ -289,7 +289,8 @@ public class PmTimeConfServiceImpl extends AbstractCrudService<PmTimeConfMapper,
 
         LambdaQueryWrapper<PmWorkReport> reportQuery = new LambdaQueryWrapper<>();
         reportQuery.eq(PmWorkReport::getTenantId, tenantId)
-                .eq(PmWorkReport::getReportDate, countDate);
+                .eq(PmWorkReport::getReportDate, countDate)
+                .eq(PmWorkReport::getReportStatus, 1);
         switch (queryType) {
             // 按时提交
             case 0:

+ 1 - 1
service-iot/service-iot-biz/src/main/java/com/usky/iot/service/impl/PmWorkReportServiceImpl.java

@@ -774,7 +774,7 @@ public class PmWorkReportServiceImpl extends AbstractCrudService<PmWorkReportMap
         try {
             remoteMceService.addMce(jsonObject.toString());
         } catch (Exception e) {
-            throw new BusinessException("报告提醒通知失败" + e);
+            log.error("报告提醒通知推送消息中心异常" + e);
         }
     }
 }