mirror of
http://192.168.1.205:9980/cf_devdept2/cf_imes_server.git
synced 2026-08-12 21:02:08 +08:00
禅道bug#1629修复
This commit is contained in:
+4
-4
@@ -14,6 +14,8 @@ import jakarta.annotation.Resource;
|
||||
import java.util.Map;
|
||||
import java.util.Objects;
|
||||
|
||||
import static com.cf.imes.module.system.enums.ErrorCodeConstants.NOTIFY_TEMPLATE_CLOSED;
|
||||
|
||||
/**
|
||||
* 站内信发送 Service 实现类
|
||||
*
|
||||
@@ -39,8 +41,7 @@ public class NotifySendServiceImpl implements NotifySendService {
|
||||
// 校验模版
|
||||
NotifyTemplateDO template = validateNotifyTemplate(templateCode);
|
||||
if (Objects.equals(template.getStatus(), CommonStatusEnum.DISABLE.getStatus())) {
|
||||
log.info("[sendSingleNotify][模版({})已经关闭,无法给用户({}/{})发送]", templateCode, userId, userType);
|
||||
return null;
|
||||
throw new ServiceException(NOTIFY_TEMPLATE_CLOSED);
|
||||
}
|
||||
// 校验参数
|
||||
validateTemplateParams(template, templateParams);
|
||||
@@ -60,8 +61,7 @@ public class NotifySendServiceImpl implements NotifySendService {
|
||||
// 校验模版
|
||||
NotifyTemplateDO template = validateNotifyTemplate(templateCode);
|
||||
if (Objects.equals(template.getStatus(), CommonStatusEnum.DISABLE.getStatus())) {
|
||||
log.info("[sendSingleNotify][模版({})已经关闭,无法给用户({}/{})发送]", templateCode, userId, userType);
|
||||
return null;
|
||||
throw new ServiceException(NOTIFY_TEMPLATE_CLOSED);
|
||||
}
|
||||
// 校验参数
|
||||
validateTemplateParams(template, templateParams);
|
||||
|
||||
Reference in New Issue
Block a user