|
@ -513,7 +513,7 @@ public class UserServiceImpl extends BaseServiceImpl<UserDao, UserEntity> implem |
|
|
if (StringUtils.isNotBlank(identityNo)) { |
|
|
if (StringUtils.isNotBlank(identityNo)) { |
|
|
QueryWrapper<UserEntity> wrapper = new QueryWrapper<>(); |
|
|
QueryWrapper<UserEntity> wrapper = new QueryWrapper<>(); |
|
|
wrapper.eq(UserFieldConsant.IDENTITY_NO, identityNo); |
|
|
wrapper.eq(UserFieldConsant.IDENTITY_NO, identityNo); |
|
|
wrapper.ne(formDto.getUserId()!=null,FieldConstant.ID,formDto.getUserId()); |
|
|
wrapper.ne(formDto.getUserId() != null, FieldConstant.ID, formDto.getUserId()); |
|
|
Integer count = this.baseDao.selectCount(wrapper); |
|
|
Integer count = this.baseDao.selectCount(wrapper); |
|
|
if (count > NumConstant.ZERO) { |
|
|
if (count > NumConstant.ZERO) { |
|
|
return new Result().error("身份证号已被注册"); |
|
|
return new Result().error("身份证号已被注册"); |
|
@ -1365,6 +1365,14 @@ public class UserServiceImpl extends BaseServiceImpl<UserDao, UserEntity> implem |
|
|
return new Result<CachingUserInfoDTO>().ok(cachingUserInfoDTO); |
|
|
return new Result<CachingUserInfoDTO>().ok(cachingUserInfoDTO); |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
@Override |
|
|
|
|
|
public Result<CachingUserInfoDTO> queryNpmCachingUserInfo(EpdcAppQueryUserInfoFormDTO formDTO) { |
|
|
|
|
|
if (StringUtils.isBlank(formDTO.getOpenId())) { |
|
|
|
|
|
throw new RenException("openId不能为空"); |
|
|
|
|
|
} |
|
|
|
|
|
return new Result<CachingUserInfoDTO>().ok(baseDao.selectNpmCachingUserInfoDTO(formDTO.getOpenId(), formDTO.getUnionId())); |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
/** |
|
|
/** |
|
|
* @return com.elink.esua.epdc.commons.tools.utils.Result |
|
|
* @return com.elink.esua.epdc.commons.tools.utils.Result |
|
|
* @Author yinzuomei |
|
|
* @Author yinzuomei |
|
@ -2097,8 +2105,8 @@ public class UserServiceImpl extends BaseServiceImpl<UserDao, UserEntity> implem |
|
|
entity1.setGridId(parentAndAllDeptDTOResult.getData().getGridId()); |
|
|
entity1.setGridId(parentAndAllDeptDTOResult.getData().getGridId()); |
|
|
entity1.setGrid(parentAndAllDeptDTOResult.getData().getGrid()); |
|
|
entity1.setGrid(parentAndAllDeptDTOResult.getData().getGrid()); |
|
|
LambdaUpdateWrapper<UserGridRelationEntity> updateWrapper = Wrappers.lambdaUpdate(); |
|
|
LambdaUpdateWrapper<UserGridRelationEntity> updateWrapper = Wrappers.lambdaUpdate(); |
|
|
updateWrapper.eq(UserGridRelationEntity::getUserId,entity.getId()); |
|
|
updateWrapper.eq(UserGridRelationEntity::getUserId, entity.getId()); |
|
|
userGridRelationService.update(entity1,updateWrapper); |
|
|
userGridRelationService.update(entity1, updateWrapper); |
|
|
|
|
|
|
|
|
return new Result<String>().ok("修改成功"); |
|
|
return new Result<String>().ok("修改成功"); |
|
|
} |
|
|
} |
|
|