8e5d6d76 by 肖初晴

【DAOP-1.0】数据需求

【功能点】测试问题处理
1 parent 0080f83b
......@@ -179,12 +179,12 @@ public class DemandServiceImpl extends FlowAbstractImpl implements DemandService
public void updateDemand(FlowRQBaseVO flowBaseVO) {
DemandRQVO rqVO = (DemandRQVO) flowBaseVO;
// 将修改前数据查出来缓存下来,传入到修改后方法中,用于一些特殊逻辑处理,如某个值变化才进行
// MfDemand oldEntity = mfDemandService.getById(rqVO.getGuid());
MfDemand oldEntity = mfDemandService.getById(rqVO.getGuid());
beforeUpdate(rqVO);
MfDemand entity = convertToEntity(rqVO);
// 发起审批流程或保存草稿
AddApprovalDTO approvalDTO = getAddApprovalDTO(entity);
super.restartWorkFlow(rqVO, rqVO.getBizApproveState(), approvalDTO, null, entity::setBizApproveState);
super.restartWorkFlow(rqVO, rqVO.getBizApproveState(), approvalDTO, null, oldEntity::setBizApproveState);
if (rqVO.getIsRestart()) {
// 重新提交
againSubmitFlow(entity, rqVO, approvalDTO);
......
Styling with Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!