Commit 45ab0084 by zhaolianjie

卡片流程 - 删除群组

1 parent 3287999c
...@@ -217,6 +217,13 @@ public class FeiShuEventController { ...@@ -217,6 +217,13 @@ public class FeiShuEventController {
return null; return null;
} }
@PostMapping("/delete-chat-list")
public Object deleteChat() {
String chatId = (String) CacheUtil.get("chatId");
log.info("删除群组id:{}", chatId);
feiShuApiService.deleteChatList(chatId);
return null;
}
@PostMapping("/employee-list") @PostMapping("/employee-list")
public Object event() { public Object event() {
...@@ -367,13 +374,13 @@ public class FeiShuEventController { ...@@ -367,13 +374,13 @@ public class FeiShuEventController {
} }
@PostMapping("/send-msg") @PostMapping("/send-msg")
public Result sendMsg(String receiveId, String msg, String receiveIdType){ public Result sendMsg(String receiveId, String msg, String receiveIdType) {
FeiShuMsgDTO feiShuMsgDTO = new FeiShuMsgDTO(); FeiShuMsgDTO feiShuMsgDTO = new FeiShuMsgDTO();
JSONObject content = new JSONObject(); JSONObject content = new JSONObject();
content.put("text", msg); content.put("text", msg);
feiShuMsgDTO.setMsgType("text"); feiShuMsgDTO.setMsgType("text");
feiShuMsgDTO.setContent(content.toString()); feiShuMsgDTO.setContent(content.toString());
if(receiveId.equals("-1")){ if (receiveId.equals("-1")) {
receiveId = (String) CacheUtil.get("chatId"); receiveId = (String) CacheUtil.get("chatId");
} }
feiShuMsgDTO.setReceiveId(receiveId); feiShuMsgDTO.setReceiveId(receiveId);
......
...@@ -156,7 +156,16 @@ public class MassageNoticeScheduleService { ...@@ -156,7 +156,16 @@ public class MassageNoticeScheduleService {
} }
} }
} }
/**
* 每周四18:00删除当天的群聊
*/
@Async
@Scheduled(cron = "0 0 18 * * ?")
public void deleteChatList() {
String chatId = (String) CacheUtil.get("chatId");
feiShuApiService.deleteChatList(chatId);
}
/** /**
* 当天时间2:55,给第一波三个人更新卡片,并发送应用内提醒 * 当天时间2:55,给第一波三个人更新卡片,并发送应用内提醒
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!