소스 검색

问题处理

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