Przeglądaj źródła

外部报验功能-每日报表

wangming 1 rok temu
rodzic
commit
c4280f340e

+ 3 - 1
business-common/src/main/java/com/rongwei/bscommon/sys/service/impl/ZhcxReprotSameDayRealTimeInspectionStatisticsServiceImpl.java

@@ -89,7 +89,7 @@ public class ZhcxReprotSameDayRealTimeInspectionStatisticsServiceImpl extends Se
         ZhcxReprotSameDayRealTimeInspectionStatisticsDo mainEntity = ZhcxReprotSameDayRealTimeInspectionStatisticsDo.builder()
                 .statistictime(statisticsTime)
                 .statisticday(DateUtil.format(statisticsTime, "yyyy-MM-dd"))
-                .appliedqty(0)
+                .appliedqty(inspetionList.size())
                 .executedqty(0)
                 .tobeexecutedqty(0)
                 .receivedqty(0)
@@ -125,6 +125,8 @@ public class ZhcxReprotSameDayRealTimeInspectionStatisticsServiceImpl extends Se
                 locationDo.setDeleted("0");
             }
 
+            locationDo.setAppliedqty(locationDo.getAppliedqty() + 1);
+
             //报验完成
             if("30".equals(row.getInspectionstatus())) {
                 //接收