buzhanyi 2 éve
szülő
commit
24c6b4bd81

+ 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);