【DAOP-1.0】数据需求
【功能点】测试问题处理
Showing
3 changed files
with
24 additions
and
18 deletions
| ... | @@ -185,13 +185,15 @@ public class DemandServiceImpl extends FlowAbstractImpl implements DemandService | ... | @@ -185,13 +185,15 @@ public class DemandServiceImpl extends FlowAbstractImpl implements DemandService |
| 185 | // 发起审批流程或保存草稿 | 185 | // 发起审批流程或保存草稿 |
| 186 | AddApprovalDTO approvalDTO = getAddApprovalDTO(entity); | 186 | AddApprovalDTO approvalDTO = getAddApprovalDTO(entity); |
| 187 | super.restartWorkFlow(rqVO, oldEntity.getBizApproveState(), approvalDTO, this::saveDemand, entity::setBizApproveState); | 187 | super.restartWorkFlow(rqVO, oldEntity.getBizApproveState(), approvalDTO, this::saveDemand, entity::setBizApproveState); |
| 188 | // 修改业务数据 | 188 | if(!rqVO.getIsRestart()){ |
| 189 | boolean flag = mfDemandService.updateById(entity); | 189 | // 修改业务数据 |
| 190 | if (!flag) { | 190 | boolean flag = mfDemandService.updateById(entity); |
| 191 | throw new CsbrSystemException(SystemError.DATA_UPDATE_ERROR, rqVO.getImmediateApprove() ? | 191 | if (!flag) { |
| 192 | messageSourceUtil.submitMessage(FUNCTION_NAME) : messageSourceUtil.updateMessage(FUNCTION_NAME)); | 192 | throw new CsbrSystemException(SystemError.DATA_UPDATE_ERROR, rqVO.getImmediateApprove() ? |
| 193 | messageSourceUtil.submitMessage(FUNCTION_NAME) : messageSourceUtil.updateMessage(FUNCTION_NAME)); | ||
| 194 | } | ||
| 195 | afterUpdate(entity, rqVO); | ||
| 193 | } | 196 | } |
| 194 | afterUpdate(entity, rqVO); | ||
| 195 | } | 197 | } |
| 196 | 198 | ||
| 197 | /** | 199 | /** | ... | ... |
| ... | @@ -324,13 +324,15 @@ public class EnterpriseServiceImpl extends FlowAbstractImpl implements Enterpris | ... | @@ -324,13 +324,15 @@ public class EnterpriseServiceImpl extends FlowAbstractImpl implements Enterpris |
| 324 | // 发起审批流程或保存草稿 | 324 | // 发起审批流程或保存草稿 |
| 325 | AddApprovalDTO approvalDTO = getAddApprovalDTO(entity); | 325 | AddApprovalDTO approvalDTO = getAddApprovalDTO(entity); |
| 326 | super.restartWorkFlow(rqVO, oldEntity.getBizApproveState(), approvalDTO, this::saveEnterprise, entity::setBizApproveState); | 326 | super.restartWorkFlow(rqVO, oldEntity.getBizApproveState(), approvalDTO, this::saveEnterprise, entity::setBizApproveState); |
| 327 | // 修改业务数据 | 327 | if(!rqVO.getIsRestart()){ |
| 328 | boolean flag = mfEnterpriseService.updateById(entity); | 328 | // 修改业务数据 |
| 329 | if (!flag) { | 329 | boolean flag = mfEnterpriseService.updateById(entity); |
| 330 | throw new CsbrSystemException(SystemError.DATA_UPDATE_ERROR, rqVO.getImmediateApprove() ? | 330 | if (!flag) { |
| 331 | messageSourceUtil.submitMessage(FUNCTION_NAME) : messageSourceUtil.updateMessage(FUNCTION_NAME)); | 331 | throw new CsbrSystemException(SystemError.DATA_UPDATE_ERROR, rqVO.getImmediateApprove() ? |
| 332 | messageSourceUtil.submitMessage(FUNCTION_NAME) : messageSourceUtil.updateMessage(FUNCTION_NAME)); | ||
| 333 | } | ||
| 334 | afterUpdate(entity, rqVO); | ||
| 332 | } | 335 | } |
| 333 | afterUpdate(entity, rqVO); | ||
| 334 | } | 336 | } |
| 335 | 337 | ||
| 336 | /** | 338 | /** | ... | ... |
| ... | @@ -177,13 +177,15 @@ public class ServicerMaintainServiceImpl extends FlowAbstractImpl implements Ser | ... | @@ -177,13 +177,15 @@ public class ServicerMaintainServiceImpl extends FlowAbstractImpl implements Ser |
| 177 | // 发起审批流程或保存草稿 | 177 | // 发起审批流程或保存草稿 |
| 178 | AddApprovalDTO approvalDTO = getAddApprovalDTO(entity); | 178 | AddApprovalDTO approvalDTO = getAddApprovalDTO(entity); |
| 179 | super.restartWorkFlow(rqVO, oldEntity.getBizApproveState(), approvalDTO, this::saveServicerMaintain, entity::setBizApproveState); | 179 | super.restartWorkFlow(rqVO, oldEntity.getBizApproveState(), approvalDTO, this::saveServicerMaintain, entity::setBizApproveState); |
| 180 | // 修改业务数据 | 180 | if(!rqVO.getIsRestart()){ |
| 181 | boolean flag = mfServicerMaintainService.updateById(entity); | 181 | // 修改业务数据 |
| 182 | if (!flag) { | 182 | boolean flag = mfServicerMaintainService.updateById(entity); |
| 183 | throw new CsbrSystemException(SystemError.DATA_UPDATE_ERROR, rqVO.getImmediateApprove() ? | 183 | if (!flag) { |
| 184 | messageSourceUtil.submitMessage(FUNCTION_NAME) : messageSourceUtil.updateMessage(FUNCTION_NAME)); | 184 | throw new CsbrSystemException(SystemError.DATA_UPDATE_ERROR, rqVO.getImmediateApprove() ? |
| 185 | messageSourceUtil.submitMessage(FUNCTION_NAME) : messageSourceUtil.updateMessage(FUNCTION_NAME)); | ||
| 186 | } | ||
| 187 | afterUpdate(entity, rqVO); | ||
| 185 | } | 188 | } |
| 186 | afterUpdate(entity, rqVO); | ||
| 187 | } | 189 | } |
| 188 | } | 190 | } |
| 189 | 191 | ... | ... |
-
Please register or sign in to post a comment