359bdca8 by 肖初晴

【DAOP-1.0】企业认证

【功能点】测试问题处理
1 parent e8a78ceb
...@@ -444,15 +444,6 @@ public class EnterpriseServiceImpl extends FlowAbstractImpl implements Enterpris ...@@ -444,15 +444,6 @@ public class EnterpriseServiceImpl extends FlowAbstractImpl implements Enterpris
444 if (entity == null) { 444 if (entity == null) {
445 throw new CsbrSystemException(SystemError.DATA_NOT_EXISTS, messageSourceUtil.notExistsToSelectMessage(FUNCTION_NAME)); 445 throw new CsbrSystemException(SystemError.DATA_NOT_EXISTS, messageSourceUtil.notExistsToSelectMessage(FUNCTION_NAME));
446 } 446 }
447 if (ApprovalStateEnum.PASSED.getValue().equals(dto.getApprovalState())) {
448 //删除原帐号并新增正式会员
449 TenantRQVO vo = csbrBeanUtil.convert(entity,TenantRQVO.class);
450 vo.setTenantType(null);
451 vo.setGuid(CommonUtil.newGuid());
452 vo.setPersonIncharge(entity.getJuridicalPerson());
453 vo.setBizState("Y");
454 vo = personelFeign.authTenant(vo).getData();
455 }
456 // 同步更新审批状态 447 // 同步更新审批状态
457 LambdaUpdateWrapper<MfEnterprise> updateWrapper = new LambdaUpdateWrapper<>(); 448 LambdaUpdateWrapper<MfEnterprise> updateWrapper = new LambdaUpdateWrapper<>();
458 updateWrapper.set(MfEnterprise::getBizApproveState, dto.getApprovalState()); 449 updateWrapper.set(MfEnterprise::getBizApproveState, dto.getApprovalState());
...@@ -461,6 +452,23 @@ public class EnterpriseServiceImpl extends FlowAbstractImpl implements Enterpris ...@@ -461,6 +452,23 @@ public class EnterpriseServiceImpl extends FlowAbstractImpl implements Enterpris
461 if (!flag) { 452 if (!flag) {
462 throw new CsbrSystemException(SystemError.DATA_UPDATE_ERROR, messageSourceUtil.updateMessage(String.format("%s的业务审批状态", FUNCTION_NAME))); 453 throw new CsbrSystemException(SystemError.DATA_UPDATE_ERROR, messageSourceUtil.updateMessage(String.format("%s的业务审批状态", FUNCTION_NAME)));
463 } 454 }
455 if (ApprovalStateEnum.PASSED.getValue().equals(dto.getApprovalState())) {
456 //删除原帐号并新增正式会员
457 TenantRQVO vo = csbrBeanUtil.convert(entity,TenantRQVO.class);
458 vo.setTenantType(null);
459 vo.setGuid(CommonUtil.newGuid());
460 vo.setPersonIncharge(entity.getJuridicalPerson());
461 vo.setBizState("Y");
462 try{
463 vo = personelFeign.authTenant(vo).getData();
464 }catch (Exception e){
465 if(!e.getMessage().contains("Read timed out")){
466 throw e;
467 }
468 }
469
470 }
471
464 } 472 }
465 473
466 /** 将此账号提交的数据需求迁移到新的企业 */ 474 /** 将此账号提交的数据需求迁移到新的企业 */
...@@ -468,7 +476,7 @@ public class EnterpriseServiceImpl extends FlowAbstractImpl implements Enterpris ...@@ -468,7 +476,7 @@ public class EnterpriseServiceImpl extends FlowAbstractImpl implements Enterpris
468 @Transactional(rollbackFor = Exception.class) 476 @Transactional(rollbackFor = Exception.class)
469 public void moveOldData(TenantRQVO vo){ 477 public void moveOldData(TenantRQVO vo){
470 LambdaQueryWrapper<MfDemand> queryWrapper = new LambdaQueryWrapper<>(); 478 LambdaQueryWrapper<MfDemand> queryWrapper = new LambdaQueryWrapper<>();
471 queryWrapper.eq(MfDemand::getRequirementUnit, vo.getTenantName()); 479 queryWrapper.eq(MfDemand::getCreateUserName, vo.getTenantName());
472 mfDemandService.csbrExcludeShardingLambdaQueryWrapper(queryWrapper); 480 mfDemandService.csbrExcludeShardingLambdaQueryWrapper(queryWrapper);
473 List<MfDemand> list = mfDemandService.list(queryWrapper); 481 List<MfDemand> list = mfDemandService.list(queryWrapper);
474 if(CollectionUtils.isEmpty(list)){ 482 if(CollectionUtils.isEmpty(list)){
......
Styling with Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!