|
@@ -4,13 +4,16 @@ import com.ym.mec.biz.dal.enums.IndexDataType;
|
|
|
import com.ym.mec.biz.event.source.CourseEventSource;
|
|
|
import com.ym.mec.biz.service.*;
|
|
|
import com.ym.mec.common.controller.BaseController;
|
|
|
+import com.ym.mec.common.entity.UploadReturnBean;
|
|
|
import com.ym.mec.common.redis.service.RedisCache;
|
|
|
+import com.yonge.log.service.HistoryMessageService;
|
|
|
import org.apache.commons.lang3.StringUtils;
|
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
|
import org.springframework.web.bind.annotation.GetMapping;
|
|
|
import org.springframework.web.bind.annotation.RequestMapping;
|
|
|
import org.springframework.web.bind.annotation.RestController;
|
|
|
|
|
|
+import java.io.File;
|
|
|
import java.util.*;
|
|
|
import java.util.stream.Collectors;
|
|
|
|
|
@@ -100,6 +103,18 @@ public class TaskController extends BaseController {
|
|
|
|
|
|
@Autowired
|
|
|
private CloudTeacherOrderService cloudTeacherOrderService;
|
|
|
+ @Autowired
|
|
|
+ private HistoryMessageService historyMessageService;
|
|
|
+ @Autowired
|
|
|
+ private UploadFileService uploadFileService;
|
|
|
+
|
|
|
+ @GetMapping(value = "/syncImHistoryMessageTask")
|
|
|
+ // 同步即时通讯聊天记录
|
|
|
+ public void syncImHistoryMessageTask(){
|
|
|
+// File file = new File(fileDir);
|
|
|
+// UploadReturnBean uploadReturnBean = uploadFileService.uploadImHistoryMsgFile(file);
|
|
|
+// historyMessageService.saveImHistoryMessage(file);
|
|
|
+ }
|
|
|
|
|
|
@GetMapping(value = "/autoAffirmReceiveTask")
|
|
|
// 自动确认收货
|