【DAOP-1.0】企业认证
【功能点】测试问题处理
Showing
3 changed files
with
7 additions
and
9 deletions
| ... | @@ -201,9 +201,6 @@ public class DemandServiceImpl extends FlowAbstractImpl implements DemandService | ... | @@ -201,9 +201,6 @@ public class DemandServiceImpl extends FlowAbstractImpl implements DemandService |
| 201 | // MfDemand oldEntity = mfDemandService.getById(rqVO.getGuid()); | 201 | // MfDemand oldEntity = mfDemandService.getById(rqVO.getGuid()); |
| 202 | beforeUpdate(rqVO); | 202 | beforeUpdate(rqVO); |
| 203 | MfDemand entity = convertToEntity(rqVO); | 203 | MfDemand entity = convertToEntity(rqVO); |
| 204 | if (rqVO.getIsRestart()) { | ||
| 205 | entity.setGuid(CommonUtil.newGuid()); | ||
| 206 | } | ||
| 207 | // 发起审批流程或保存草稿 | 204 | // 发起审批流程或保存草稿 |
| 208 | AddApprovalDTO approvalDTO = getAddApprovalDTO(entity, rqVO); | 205 | AddApprovalDTO approvalDTO = getAddApprovalDTO(entity, rqVO); |
| 209 | super.startOrRestartWorkFlow(rqVO, rqVO.getBizApproveState(), approvalDTO, entity::setBizApproveState); | 206 | super.startOrRestartWorkFlow(rqVO, rqVO.getBizApproveState(), approvalDTO, entity::setBizApproveState); |
| ... | @@ -231,6 +228,7 @@ public class DemandServiceImpl extends FlowAbstractImpl implements DemandService | ... | @@ -231,6 +228,7 @@ public class DemandServiceImpl extends FlowAbstractImpl implements DemandService |
| 231 | * @return void | 228 | * @return void |
| 232 | */ | 229 | */ |
| 233 | private void againSubmitFlow(MfDemand entity, DemandRQVO rqVO, AddApprovalDTO approvalDTO) { | 230 | private void againSubmitFlow(MfDemand entity, DemandRQVO rqVO, AddApprovalDTO approvalDTO) { |
| 231 | entity.setGuid(CommonUtil.newGuid()); | ||
| 234 | mfDemandService.csbrBaseEntity(entity); | 232 | mfDemandService.csbrBaseEntity(entity); |
| 235 | // 保存新数据 | 233 | // 保存新数据 |
| 236 | boolean flag = mfDemandService.save(entity); | 234 | boolean flag = mfDemandService.save(entity); |
| ... | @@ -239,6 +237,7 @@ public class DemandServiceImpl extends FlowAbstractImpl implements DemandService | ... | @@ -239,6 +237,7 @@ public class DemandServiceImpl extends FlowAbstractImpl implements DemandService |
| 239 | } | 237 | } |
| 240 | // 发起新的流程 | 238 | // 发起新的流程 |
| 241 | approvalDTO.setBizGuid(entity.getGuid()); | 239 | approvalDTO.setBizGuid(entity.getGuid()); |
| 240 | approvalDTO.setUrlParam(String.format("guid=%s&name=%s",entity.getGuid(),entity.getDataDemandName())); | ||
| 242 | approvalFlowUtil.addApproval(approvalDTO); | 241 | approvalFlowUtil.addApproval(approvalDTO); |
| 243 | afterSave(entity, rqVO); | 242 | afterSave(entity, rqVO); |
| 244 | } | 243 | } | ... | ... |
| ... | @@ -227,9 +227,6 @@ public class EnterpriseServiceImpl extends FlowAbstractImpl implements Enterpris | ... | @@ -227,9 +227,6 @@ public class EnterpriseServiceImpl extends FlowAbstractImpl implements Enterpris |
| 227 | // MfEnterprise oldEntity = mfEnterpriseService.getById(rqVO.getGuid()); | 227 | // MfEnterprise oldEntity = mfEnterpriseService.getById(rqVO.getGuid()); |
| 228 | beforeUpdate(rqVO); | 228 | beforeUpdate(rqVO); |
| 229 | MfEnterprise entity = convertToEntity(rqVO); | 229 | MfEnterprise entity = convertToEntity(rqVO); |
| 230 | if (rqVO.getIsRestart()) { | ||
| 231 | entity.setGuid(CommonUtil.newGuid()); | ||
| 232 | } | ||
| 233 | // 发起审批流程或保存草稿 | 230 | // 发起审批流程或保存草稿 |
| 234 | AddApprovalDTO approvalDTO = getAddApprovalDTO(entity, rqVO); | 231 | AddApprovalDTO approvalDTO = getAddApprovalDTO(entity, rqVO); |
| 235 | super.startOrRestartWorkFlow(rqVO, rqVO.getBizApproveState(), approvalDTO, entity::setBizApproveState); | 232 | super.startOrRestartWorkFlow(rqVO, rqVO.getBizApproveState(), approvalDTO, entity::setBizApproveState); |
| ... | @@ -257,6 +254,7 @@ public class EnterpriseServiceImpl extends FlowAbstractImpl implements Enterpris | ... | @@ -257,6 +254,7 @@ public class EnterpriseServiceImpl extends FlowAbstractImpl implements Enterpris |
| 257 | * @return void | 254 | * @return void |
| 258 | */ | 255 | */ |
| 259 | private void againSubmitFlow(MfEnterprise entity, EnterpriseRQVO rqVO, AddApprovalDTO approvalDTO) { | 256 | private void againSubmitFlow(MfEnterprise entity, EnterpriseRQVO rqVO, AddApprovalDTO approvalDTO) { |
| 257 | entity.setGuid(CommonUtil.newGuid()); | ||
| 260 | mfEnterpriseService.csbrBaseEntity(entity); | 258 | mfEnterpriseService.csbrBaseEntity(entity); |
| 261 | // 保存新数据 | 259 | // 保存新数据 |
| 262 | boolean flag = mfEnterpriseService.save(entity); | 260 | boolean flag = mfEnterpriseService.save(entity); |
| ... | @@ -265,6 +263,9 @@ public class EnterpriseServiceImpl extends FlowAbstractImpl implements Enterpris | ... | @@ -265,6 +263,9 @@ public class EnterpriseServiceImpl extends FlowAbstractImpl implements Enterpris |
| 265 | } | 263 | } |
| 266 | // 发起新的流程 | 264 | // 发起新的流程 |
| 267 | approvalDTO.setBizGuid(entity.getGuid()); | 265 | approvalDTO.setBizGuid(entity.getGuid()); |
| 266 | RedisStaffPOJO staffPOJO = redisUtil.getRedisStaff(); | ||
| 267 | approvalDTO.setUrlParam(String.format("guid=%s&name=%s&tName=%s&fType=%s&bizGuid=%s",entity.getGuid(), entity.getTenantName(), | ||
| 268 | staffPOJO.getTenantName(),WorkFlowBizEnum.ENTERPRISE_APPLY.getValue(),entity.getGuid())); | ||
| 268 | approvalFlowUtil.addApproval(approvalDTO); | 269 | approvalFlowUtil.addApproval(approvalDTO); |
| 269 | afterSave(entity, rqVO); | 270 | afterSave(entity, rqVO); |
| 270 | } | 271 | } | ... | ... |
| ... | @@ -164,9 +164,6 @@ public class ServicerMaintainServiceImpl extends FlowAbstractImpl implements Ser | ... | @@ -164,9 +164,6 @@ public class ServicerMaintainServiceImpl extends FlowAbstractImpl implements Ser |
| 164 | MfServicerMaintain oldEntity = mfServicerMaintainService.getById(rqVO.getGuid()); | 164 | MfServicerMaintain oldEntity = mfServicerMaintainService.getById(rqVO.getGuid()); |
| 165 | beforeUpdate(rqVO); | 165 | beforeUpdate(rqVO); |
| 166 | MfServicerMaintain entity = convertToEntity(rqVO); | 166 | MfServicerMaintain entity = convertToEntity(rqVO); |
| 167 | if (rqVO.getIsRestart()) { | ||
| 168 | entity.setGuid(CommonUtil.newGuid()); | ||
| 169 | } | ||
| 170 | if("Y".equals(rqVO.getBizApproveState())){ | 167 | if("Y".equals(rqVO.getBizApproveState())){ |
| 171 | // 修改业务数据 | 168 | // 修改业务数据 |
| 172 | boolean flag = mfServicerMaintainService.updateById(entity); | 169 | boolean flag = mfServicerMaintainService.updateById(entity); |
| ... | @@ -205,6 +202,7 @@ public class ServicerMaintainServiceImpl extends FlowAbstractImpl implements Ser | ... | @@ -205,6 +202,7 @@ public class ServicerMaintainServiceImpl extends FlowAbstractImpl implements Ser |
| 205 | * @return void | 202 | * @return void |
| 206 | */ | 203 | */ |
| 207 | private void againSubmitFlow(MfServicerMaintain entity, ServicerMaintainRQVO rqVO, AddApprovalDTO approvalDTO) { | 204 | private void againSubmitFlow(MfServicerMaintain entity, ServicerMaintainRQVO rqVO, AddApprovalDTO approvalDTO) { |
| 205 | entity.setGuid(CommonUtil.newGuid()); | ||
| 208 | mfServicerMaintainService.csbrBaseEntity(entity); | 206 | mfServicerMaintainService.csbrBaseEntity(entity); |
| 209 | // 保存新数据 | 207 | // 保存新数据 |
| 210 | boolean flag = mfServicerMaintainService.save(entity); | 208 | boolean flag = mfServicerMaintainService.save(entity); | ... | ... |
-
Please register or sign in to post a comment