短信修改
This commit is contained in:
parent
7ed2f813ef
commit
6ca84f115e
@ -96,7 +96,7 @@ public class TextMessageServiceImpl implements ITextMessageService {
|
||||
public int insertTextMessage(TextMessageTaskDTO textMessageTaskDTO) {
|
||||
// 检查短信模板名称是否已存在
|
||||
if (textMessageMapper.countByTextMessageTaskDTO(textMessageTaskDTO) > 0) {
|
||||
throw new ServiceException("短信模板名称已存在");
|
||||
throw new ServiceException("短信模板编号已存在");
|
||||
}
|
||||
|
||||
// 设置创建者和创建时间
|
||||
@ -104,7 +104,6 @@ public class TextMessageServiceImpl implements ITextMessageService {
|
||||
LocalDateTime currentTime = LocalDateTime.now();
|
||||
textMessageTaskDTO.setCreateBy(currentUsername);
|
||||
textMessageTaskDTO.setCreateTime(currentTime);
|
||||
textMessageTaskDTO.setTextMessageId(IdUtils.fastUUID());
|
||||
|
||||
// 将textMessageTaskDTO对象的属性复制到textMessage对象
|
||||
TextMessage textMessage = new TextMessage();
|
||||
|
||||
@ -153,8 +153,7 @@
|
||||
parameterType="com.xinelu.manage.dto.textmessage.TextMessageTaskDTO">
|
||||
select count(*)
|
||||
from text_message
|
||||
where department_id = #{departmentId}
|
||||
and text_message_name = #{textMessageName}
|
||||
where text_message_id = #{textMessageId}
|
||||
</select>
|
||||
|
||||
<select id="countByTextMessageNameExcludingId" resultType="java.lang.Integer">
|
||||
|
||||
@ -9,7 +9,7 @@ public interface SubscribeTaskService {
|
||||
|
||||
|
||||
/**
|
||||
* 签约患者管理任务路径节点消息推送定时任务,每10分钟执行一次
|
||||
* 签约患者管理任务路径节点消息推送定时任务
|
||||
*/
|
||||
void signPatientManageRouteNodeTask();
|
||||
}
|
||||
|
||||
@ -19,7 +19,7 @@ public class SubscribeTask {
|
||||
private SubscribeTaskService subscribeTaskService;
|
||||
|
||||
/**
|
||||
* 签约患者管理任务路径节点消息推送定时任务,每10分钟执行一次
|
||||
* 签约患者管理任务路径节点消息推送定时任务
|
||||
*/
|
||||
public void automaticSendSignPatientManageRouteNodeTask() {
|
||||
log.info("开始执行签约患者管理任务路径节点推送定时任务......");
|
||||
|
||||
Loading…
Reference in New Issue
Block a user