359bdca8 by 肖初晴

【DAOP-1.0】企业认证

【功能点】测试问题处理
1 parent e8a78ceb
...@@ -444,6 +444,14 @@ public class EnterpriseServiceImpl extends FlowAbstractImpl implements Enterpris ...@@ -444,6 +444,14 @@ 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 // 同步更新审批状态
448 LambdaUpdateWrapper<MfEnterprise> updateWrapper = new LambdaUpdateWrapper<>();
449 updateWrapper.set(MfEnterprise::getBizApproveState, dto.getApprovalState());
450 updateWrapper.eq(MfEnterprise::getGuid, dto.getBizGuid());
451 boolean flag = mfEnterpriseService.update(updateWrapper);
452 if (!flag) {
453 throw new CsbrSystemException(SystemError.DATA_UPDATE_ERROR, messageSourceUtil.updateMessage(String.format("%s的业务审批状态", FUNCTION_NAME)));
454 }
447 if (ApprovalStateEnum.PASSED.getValue().equals(dto.getApprovalState())) { 455 if (ApprovalStateEnum.PASSED.getValue().equals(dto.getApprovalState())) {
448 //删除原帐号并新增正式会员 456 //删除原帐号并新增正式会员
449 TenantRQVO vo = csbrBeanUtil.convert(entity,TenantRQVO.class); 457 TenantRQVO vo = csbrBeanUtil.convert(entity,TenantRQVO.class);
...@@ -451,16 +459,16 @@ public class EnterpriseServiceImpl extends FlowAbstractImpl implements Enterpris ...@@ -451,16 +459,16 @@ public class EnterpriseServiceImpl extends FlowAbstractImpl implements Enterpris
451 vo.setGuid(CommonUtil.newGuid()); 459 vo.setGuid(CommonUtil.newGuid());
452 vo.setPersonIncharge(entity.getJuridicalPerson()); 460 vo.setPersonIncharge(entity.getJuridicalPerson());
453 vo.setBizState("Y"); 461 vo.setBizState("Y");
462 try{
454 vo = personelFeign.authTenant(vo).getData(); 463 vo = personelFeign.authTenant(vo).getData();
464 }catch (Exception e){
465 if(!e.getMessage().contains("Read timed out")){
466 throw e;
455 } 467 }
456 // 同步更新审批状态
457 LambdaUpdateWrapper<MfEnterprise> updateWrapper = new LambdaUpdateWrapper<>();
458 updateWrapper.set(MfEnterprise::getBizApproveState, dto.getApprovalState());
459 updateWrapper.eq(MfEnterprise::getGuid, dto.getBizGuid());
460 boolean flag = mfEnterpriseService.update(updateWrapper);
461 if (!flag) {
462 throw new CsbrSystemException(SystemError.DATA_UPDATE_ERROR, messageSourceUtil.updateMessage(String.format("%s的业务审批状态", FUNCTION_NAME)));
463 } 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!