|
@ -230,6 +230,7 @@ public class IcResiUserServiceImpl extends BaseServiceImpl<IcResiUserDao, IcResi |
|
|
/** |
|
|
/** |
|
|
* 该接口供开发人员,手动调用 |
|
|
* 该接口供开发人员,手动调用 |
|
|
* 项目上经常要求删除某个社区的人房数据, 索性写一个接口。供开发人员调用 |
|
|
* 项目上经常要求删除某个社区的人房数据, 索性写一个接口。供开发人员调用 |
|
|
|
|
|
* |
|
|
* @param formDTO |
|
|
* @param formDTO |
|
|
* @return |
|
|
* @return |
|
|
*/ |
|
|
*/ |
|
@ -467,6 +468,7 @@ public class IcResiUserServiceImpl extends BaseServiceImpl<IcResiUserDao, IcResi |
|
|
|
|
|
|
|
|
/** |
|
|
/** |
|
|
* 为党员信息生成家庭地址 |
|
|
* 为党员信息生成家庭地址 |
|
|
|
|
|
* |
|
|
* @param customerId |
|
|
* @param customerId |
|
|
* @param gridId |
|
|
* @param gridId |
|
|
* @param homeId |
|
|
* @param homeId |
|
@ -809,8 +811,8 @@ public class IcResiUserServiceImpl extends BaseServiceImpl<IcResiUserDao, IcResi |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
/** |
|
|
/** |
|
|
* @description: 生成居民变更记录 |
|
|
|
|
|
* @return |
|
|
* @return |
|
|
|
|
|
* @description: 生成居民变更记录 |
|
|
* @author: sun |
|
|
* @author: sun |
|
|
*/ |
|
|
*/ |
|
|
public void icUserChangeRecord(IcResiUserEntity entity, LinkedHashMap<String, String> map) { |
|
|
public void icUserChangeRecord(IcResiUserEntity entity, LinkedHashMap<String, String> map) { |
|
@ -3043,6 +3045,7 @@ public class IcResiUserServiceImpl extends BaseServiceImpl<IcResiUserDao, IcResi |
|
|
/** |
|
|
/** |
|
|
* 获取组织下志愿者列表 |
|
|
* 获取组织下志愿者列表 |
|
|
* 居民信息里的志愿者 |
|
|
* 居民信息里的志愿者 |
|
|
|
|
|
* |
|
|
* @param customerId |
|
|
* @param customerId |
|
|
* @param agencyId |
|
|
* @param agencyId |
|
|
* @Param customerId |
|
|
* @Param customerId |
|
@ -3167,6 +3170,7 @@ public class IcResiUserServiceImpl extends BaseServiceImpl<IcResiUserDao, IcResi |
|
|
|
|
|
|
|
|
/** |
|
|
/** |
|
|
* 目前只返回id,和姓名 |
|
|
* 目前只返回id,和姓名 |
|
|
|
|
|
* |
|
|
* @param icResiUserIdList |
|
|
* @param icResiUserIdList |
|
|
* @return |
|
|
* @return |
|
|
*/ |
|
|
*/ |
|
@ -3400,6 +3404,7 @@ public class IcResiUserServiceImpl extends BaseServiceImpl<IcResiUserDao, IcResi |
|
|
|
|
|
|
|
|
/** |
|
|
/** |
|
|
* desc:设置居民的pids pids为agencyId的pids+agencyId 即包含组织本身 如果pids 为空则pids 为agencyId |
|
|
* desc:设置居民的pids pids为agencyId的pids+agencyId 即包含组织本身 如果pids 为空则pids 为agencyId |
|
|
|
|
|
* |
|
|
* @param entity |
|
|
* @param entity |
|
|
*/ |
|
|
*/ |
|
|
@Override |
|
|
@Override |
|
@ -3625,6 +3630,7 @@ public class IcResiUserServiceImpl extends BaseServiceImpl<IcResiUserDao, IcResi |
|
|
|
|
|
|
|
|
/** |
|
|
/** |
|
|
* Desc: 居民首次进入小程序,可以根据输入身份证信息查询在数字社区居民信息中的网格,匹配不成功提示 |
|
|
* Desc: 居民首次进入小程序,可以根据输入身份证信息查询在数字社区居民信息中的网格,匹配不成功提示 |
|
|
|
|
|
* |
|
|
* @param formDTO |
|
|
* @param formDTO |
|
|
* @author zxc |
|
|
* @author zxc |
|
|
* @date 2022/8/5 11:17 |
|
|
* @date 2022/8/5 11:17 |
|
@ -3751,7 +3757,6 @@ public class IcResiUserServiceImpl extends BaseServiceImpl<IcResiUserDao, IcResi |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/** |
|
|
/** |
|
|
* 更新育龄妇女状态定时任务 |
|
|
* 更新育龄妇女状态定时任务 |
|
|
* |
|
|
* |
|
@ -3906,8 +3911,8 @@ public class IcResiUserServiceImpl extends BaseServiceImpl<IcResiUserDao, IcResi |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
/** |
|
|
/** |
|
|
* @Description 人户状况统计查询 |
|
|
|
|
|
* @param formDTO |
|
|
* @param formDTO |
|
|
|
|
|
* @Description 人户状况统计查询 |
|
|
* @Author zxc |
|
|
* @Author zxc |
|
|
* @Date 2022/11/16 09:22 |
|
|
* @Date 2022/11/16 09:22 |
|
|
*/ |
|
|
*/ |
|
@ -3967,9 +3972,9 @@ public class IcResiUserServiceImpl extends BaseServiceImpl<IcResiUserDao, IcResi |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
/** |
|
|
/** |
|
|
* @Description |
|
|
|
|
|
* @param total 总人数 |
|
|
* @param total 总人数 |
|
|
* @param fz 分子人数 |
|
|
* @param fz 分子人数 |
|
|
|
|
|
* @Description |
|
|
* @Author zxc |
|
|
* @Author zxc |
|
|
* @Date 2022/11/16 10:12 |
|
|
* @Date 2022/11/16 10:12 |
|
|
*/ |
|
|
*/ |
|
@ -3993,6 +3998,15 @@ public class IcResiUserServiceImpl extends BaseServiceImpl<IcResiUserDao, IcResi |
|
|
@Override |
|
|
@Override |
|
|
public ResiPortrayalResult queryAgeDistribute(String customerId, String staffId, String orgId, String orgType) { |
|
|
public ResiPortrayalResult queryAgeDistribute(String customerId, String staffId, String orgId, String orgType) { |
|
|
ResiPortrayalResult result = new ResiPortrayalResult(); |
|
|
ResiPortrayalResult result = new ResiPortrayalResult(); |
|
|
|
|
|
if (null != redisUtils.get(RedisKeys.getAgeDistribute()) && StringUtils.isBlank(orgId) && StringUtils.isBlank(orgType)) { |
|
|
|
|
|
result = (ResiPortrayalResult) redisUtils.get(RedisKeys.getAgeDistribute()); |
|
|
|
|
|
} else { |
|
|
|
|
|
result = queryage(customerId, staffId, orgId, orgType, result); |
|
|
|
|
|
} |
|
|
|
|
|
return result; |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
private ResiPortrayalResult queryage(String customerId, String staffId, String orgId, String orgType, ResiPortrayalResult result) { |
|
|
if (StringUtils.isBlank(orgId)) { |
|
|
if (StringUtils.isBlank(orgId)) { |
|
|
orgId = CustomerStaffRedis.getStaffInfo(customerId, staffId).getAgencyId(); |
|
|
orgId = CustomerStaffRedis.getStaffInfo(customerId, staffId).getAgencyId(); |
|
|
orgType = OrgTypeEnum.AGENCY.getCode(); |
|
|
orgType = OrgTypeEnum.AGENCY.getCode(); |
|
@ -4021,6 +4035,7 @@ public class IcResiUserServiceImpl extends BaseServiceImpl<IcResiUserDao, IcResi |
|
|
return result; |
|
|
return result; |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
private List<ResiPortrayalResultDTO> getDefaultAgeDistribute() { |
|
|
private List<ResiPortrayalResultDTO> getDefaultAgeDistribute() { |
|
|
List<ResiPortrayalResultDTO> list = new ArrayList<>(); |
|
|
List<ResiPortrayalResultDTO> list = new ArrayList<>(); |
|
|
for (int code = 0; code <= 4; code++) { |
|
|
for (int code = 0; code <= 4; code++) { |
|
@ -4064,6 +4079,15 @@ public class IcResiUserServiceImpl extends BaseServiceImpl<IcResiUserDao, IcResi |
|
|
@Override |
|
|
@Override |
|
|
public ResiPortrayalResult queryEducationDistribute(String customerId, String staffId, String orgId, String orgType) { |
|
|
public ResiPortrayalResult queryEducationDistribute(String customerId, String staffId, String orgId, String orgType) { |
|
|
ResiPortrayalResult result = new ResiPortrayalResult(); |
|
|
ResiPortrayalResult result = new ResiPortrayalResult(); |
|
|
|
|
|
if (null != redisUtils.get(RedisKeys.getEducationDistribute()) && StringUtils.isBlank(orgId) && StringUtils.isBlank(orgType)) { |
|
|
|
|
|
result = (ResiPortrayalResult) redisUtils.get(RedisKeys.getEducationDistribute()); |
|
|
|
|
|
} else { |
|
|
|
|
|
result = queryEdu(customerId, staffId, orgId, orgType, result); |
|
|
|
|
|
} |
|
|
|
|
|
return result; |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
private ResiPortrayalResult queryEdu(String customerId, String staffId, String orgId, String orgType, ResiPortrayalResult result) { |
|
|
if (StringUtils.isBlank(orgId)) { |
|
|
if (StringUtils.isBlank(orgId)) { |
|
|
orgId = CustomerStaffRedis.getStaffInfo(customerId, staffId).getAgencyId(); |
|
|
orgId = CustomerStaffRedis.getStaffInfo(customerId, staffId).getAgencyId(); |
|
|
orgType = OrgTypeEnum.AGENCY.getCode(); |
|
|
orgType = OrgTypeEnum.AGENCY.getCode(); |
|
@ -4343,7 +4367,19 @@ public class IcResiUserServiceImpl extends BaseServiceImpl<IcResiUserDao, IcResi |
|
|
throw new EpmetException(EpmetErrorCode.EPMET_COMMON_OPERATION_FAIL.getCode(), "获取该组织的userchart失败" + agencyResultDTO.getAgencyId(), "获取该组织的userchart失败"); |
|
|
throw new EpmetException(EpmetErrorCode.EPMET_COMMON_OPERATION_FAIL.getCode(), "获取该组织的userchart失败" + agencyResultDTO.getAgencyId(), "获取该组织的userchart失败"); |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
|
|
|
// 缓存 画像人年纪,学历
|
|
|
|
|
|
updateUserDistribute(); |
|
|
return true; |
|
|
return true; |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
public void updateUserDistribute() { |
|
|
|
|
|
ResiPortrayalResult result = new ResiPortrayalResult(); |
|
|
|
|
|
ResiPortrayalResult resiPortrayalResult = queryage("1535072605621841922", "1535072605630230530", "", "", result); |
|
|
|
|
|
redisUtils.set(RedisKeys.getAgeDistribute(), resiPortrayalResult, RedisUtils.DEFAULT_EXPIRE); |
|
|
|
|
|
ResiPortrayalResult portrayalResult = new ResiPortrayalResult(); |
|
|
|
|
|
ResiPortrayalResult resiEducationResult = queryEdu("1535072605621841922", "1535072605630230530", "", "", portrayalResult); |
|
|
|
|
|
redisUtils.set(RedisKeys.getEducationDistribute(), resiEducationResult, RedisUtils.DEFAULT_EXPIRE); |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
} |
|
|
} |