更新用于生产订阅区划编码的用户筛选

This commit is contained in:
liuchengqian 2023-03-10 17:16:24 +08:00
parent 3bf5b889a1
commit bcae4ea896

View File

@ -123,6 +123,15 @@ public class FirePointSubscribeManager {
private List<String> obtainCountyCodeList(List<SysUserEntity> sysUserEntityList) {
List<String> countyCodeList = new ArrayList<>();
for (SysUserEntity sysUserEntity : sysUserEntityList) {
if (sysUserEntity.getActiveFlag() != 0) {//被禁用的用户不计入订阅
continue;
}
if (sysUserEntity.getReceiveSms() != 1) {//关掉开关的用户不计入订阅
continue;
}
if ("管理员".equals(sysUserEntity.getAccountType())) {//管理员用户不计入订阅
continue;
}
boolean inVipTimeRange = VipTimeRangeUtils.checkIfInVipTimeRange(sysUserEntity.getVipTimeRangeJson());
if (inVipTimeRange) {
countyCodeList.add(sysUserEntity.getCountyCode());