Browse Source

王子文 月报 bug fix: 修复了日报/月报数据未录入时修改单价维护表格引发空指针异常的问题

wangggziwen 2 years ago
parent
commit
b4a0a1b5f4

+ 3 - 0
master/src/main/java/com/ruoyi/project/production/service/impl/thread/SyncAfterMonthlyUpdateThread.java

@@ -61,6 +61,9 @@ public class SyncAfterMonthlyUpdateThread extends Thread {
      */
     private void syncMonthlyData() {
         TMonthlyProductionReport report = tMonthlyProductionReportMapper.selectTMonthlyProductionReportByDate(this.reportYear, this.reportMonth);
+        if (report == null) {
+            return;
+        }
 
         String ethylenProducedStr = report.getEthylenProduced();
         String fuelGasOffgasCrackerStr = report.getFuelGasOffgasCracker();