新增跟进任务的消息类型,消息发送做调整
This commit is contained in:
@@ -8,7 +8,8 @@ package com.cool.store.enums;
|
||||
*/
|
||||
public enum MessageTypeEnum {
|
||||
|
||||
SCHEDULE_REMINDER("schedule_reminder", "日历提醒事件", "img_v2_0709ece3-77a8-49a4-820f-f245b2a4fdag")
|
||||
SCHEDULE_REMINDER("schedule_reminder", "日历提醒事件", "img_v2_0709ece3-77a8-49a4-820f-f245b2a4fdag"),
|
||||
FOLLOW_TASK("follow_task", "跟进任务提醒", "img_v2_0709ece3-77a8-49a4-820f-f245b2a4fdag")
|
||||
|
||||
|
||||
|
||||
|
||||
@@ -10,14 +10,11 @@ import com.cool.store.dto.enterprise.SysDepartmentDTO;
|
||||
import com.cool.store.dto.login.UserIdInfoDTO;
|
||||
import com.cool.store.dto.message.SendCardMessageDTO;
|
||||
import com.cool.store.dto.response.ResultDTO;
|
||||
import com.cool.store.entity.EnterpriseUserDO;
|
||||
import com.cool.store.enums.ErrorCodeEnum;
|
||||
import com.cool.store.enums.MessageTypeEnum;
|
||||
import com.cool.store.exception.ApiException;
|
||||
import com.cool.store.exception.ServiceException;
|
||||
import com.cool.store.mq.util.HttpRestTemplateService;
|
||||
import com.cool.store.request.EnterpriseUserRequest;
|
||||
import com.cool.store.utils.RestTemplateUtil;
|
||||
import com.google.common.collect.Lists;
|
||||
import lombok.extern.slf4j.Slf4j;
|
||||
import org.apache.commons.collections4.CollectionUtils;
|
||||
import org.apache.commons.lang3.StringUtils;
|
||||
@@ -27,7 +24,6 @@ import org.springframework.scheduling.annotation.Async;
|
||||
import org.springframework.stereotype.Service;
|
||||
|
||||
import javax.annotation.Resource;
|
||||
import java.util.Date;
|
||||
import java.util.HashMap;
|
||||
import java.util.List;
|
||||
import java.util.Objects;
|
||||
@@ -361,7 +357,11 @@ public class ISVHttpRequest {
|
||||
String url = isvDomain + "/sendFeiShuCardMessage";
|
||||
ResultDTO responseEntity = null;
|
||||
try {
|
||||
responseEntity = httpRestTemplateService.postForObject(url, param, ResultDTO.class);
|
||||
MessageTypeEnum messageType = param.getMessageType();
|
||||
String messageTypeStr = JSONObject.toJSONString(messageType);
|
||||
JSONObject request = JSONObject.parseObject(JSONObject.toJSONString(param));
|
||||
request.put("messageType", messageTypeStr);
|
||||
responseEntity = httpRestTemplateService.postForObject(url, request, ResultDTO.class);
|
||||
log.info("url:{}, response:{}", url, JSONObject.toJSONString(responseEntity));
|
||||
} catch (Exception e) {
|
||||
log.info("调用isv出错{}", e);
|
||||
|
||||
@@ -60,6 +60,8 @@ public class TestController {
|
||||
private HyPartnerTaskInfoLogDAO hyPartnerTaskInfoLogDAO;
|
||||
@Resource
|
||||
private OpenAreaService openAreaService;
|
||||
@Resource
|
||||
private FollowTaskService followTaskService;
|
||||
|
||||
@PostMapping("/post")
|
||||
public ResponseResult<Boolean> get(@RequestBody List<TestRequest> testRequestList){
|
||||
@@ -266,4 +268,10 @@ public class TestController {
|
||||
}
|
||||
return null;
|
||||
}
|
||||
|
||||
@GetMapping("/followTaskAnHourAgoRemind")
|
||||
public ResponseResult followTaskAnHourAgoRemind() {
|
||||
followTaskService.followTaskAnHourAgoRemind();
|
||||
return ResponseResult.success();
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user