更新用于生产订阅区划编码的用户筛选
This commit is contained in:
parent
3bf5b889a1
commit
bcae4ea896
@ -123,6 +123,15 @@ public class FirePointSubscribeManager {
|
|||||||
private List<String> obtainCountyCodeList(List<SysUserEntity> sysUserEntityList) {
|
private List<String> obtainCountyCodeList(List<SysUserEntity> sysUserEntityList) {
|
||||||
List<String> countyCodeList = new ArrayList<>();
|
List<String> countyCodeList = new ArrayList<>();
|
||||||
for (SysUserEntity sysUserEntity : sysUserEntityList) {
|
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());
|
boolean inVipTimeRange = VipTimeRangeUtils.checkIfInVipTimeRange(sysUserEntity.getVipTimeRangeJson());
|
||||||
if (inVipTimeRange) {
|
if (inVipTimeRange) {
|
||||||
countyCodeList.add(sysUserEntity.getCountyCode());
|
countyCodeList.add(sysUserEntity.getCountyCode());
|
||||||
|
Loading…
Reference in New Issue
Block a user