| | |
| | | import lombok.extern.slf4j.Slf4j; |
| | | import org.springblade.core.tenant.annotation.NonDS; |
| | | import org.springframework.web.bind.annotation.GetMapping; |
| | | import org.springframework.web.bind.annotation.PostMapping; |
| | | import org.springframework.web.bind.annotation.RequestBody; |
| | | import org.springframework.web.bind.annotation.RestController; |
| | | import springfox.documentation.annotations.ApiIgnore; |
| | | import java.util.*; |
| | |
| | | map.put("day",day); |
| | | // 创建定时任务并返回 |
| | | return callService.createCallTaskByParamByNotCall(map); |
| | | } |
| | | |
| | | /** |
| | | * 智能外呼定时创建任务执行器--指定区域呼叫 |
| | | * @param isOver |
| | | * @param taskScheduleTime |
| | | * @param personNumber |
| | | * @param day |
| | | * @return |
| | | */ |
| | | @Override |
| | | public List<String> createOutCallTaskJobHandlerByArea(String isOver, String taskScheduleTime, String personNumber, String day) { |
| | | Map<String, Object> map = new HashMap<>(4); |
| | | map.put("isOver",isOver); |
| | | map.put("taskScheduleTime",taskScheduleTime); |
| | | map.put("personNumber",personNumber); |
| | | map.put("day",day); |
| | | // 创建定时任务并返回 |
| | | return callService.createOutCallTaskJobHandlerByArea(map); |
| | | } |
| | | |
| | | /** |
| | |
| | | //外呼短信通知任务创建并返回 |
| | | return callSmsNoticeTaskService.createCallSmsNoticeTask(taskId); |
| | | } |
| | | |
| | | /** |
| | | * 创建告警外呼任务 |
| | | * @param map |
| | | * @return |
| | | */ |
| | | @Override |
| | | @PostMapping(CREATE_OUT_CALL_TASK_BY_ALARM) |
| | | public List<String> createOutCallTaskByAlarm(@RequestBody Map<String, Object> map) { |
| | | //创建告警外呼任务并返回 |
| | | return callService.createOutCallTaskByAlarm(map); |
| | | } |
| | | } |