Commit 2404c066 authored by suhuiguang's avatar suhuiguang

1.增加注释

parent 19f04899
......@@ -151,10 +151,12 @@ public class RegUnitInfoController extends BaseController {
@GetMapping(value = "/{userName}/hasExistUser")
@ApiOperation(httpMethod = "GET", value = "判断用户是否存在", notes = "判断用户是否存在")
public ResponseModel<Boolean> hasExistUser(@PathVariable(value = "userName") String userName) {
// 1.先看平台是否已经存在相同用户名用户
AgencyUserModel user = Privilege.agencyUserClient.queryByUserName(userName).getResult();
if (user != null) {
return ResponseHelper.buildResponse(false);
}
// 2.再校验本地是否,有其他企业注册过
return ResponseHelper.buildResponse(iRegUnitInfoService.checkRepeatAccount(userName));
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment