소스 검색

DeBugDeBugDeBug

buzhanyi 2 년 전
부모
커밋
24c6b4bd81
1개의 변경된 파일2개의 추가작업 그리고 2개의 파일을 삭제
  1. 2 2
      purchase-system/src/main/java/com/ozs/pm/service/impl/PmDemandServiceImpl.java

+ 2 - 2
purchase-system/src/main/java/com/ozs/pm/service/impl/PmDemandServiceImpl.java

@@ -3481,13 +3481,13 @@ public class PmDemandServiceImpl extends ServiceImpl<PmDemandMapper, PmDemand> i
         //本年度提报:状态为“标后质疑”后的数据
         StatisticalChartsResVo zLastYear = pmDemandMapper.selectZJLastYear(pmDemandReqVo);
         StatisticalChartsResVo tThisYear = pmDemandMapper.selectTBThisYear(pmDemandReqVo);
-        if (ObjectUtils.isEmpty(zLastYear)) {
+        if (ObjectUtils.isEmpty(zLastYear.getNum())) {
             zLastYear = new StatisticalChartsResVo();
             zLastYear.setNum(0);
             zLastYear.setEvaluationTotal(BigDecimal.ZERO);
             zLastYear.setEvaluationContractTotal(BigDecimal.ZERO);
         }
-        if (ObjectUtils.isEmpty(tThisYear)) {
+        if (ObjectUtils.isEmpty(tThisYear.getNum())) {
             tThisYear = new StatisticalChartsResVo();
             tThisYear.setNum(0);
             tThisYear.setEvaluationTotal(BigDecimal.ZERO);