|
@@ -1,6 +1,7 @@
|
|
|
package com.dayou.service.impl;
|
|
|
|
|
|
import cn.hutool.core.collection.CollectionUtil;
|
|
|
+import cn.hutool.core.date.LocalDateTimeUtil;
|
|
|
import cn.hutool.core.util.RandomUtil;
|
|
|
import cn.hutool.core.util.StrUtil;
|
|
|
import com.alibaba.fastjson.JSON;
|
|
@@ -22,6 +23,7 @@ import com.dayou.message.handler.SystemMessageHandler;
|
|
|
import com.dayou.service.*;
|
|
|
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
|
|
|
import com.dayou.service.workflow.IWorkTaskRecordService;
|
|
|
+import com.dayou.utils.DateUtils;
|
|
|
import com.dayou.utils.LoginContext;
|
|
|
import com.dayou.vo.CommissionDeclareVO;
|
|
|
import com.dayou.vo.ItemVO;
|
|
@@ -44,6 +46,7 @@ import static com.dayou.enums.BusinessReplyEnum.MARKET_VISIT_REPLY;
|
|
|
import static com.dayou.message.MessageTitle.*;
|
|
|
import static com.dayou.message.MessageTitle.MAJOR_DECLARE_REMIND;
|
|
|
import static com.dayou.message.MessageTypeEnum.*;
|
|
|
+import static com.dayou.utils.DateUtils.YYYY_MM_DD_HH_MM_SS;
|
|
|
|
|
|
/**
|
|
|
* <p>
|
|
@@ -291,7 +294,7 @@ public class MessageServiceImpl extends ServiceImpl<MessageMapper, Message> impl
|
|
|
message.setMessage(new StringBuilder(taskReminderVO.getUser()).append("提交").append(taskReminderVO.getBusinessType())
|
|
|
.append(StrUtil.isNotBlank(taskReminderVO.getNo())?taskReminderVO.getNo():"").append("的新的流程待办,请及时处理。").toString());
|
|
|
this.save(message);
|
|
|
- taskReminderVO.setCreated(message.getCreated());
|
|
|
+ taskReminderVO.setCreated(DateUtils.parseDateToStr(YYYY_MM_DD_HH_MM_SS,message.getCreated()));
|
|
|
taskReminderVO.setHandlerId(handlerId);
|
|
|
//发送websocket
|
|
|
webSocketServer.sendNodeReminder(taskReminderVO);
|
|
@@ -302,7 +305,7 @@ public class MessageServiceImpl extends ServiceImpl<MessageMapper, Message> impl
|
|
|
public void sendWebSocket() {
|
|
|
TaskReminderVO taskReminderVO = new TaskReminderVO();
|
|
|
taskReminderVO.setId(RandomUtil.randomLong());
|
|
|
- taskReminderVO.setCreated(new Date());
|
|
|
+ taskReminderVO.setCreated(DateUtils.parseDateToStr(YYYY_MM_DD_HH_MM_SS,new Date()));
|
|
|
taskReminderVO.setHandlerId(1L);
|
|
|
taskReminderVO.setUser("管理员");
|
|
|
taskReminderVO.setNo("2025010001");
|