浏览代码

问题处理

yzc 10 月之前
父节点
当前提交
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