| | |
| | | Assert.hasKeyAndValue(reqJson, "communityId", "未包含小区"); |
| | | Assert.hasKeyAndValue(reqJson, "roomName", "未包含房屋"); |
| | | Assert.hasKeyAndValue(reqJson, "roomId", "未包含房屋"); |
| | | // Assert.hasKeyAndValue(reqJson, "link", "未包含手机号"); |
| | | Assert.hasKeyAndValue(reqJson, "ownerName", "未包含人员名称"); |
| | | Assert.hasKeyAndValue(reqJson, "link", "未包含手机号"); |
| | | // Assert.hasKeyAndValue(reqJson, "ownerName", "未包含人员名称"); |
| | | Assert.hasKeyAndValue(reqJson, "ownerTypeCd", "未包含人员类型"); |
| | | |
| | | //todo 根据手机号查询 是否已经认证过,如果认证过则不能再次认证 |
| | |
| | | userDto.setUserId(userId); |
| | | List<UserDto> userDtos = userV1InnerServiceSMOImpl.queryUsers(userDto); |
| | | Assert.listOnlyOne(userDtos, "用户未登录"); |
| | | // if(!StringUtils.isEmpty(userDtos.get(0).getTel())){ |
| | | // if (!userDtos.get(0).getTel().equals(reqJson.getString("link"))) { |
| | | // throw new CmdException("手机号错误,不是注册时的手机号"); |
| | | // } |
| | | // } |
| | | if(!StringUtils.isEmpty(userDtos.get(0).getTel())){ |
| | | if (!userDtos.get(0).getTel().equals(reqJson.getString("link"))) { |
| | | throw new CmdException("手机号错误,不是注册时的手机号"); |
| | | } |
| | | } |
| | | OwnerAppUserDto ownerAppUserDto = new OwnerAppUserDto(); |
| | | //由于手机号是非必填,所有有可能查出来大量用户,所以不能使用手机号查询,要用userId查询 |
| | | // ownerAppUserDto.setLink(reqJson.getString("link")); |
| | |
| | | }else{ |
| | | for(OwnerAppUserDto ownerAppUser : ownerAppUserDtos){ |
| | | ownerAppUserPo.setAppUserId(ownerAppUser.getAppUserId()); |
| | | if(StringUtils.isEmpty(reqJson.getString("link"))){ |
| | | ownerAppUserPo.setState(OwnerAppUserDto.STATE_AUDITING); |
| | | }else{ |
| | | ownerAppUserPo.setState(OwnerAppUserDto.STATE_AUDIT_SUCCESS); |
| | | } |
| | | ownerAppUserPo.setLink(reqJson.getString("link")); |
| | | ownerAppUserPo.setState(OwnerAppUserDto.STATE_AUDIT_SUCCESS); |
| | | ownerAppUserV1InnerServiceSMOImpl.updateOwnerAppUser(ownerAppUserPo); |
| | | //更新building_owner表的link字段 |
| | | OwnerPo ownerPo = new OwnerPo(); |