fix: 发消息跳过空的人
This commit is contained in:
+4
-1
@@ -1,6 +1,7 @@
|
|||||||
package com.jero.modules.laws.standard.job;
|
package com.jero.modules.laws.standard.job;
|
||||||
|
|
||||||
import cn.hutool.core.collection.CollUtil;
|
import cn.hutool.core.collection.CollUtil;
|
||||||
|
import cn.hutool.core.util.StrUtil;
|
||||||
import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
|
import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
|
||||||
import com.jero.common.api.SendMessageAPI;
|
import com.jero.common.api.SendMessageAPI;
|
||||||
import com.jero.common.api.dto.message.SendMessageDTO;
|
import com.jero.common.api.dto.message.SendMessageDTO;
|
||||||
@@ -213,7 +214,9 @@ public class ReplaceImplementationDateMsgJob implements Job {
|
|||||||
standard = standard.split("《")[0];
|
standard = standard.split("《")[0];
|
||||||
LawsDomesticStandard replaceStandard = standardMap.get(standard);
|
LawsDomesticStandard replaceStandard = standardMap.get(standard);
|
||||||
// 被代替标准的主起草人,责任人,收藏标准的人员
|
// 被代替标准的主起草人,责任人,收藏标准的人员
|
||||||
userIdSet.add(replaceStandard.getResponsibleUser());
|
if (StrUtil.isNotBlank(replaceStandard.getResponsibleUser())) {
|
||||||
|
userIdSet.add(replaceStandard.getResponsibleUser());
|
||||||
|
}
|
||||||
// 获取收藏标准的所有人员
|
// 获取收藏标准的所有人员
|
||||||
LambdaQueryWrapper<LawsStandardCollection> wrapper = new LambdaQueryWrapper<>();
|
LambdaQueryWrapper<LawsStandardCollection> wrapper = new LambdaQueryWrapper<>();
|
||||||
wrapper.eq(LawsStandardCollection::getStandardId, replaceStandard.getId());
|
wrapper.eq(LawsStandardCollection::getStandardId, replaceStandard.getId());
|
||||||
|
|||||||
Reference in New Issue
Block a user