【DAOP-1.0】企业认证
【功能点】测试问题处理
Showing
2 changed files
with
7 additions
and
0 deletions
... | @@ -5,6 +5,7 @@ import com.csbr.cloud.common.response.CommonRes; | ... | @@ -5,6 +5,7 @@ import com.csbr.cloud.common.response.CommonRes; |
5 | import com.csbr.qingcloud.portal.domain.vo.TenantRQVO; | 5 | import com.csbr.qingcloud.portal.domain.vo.TenantRQVO; |
6 | import org.springframework.cloud.openfeign.FeignClient; | 6 | import org.springframework.cloud.openfeign.FeignClient; |
7 | import org.springframework.http.MediaType; | 7 | import org.springframework.http.MediaType; |
8 | import org.springframework.validation.annotation.Validated; | ||
8 | import org.springframework.web.bind.annotation.GetMapping; | 9 | import org.springframework.web.bind.annotation.GetMapping; |
9 | import org.springframework.web.bind.annotation.PostMapping; | 10 | import org.springframework.web.bind.annotation.PostMapping; |
10 | import org.springframework.web.bind.annotation.PutMapping; | 11 | import org.springframework.web.bind.annotation.PutMapping; |
... | @@ -26,4 +27,7 @@ public interface PersonelFeign { | ... | @@ -26,4 +27,7 @@ public interface PersonelFeign { |
26 | @GetMapping(value = "/tenant/get-all-tenant-guid-name-map", produces = MediaType.APPLICATION_JSON_VALUE, consumes = MediaType.APPLICATION_JSON_VALUE) | 27 | @GetMapping(value = "/tenant/get-all-tenant-guid-name-map", produces = MediaType.APPLICATION_JSON_VALUE, consumes = MediaType.APPLICATION_JSON_VALUE) |
27 | CommonRes<Map<String, String>> getAllTenantGuidNameMap(); | 28 | CommonRes<Map<String, String>> getAllTenantGuidNameMap(); |
28 | 29 | ||
30 | @PostMapping(value = "/tenant/check", produces = MediaType.APPLICATION_JSON_VALUE, consumes = MediaType.APPLICATION_JSON_VALUE) | ||
31 | CommonRes<Boolean> checkTenant(@Validated @RequestBody TenantRQVO vo); | ||
32 | |||
29 | } | 33 | } | ... | ... |
... | @@ -459,6 +459,9 @@ public class EnterpriseServiceImpl extends FlowAbstractImpl implements Enterpris | ... | @@ -459,6 +459,9 @@ public class EnterpriseServiceImpl extends FlowAbstractImpl implements Enterpris |
459 | if(CollectionUtils.isNotEmpty(userList)){ | 459 | if(CollectionUtils.isNotEmpty(userList)){ |
460 | throw new CsbrUserException(UserError.VALIDATE_CODE_ERROR, "账号管理人手机号已存在!"); | 460 | throw new CsbrUserException(UserError.VALIDATE_CODE_ERROR, "账号管理人手机号已存在!"); |
461 | } | 461 | } |
462 | //检查会员名称等数据 | ||
463 | TenantRQVO tenant = csbrBeanUtil.convert(vo,TenantRQVO.class); | ||
464 | personelFeign.checkTenant(tenant); | ||
462 | return true; | 465 | return true; |
463 | } | 466 | } |
464 | 467 | ... | ... |
-
Please register or sign in to post a comment