d62df2f4 by 肖初晴

【DAOP-1.0】企业认证

【功能点】测试问题处理
1 parent 6fa915fe
......@@ -452,17 +452,6 @@ public class EnterpriseServiceImpl extends FlowAbstractImpl implements Enterpris
@Override
public Boolean check(EnterpriseRQVO vo) {
//检查管理员账号
UserQueryDTO dto = new UserQueryDTO();
dto.setLogonUser(vo.getLogonUser());
List<UserVO> userList = userFeign.getUserSomeInfo(dto).getData().getRecords();
if(CollectionUtils.isNotEmpty(userList)){
StaffRSVO staffVO = personelFeign.getByUserGuid(userList.get(0).getGuid()).getData();
if(staffVO != null && StringUtils.isNotBlank(staffVO.getIsAdmin()) && "Y".equals(staffVO.getIsAdmin())){
throw new CsbrUserException(UserError.VALIDATE_CODE_ERROR, "账号已存在!");
}
}
//检查会员名称等数据
TenantRQVO tenant = csbrBeanUtil.convert(vo,TenantRQVO.class);
personelFeign.checkTenant(tenant);
......
Styling with Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!