【DAOP-1.0】数据需求
【功能点】测试问题处理
Showing
3 changed files
with
12 additions
and
6 deletions
| ... | @@ -179,7 +179,7 @@ public class DemandServiceImpl extends FlowAbstractImpl implements DemandService | ... | @@ -179,7 +179,7 @@ public class DemandServiceImpl extends FlowAbstractImpl implements DemandService |
| 179 | public void updateDemand(FlowRQBaseVO flowBaseVO) { | 179 | public void updateDemand(FlowRQBaseVO flowBaseVO) { |
| 180 | DemandRQVO rqVO = (DemandRQVO) flowBaseVO; | 180 | DemandRQVO rqVO = (DemandRQVO) flowBaseVO; |
| 181 | // 将修改前数据查出来缓存下来,传入到修改后方法中,用于一些特殊逻辑处理,如某个值变化才进行 | 181 | // 将修改前数据查出来缓存下来,传入到修改后方法中,用于一些特殊逻辑处理,如某个值变化才进行 |
| 182 | MfDemand oldEntity = mfDemandService.getById(rqVO.getGuid()); | 182 | // MfDemand oldEntity = mfDemandService.getById(rqVO.getGuid()); |
| 183 | beforeUpdate(rqVO); | 183 | beforeUpdate(rqVO); |
| 184 | MfDemand entity = convertToEntity(rqVO); | 184 | MfDemand entity = convertToEntity(rqVO); |
| 185 | // 发起审批流程或保存草稿 | 185 | // 发起审批流程或保存草稿 | ... | ... |
| ... | @@ -334,13 +334,16 @@ public class EnterpriseServiceImpl extends FlowAbstractImpl implements Enterpris | ... | @@ -334,13 +334,16 @@ public class EnterpriseServiceImpl extends FlowAbstractImpl implements Enterpris |
| 334 | public void updateEnterprise(FlowRQBaseVO flowBaseVO) { | 334 | public void updateEnterprise(FlowRQBaseVO flowBaseVO) { |
| 335 | EnterpriseRQVO rqVO = (EnterpriseRQVO) flowBaseVO; | 335 | EnterpriseRQVO rqVO = (EnterpriseRQVO) flowBaseVO; |
| 336 | // 将修改前数据查出来缓存下来,传入到修改后方法中,用于一些特殊逻辑处理,如某个值变化才进行 | 336 | // 将修改前数据查出来缓存下来,传入到修改后方法中,用于一些特殊逻辑处理,如某个值变化才进行 |
| 337 | MfEnterprise oldEntity = mfEnterpriseService.getById(rqVO.getGuid()); | 337 | // MfEnterprise oldEntity = mfEnterpriseService.getById(rqVO.getGuid()); |
| 338 | beforeUpdate(rqVO); | 338 | beforeUpdate(rqVO); |
| 339 | MfEnterprise entity = convertToEntity(rqVO); | 339 | MfEnterprise entity = convertToEntity(rqVO); |
| 340 | // 发起审批流程或保存草稿 | 340 | // 发起审批流程或保存草稿 |
| 341 | AddApprovalDTO approvalDTO = getAddApprovalDTO(entity); | 341 | AddApprovalDTO approvalDTO = getAddApprovalDTO(entity); |
| 342 | super.startOrRestartWorkFlow(rqVO, rqVO.getBizApproveState(), approvalDTO, entity::setBizApproveState); | 342 | super.startOrRestartWorkFlow(rqVO, rqVO.getBizApproveState(), approvalDTO, entity::setBizApproveState); |
| 343 | if(!rqVO.getIsRestart()){ | 343 | if (rqVO.getIsRestart()) { |
| 344 | // 重新提交 | ||
| 345 | againSubmitFlow(entity, rqVO, approvalDTO); | ||
| 346 | } else { | ||
| 344 | // 修改业务数据 | 347 | // 修改业务数据 |
| 345 | boolean flag = mfEnterpriseService.updateById(entity); | 348 | boolean flag = mfEnterpriseService.updateById(entity); |
| 346 | if (!flag) { | 349 | if (!flag) { |
| ... | @@ -370,7 +373,7 @@ public class EnterpriseServiceImpl extends FlowAbstractImpl implements Enterpris | ... | @@ -370,7 +373,7 @@ public class EnterpriseServiceImpl extends FlowAbstractImpl implements Enterpris |
| 370 | throw new CsbrSystemException(SystemError.DATA_ADD_ERROR, messageSourceUtil.addMessage(String.format("重新提交%s",FUNCTION_NAME))); | 373 | throw new CsbrSystemException(SystemError.DATA_ADD_ERROR, messageSourceUtil.addMessage(String.format("重新提交%s",FUNCTION_NAME))); |
| 371 | } | 374 | } |
| 372 | // 发起新的流程 | 375 | // 发起新的流程 |
| 373 | approvalDTO.setGuid(entity.getGuid()); | 376 | approvalDTO.setBizGuid(entity.getGuid()); |
| 374 | approvalFlowUtil.addApproval(approvalDTO); | 377 | approvalFlowUtil.addApproval(approvalDTO); |
| 375 | afterSave(entity, rqVO); | 378 | afterSave(entity, rqVO); |
| 376 | } | 379 | } | ... | ... |
| ... | @@ -177,7 +177,10 @@ public class ServicerMaintainServiceImpl extends FlowAbstractImpl implements Ser | ... | @@ -177,7 +177,10 @@ public class ServicerMaintainServiceImpl extends FlowAbstractImpl implements Ser |
| 177 | // 发起审批流程或保存草稿 | 177 | // 发起审批流程或保存草稿 |
| 178 | AddApprovalDTO approvalDTO = getAddApprovalDTO(entity); | 178 | AddApprovalDTO approvalDTO = getAddApprovalDTO(entity); |
| 179 | super.startOrRestartWorkFlow(rqVO, rqVO.getBizApproveState(), approvalDTO, entity::setBizApproveState); | 179 | super.startOrRestartWorkFlow(rqVO, rqVO.getBizApproveState(), approvalDTO, entity::setBizApproveState); |
| 180 | if(!rqVO.getIsRestart()){ | 180 | if (rqVO.getIsRestart()) { |
| 181 | // 重新提交 | ||
| 182 | againSubmitFlow(entity, rqVO, approvalDTO); | ||
| 183 | } else { | ||
| 181 | // 修改业务数据 | 184 | // 修改业务数据 |
| 182 | boolean flag = mfServicerMaintainService.updateById(entity); | 185 | boolean flag = mfServicerMaintainService.updateById(entity); |
| 183 | if (!flag) { | 186 | if (!flag) { |
| ... | @@ -208,7 +211,7 @@ public class ServicerMaintainServiceImpl extends FlowAbstractImpl implements Ser | ... | @@ -208,7 +211,7 @@ public class ServicerMaintainServiceImpl extends FlowAbstractImpl implements Ser |
| 208 | throw new CsbrSystemException(SystemError.DATA_ADD_ERROR, messageSourceUtil.addMessage(String.format("重新提交%s",FUNCTION_NAME))); | 211 | throw new CsbrSystemException(SystemError.DATA_ADD_ERROR, messageSourceUtil.addMessage(String.format("重新提交%s",FUNCTION_NAME))); |
| 209 | } | 212 | } |
| 210 | // 发起新的流程 | 213 | // 发起新的流程 |
| 211 | approvalDTO.setGuid(entity.getGuid()); | 214 | approvalDTO.setBizGuid(entity.getGuid()); |
| 212 | approvalFlowUtil.addApproval(approvalDTO); | 215 | approvalFlowUtil.addApproval(approvalDTO); |
| 213 | afterSave(entity, rqVO); | 216 | afterSave(entity, rqVO); |
| 214 | } | 217 | } | ... | ... |
-
Please register or sign in to post a comment