116de3eb by 肖初晴

【DAOP-1.0】企业认证

【功能点】测试问题处理
1 parent e5e6f8eb
......@@ -5,6 +5,7 @@ import com.csbr.cloud.common.response.CommonRes;
import com.csbr.qingcloud.portal.domain.vo.TenantRQVO;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.http.MediaType;
import org.springframework.validation.annotation.Validated;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.PutMapping;
......@@ -26,4 +27,7 @@ public interface PersonelFeign {
@GetMapping(value = "/tenant/get-all-tenant-guid-name-map", produces = MediaType.APPLICATION_JSON_VALUE, consumes = MediaType.APPLICATION_JSON_VALUE)
CommonRes<Map<String, String>> getAllTenantGuidNameMap();
@PostMapping(value = "/tenant/check", produces = MediaType.APPLICATION_JSON_VALUE, consumes = MediaType.APPLICATION_JSON_VALUE)
CommonRes<Boolean> checkTenant(@Validated @RequestBody TenantRQVO vo);
}
......
......@@ -459,6 +459,9 @@ public class EnterpriseServiceImpl extends FlowAbstractImpl implements Enterpris
if(CollectionUtils.isNotEmpty(userList)){
throw new CsbrUserException(UserError.VALIDATE_CODE_ERROR, "账号管理人手机号已存在!");
}
//检查会员名称等数据
TenantRQVO tenant = csbrBeanUtil.convert(vo,TenantRQVO.class);
personelFeign.checkTenant(tenant);
return true;
}
......
Styling with Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!