Prechádzať zdrojové kódy

核减修改报错修改

chenjun 1 rok pred
rodič
commit
d36c519830

+ 1 - 1
zjugis-business/src/main/java/com/zjugis/business/flow/commoncost/service/CommonCostServiceImpl.java

@@ -215,7 +215,7 @@ public class CommonCostServiceImpl implements CommonCostService {
         CommonCostDO updateObj = CommonCostConvert.INSTANCE.convert(updateReqVO);
         commonCostDao.updateById(updateObj);
         //发生核减后修改流程描述
-        if(updateReqVO.getBz2()!=null){
+        if(StringUtils.isNotEmpty(updateReqVO.getBz2())){
             CommonCostDO entity = commonCostDao.selectById(updateReqVO.getId());
             List<CommonCostDetailDO> detailList = commonCostDetailService.getListByCommonCostId(updateObj.getId());
             StringBuilder projectName = new StringBuilder();

+ 1 - 1
zjugis-business/src/main/java/com/zjugis/business/flow/travelcost/service/TravelCostServiceImpl.java

@@ -218,7 +218,7 @@ public class TravelCostServiceImpl implements TravelCostService {
         TravelCostDO updateObj = TravelCostConvert.INSTANCE.convert(updateReqVO);
         travelCostDao.updateById(updateObj);
         //发生核减后修改流程描述
-        if(updateReqVO.getBz2()!=null){
+        if(StringUtils.isNotEmpty(updateReqVO.getBz2())){
             TravelCostDO entity = travelCostDao.selectById(updateReqVO.getId());
             Project project = projectService.selectById(entity.getProjectId());
             String applyTime = LocalDateTimeUtils.format(entity.getApplyTime(), null);