|
@ -2052,6 +2052,7 @@ public class IcResiUserServiceImpl extends BaseServiceImpl<IcResiUserDao, IcResi |
|
|
LambdaQueryWrapper<IcResiUserEntity> wrapper = new LambdaQueryWrapper<>(); |
|
|
LambdaQueryWrapper<IcResiUserEntity> wrapper = new LambdaQueryWrapper<>(); |
|
|
wrapper.eq(IcResiUserEntity::getCustomerId, formDTO.getCustomerId()); |
|
|
wrapper.eq(IcResiUserEntity::getCustomerId, formDTO.getCustomerId()); |
|
|
wrapper.eq(IcResiUserEntity::getIdCard, formDTO.getIdCard()); |
|
|
wrapper.eq(IcResiUserEntity::getIdCard, formDTO.getIdCard()); |
|
|
|
|
|
wrapper.eq(IcResiUserEntity::getStatus, NumConstant.ZERO_STR); |
|
|
user = baseDao.selectOne(wrapper); |
|
|
user = baseDao.selectOne(wrapper); |
|
|
if(null == user) { |
|
|
if(null == user) { |
|
|
return dto; |
|
|
return dto; |
|
@ -2084,6 +2085,7 @@ public class IcResiUserServiceImpl extends BaseServiceImpl<IcResiUserDao, IcResi |
|
|
LambdaQueryWrapper<IcResiUserEntity> wrapper = new LambdaQueryWrapper<>(); |
|
|
LambdaQueryWrapper<IcResiUserEntity> wrapper = new LambdaQueryWrapper<>(); |
|
|
wrapper.eq(IcResiUserEntity::getCustomerId, formDTO.getCustomerId()); |
|
|
wrapper.eq(IcResiUserEntity::getCustomerId, formDTO.getCustomerId()); |
|
|
wrapper.eq(IcResiUserEntity::getIdCard, formDTO.getIdCard()); |
|
|
wrapper.eq(IcResiUserEntity::getIdCard, formDTO.getIdCard()); |
|
|
|
|
|
wrapper.eq(IcResiUserEntity::getStatus, NumConstant.ZERO_STR); |
|
|
IcResiUserEntity user = baseDao.selectOne(wrapper); |
|
|
IcResiUserEntity user = baseDao.selectOne(wrapper); |
|
|
//居民信息不存在时返回
|
|
|
//居民信息不存在时返回
|
|
|
if(null == user) { |
|
|
if(null == user) { |
|
@ -2124,6 +2126,41 @@ public class IcResiUserServiceImpl extends BaseServiceImpl<IcResiUserDao, IcResi |
|
|
return dto; |
|
|
return dto; |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
/** |
|
|
|
|
|
* 根据身份证获取居民信息(党员管理用,主要显示住址) |
|
|
|
|
|
* |
|
|
|
|
|
* @param formDTO |
|
|
|
|
|
* @Param formDTO |
|
|
|
|
|
* @Return {@link IcResiUserInfoDTO} |
|
|
|
|
|
* @Author zhaoqifeng |
|
|
|
|
|
* @Date 2022/5/20 9:59 |
|
|
|
|
|
*/ |
|
|
|
|
|
@Override |
|
|
|
|
|
public IcResiUserInfoDTO getUserByIdCard(IcResiUserDTO formDTO) { |
|
|
|
|
|
IcResiUserInfoDTO result = new IcResiUserInfoDTO(); |
|
|
|
|
|
LambdaQueryWrapper<IcResiUserEntity> wrapper = new LambdaQueryWrapper<>(); |
|
|
|
|
|
wrapper.eq(IcResiUserEntity::getCustomerId, formDTO.getCustomerId()); |
|
|
|
|
|
wrapper.eq(IcResiUserEntity::getIdCard, formDTO.getIdCard()); |
|
|
|
|
|
wrapper.eq(IcResiUserEntity::getStatus, NumConstant.ZERO_STR); |
|
|
|
|
|
IcResiUserEntity entity = baseDao.selectOne(wrapper); |
|
|
|
|
|
if (null != entity) { |
|
|
|
|
|
result.setIcResiUserId(entity.getId()); |
|
|
|
|
|
result.setName(entity.getName()); |
|
|
|
|
|
result.setMobile(entity.getMobile()); |
|
|
|
|
|
//查询网格信息
|
|
|
|
|
|
GridInfoCache gridInfo = CustomerOrgRedis.getGridInfo(entity.getGridId()); |
|
|
|
|
|
//查询房屋信息
|
|
|
|
|
|
HouseInfoCache houseInfo = CustomerIcHouseRedis.getHouseInfo(formDTO.getCustomerId(), entity.getHomeId()); |
|
|
|
|
|
if (null != gridInfo && null != houseInfo) { |
|
|
|
|
|
String address = gridInfo.getAllParentName().concat(StrConstant.HYPHEN).concat(gridInfo.getGridNamePath()) |
|
|
|
|
|
.concat(StrConstant.HYPHEN).concat(houseInfo.getNeighborHoodName()) |
|
|
|
|
|
.concat(StrConstant.HYPHEN).concat(houseInfo.getHouseName()); |
|
|
|
|
|
result.setAddress(address); |
|
|
|
|
|
} |
|
|
|
|
|
} |
|
|
|
|
|
return result; |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
/** |
|
|
/** |
|
|
* desc:根据字段值获取 options |
|
|
* desc:根据字段值获取 options |
|
|
* @param customerId |
|
|
* @param customerId |
|
|