|
|
|
@ -2,6 +2,7 @@ package com.zdxt.enforcementcode.service.impl; |
|
|
|
|
|
|
|
import cn.hutool.core.util.IdUtil; |
|
|
|
import com.zdxt.enforcementcode.common.commonenum.MsgSourceTypeEnum; |
|
|
|
import com.zdxt.enforcementcode.domain.bean.EnforcementEducationServices; |
|
|
|
import com.zdxt.enforcementcode.domain.bo.thirdparty.YuGaoMsgParamBo; |
|
|
|
import com.zdxt.enforcementcode.service.ISysMessageViewLogService; |
|
|
|
import com.zdxt.enforcementcode.service.thirdparty.ISIQService; |
|
|
|
@ -252,6 +253,8 @@ public class EfcodeCpNoticeServiceImpl implements IEfcodeCpNoticeService { |
|
|
|
* 发布预告时自动生成系统提示消息 |
|
|
|
*/ |
|
|
|
private void generateSystemMessage(EfcodeCpNotice notice) { |
|
|
|
|
|
|
|
|
|
|
|
String enforceTimeText = switch (notice.getEnforceTime() == null ? 0 : notice.getEnforceTime().intValue()) { |
|
|
|
case 1 -> "上午"; |
|
|
|
case 2 -> "下午"; |
|
|
|
@ -266,7 +269,7 @@ public class EfcodeCpNoticeServiceImpl implements IEfcodeCpNoticeService { |
|
|
|
msg.setId(IdUtil.getSnowflakeNextIdStr()); |
|
|
|
msg.setNoticeId(notice.getId()); |
|
|
|
msg.setUserId("0"); |
|
|
|
msg.setUserName("系统"); |
|
|
|
msg.setUserName(LoginHelper.getUsername()); |
|
|
|
msg.setMsgFrom(0L); |
|
|
|
msg.setMsgType(2); |
|
|
|
msg.setMessage(message); |
|
|
|
@ -288,6 +291,16 @@ public class EfcodeCpNoticeServiceImpl implements IEfcodeCpNoticeService { |
|
|
|
lqw.like(StringUtils.isNotBlank(bo.getEnterpriseName()), EfcodeCpNotice::getEnterpriseName, bo.getEnterpriseName()); |
|
|
|
lqw.eq(bo.getStatus() != null, EfcodeCpNotice::getStatus, bo.getStatus()); |
|
|
|
lqw.eq(bo.getIsDelete() != null, EfcodeCpNotice::getIsDelete, bo.getIsDelete()); |
|
|
|
|
|
|
|
// 搜索值(多字段模糊匹配)
|
|
|
|
if (StringUtils.isNotBlank(bo.getSearchValue())) { |
|
|
|
String sv = bo.getSearchValue(); |
|
|
|
lqw.and(wrapper -> wrapper |
|
|
|
.like(StringUtils.isNotBlank(bo.getBureauDeptName()), EfcodeCpNotice::getBureauDeptName, sv) |
|
|
|
.or().like(StringUtils.isNotBlank(bo.getEnterpriseName()), EfcodeCpNotice::getEnterpriseName, sv) |
|
|
|
.or().like(StringUtils.isNotBlank(bo.getEnforceContent()), EfcodeCpNotice::getEnforceContent, sv) |
|
|
|
); |
|
|
|
} |
|
|
|
return lqw; |
|
|
|
} |
|
|
|
|
|
|
|
|