yzc преди 1 година
родител
ревизия
aeb76f3553
променени са 1 файла, в които са добавени 4 реда и са изтрити 0 реда
  1. 4 0
      hx-form/src/main/java/com/fjhx/form/service/impl/ReportServiceImpl.java

+ 4 - 0
hx-form/src/main/java/com/fjhx/form/service/impl/ReportServiceImpl.java

@@ -450,6 +450,10 @@ public class ReportServiceImpl implements ReportService {
             JSONObject item = receivableAccount.getJSONObject("" + month);
             Long customerId = receivableAccount.getLong("customerId");
 
+            if (ObjectUtil.isEmpty(customerId)) {
+                continue;
+            }
+
             DateTime parse = DateUtil.parse(StrUtil.format("{}-{}", dto.getYear(), month), "yyyy-MM");
 
             CustomerPayableBalance customerPayableBalance = customerPayableBalanceService.getOne(q -> q