【数据资产】
1、需求跨平台下架
Showing
1 changed file
with
3 additions
and
10 deletions
| ... | @@ -243,17 +243,10 @@ public class DemandServiceImpl extends FlowAbstractImpl implements DemandService | ... | @@ -243,17 +243,10 @@ public class DemandServiceImpl extends FlowAbstractImpl implements DemandService |
| 243 | MfDemand entity = convertToEntity(rqVO); | 243 | MfDemand entity = convertToEntity(rqVO); |
| 244 | // 发起审批流程或保存草稿 | 244 | // 发起审批流程或保存草稿 |
| 245 | AddApprovalDTO approvalDTO = getAddApprovalDTO(entity, rqVO); | 245 | AddApprovalDTO approvalDTO = getAddApprovalDTO(entity, rqVO); |
| 246 | super.startOrRestartWorkFlow(rqVO, rqVO.getBizApproveState(), approvalDTO, entity::setBizApproveState); | 246 | super.restartWorkFlow(rqVO, rqVO.getBizApproveState(), approvalDTO, this::saveDemand, entity::setBizApproveState); |
| 247 | if (rqVO.getIsRestart()) { | 247 | if (Boolean.FALSE.equals(rqVO.getIsRestart())) { |
| 248 | // 重新提交 | ||
| 249 | againSubmitFlow(entity, rqVO, approvalDTO); | ||
| 250 | } else { | ||
| 251 | // 修改业务数据 | 248 | // 修改业务数据 |
| 252 | boolean flag = mfDemandService.updateById(entity); | 249 | mfDemandService.updateById(entity); |
| 253 | if (!flag) { | ||
| 254 | throw new CsbrSystemException(SystemError.DATA_UPDATE_ERROR, rqVO.getImmediateApprove() ? | ||
| 255 | messageSourceUtil.submitMessage(FUNCTION_NAME) : messageSourceUtil.updateMessage(FUNCTION_NAME)); | ||
| 256 | } | ||
| 257 | afterUpdate(entity, rqVO); | 250 | afterUpdate(entity, rqVO); |
| 258 | } | 251 | } |
| 259 | } | 252 | } | ... | ... |
-
Please register or sign in to post a comment