优化订阅更新

This commit is contained in:
liuchengqian 2023-03-16 11:33:25 +08:00
parent 975e971469
commit 4834696a6c

View File

@ -123,12 +123,6 @@ 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())) {//管理员用户不计入订阅 if ("管理员".equals(sysUserEntity.getAccountType())) {//管理员用户不计入订阅
continue; continue;
} }