|
@@ -2,12 +2,11 @@ package com.fs.app.controller;
|
|
|
|
|
|
|
|
|
|
|
|
|
import cn.hutool.core.date.DateUtil;
|
|
import cn.hutool.core.date.DateUtil;
|
|
|
-import com.fs.app.taskService.QwExternalContactRatingService;
|
|
|
|
|
-import com.fs.app.taskService.SopLogsChatTaskService;
|
|
|
|
|
-import com.fs.app.taskService.SopLogsTaskService;
|
|
|
|
|
-import com.fs.app.taskService.SopWxLogsService;
|
|
|
|
|
|
|
+import com.fs.app.taskService.*;
|
|
|
import com.fs.common.core.domain.R;
|
|
import com.fs.common.core.domain.R;
|
|
|
import com.fs.common.core.domain.ResponseResult;
|
|
import com.fs.common.core.domain.ResponseResult;
|
|
|
|
|
+import com.fs.common.core.redis.RedisCache;
|
|
|
|
|
+import com.fs.common.utils.StringUtils;
|
|
|
import com.fs.company.service.ICompanyService;
|
|
import com.fs.company.service.ICompanyService;
|
|
|
import com.fs.company.vo.RedPacketMoneyVO;
|
|
import com.fs.company.vo.RedPacketMoneyVO;
|
|
|
import com.fs.course.mapper.FsCourseRedPacketLogMapper;
|
|
import com.fs.course.mapper.FsCourseRedPacketLogMapper;
|
|
@@ -18,10 +17,12 @@ import com.fs.his.domain.FsUser;
|
|
|
import com.fs.his.service.IFsInquiryOrderService;
|
|
import com.fs.his.service.IFsInquiryOrderService;
|
|
|
import com.fs.his.utils.qrcode.QRCodeUtils;
|
|
import com.fs.his.utils.qrcode.QRCodeUtils;
|
|
|
import com.fs.qw.domain.QwCompany;
|
|
import com.fs.qw.domain.QwCompany;
|
|
|
|
|
+import com.fs.qw.domain.QwExternalContact;
|
|
|
import com.fs.qw.mapper.QwExternalContactMapper;
|
|
import com.fs.qw.mapper.QwExternalContactMapper;
|
|
|
import com.fs.qw.service.IQwCompanyService;
|
|
import com.fs.qw.service.IQwCompanyService;
|
|
|
import com.fs.qw.service.IQwExternalContactService;
|
|
import com.fs.qw.service.IQwExternalContactService;
|
|
|
import com.fs.qw.service.IQwMaterialService;
|
|
import com.fs.qw.service.IQwMaterialService;
|
|
|
|
|
+import com.fs.qwApi.domain.QwExternalContactResult;
|
|
|
import com.fs.qwApi.service.QwApiService;
|
|
import com.fs.qwApi.service.QwApiService;
|
|
|
import com.fs.sop.mapper.QwSopLogsMapper;
|
|
import com.fs.sop.mapper.QwSopLogsMapper;
|
|
|
import com.fs.sop.mapper.QwSopMapper;
|
|
import com.fs.sop.mapper.QwSopMapper;
|
|
@@ -40,6 +41,7 @@ import org.springframework.web.bind.annotation.RestController;
|
|
|
import java.time.LocalDate;
|
|
import java.time.LocalDate;
|
|
|
import java.time.LocalDateTime;
|
|
import java.time.LocalDateTime;
|
|
|
import java.time.format.DateTimeFormatter;
|
|
import java.time.format.DateTimeFormatter;
|
|
|
|
|
+import java.util.ArrayList;
|
|
|
import java.util.Arrays;
|
|
import java.util.Arrays;
|
|
|
import java.util.List;
|
|
import java.util.List;
|
|
|
|
|
|
|
@@ -114,10 +116,13 @@ public class CommonController {
|
|
|
@Autowired
|
|
@Autowired
|
|
|
private IQwMaterialService iQwMaterialService;
|
|
private IQwMaterialService iQwMaterialService;
|
|
|
|
|
|
|
|
-
|
|
|
|
|
@Autowired
|
|
@Autowired
|
|
|
private IFsCourseLinkService iFsCourseLinkService;
|
|
private IFsCourseLinkService iFsCourseLinkService;
|
|
|
|
|
|
|
|
|
|
+ @Autowired
|
|
|
|
|
+ private SyncQwExternalContactService syncQwExternalContactService;
|
|
|
|
|
+
|
|
|
|
|
+
|
|
|
/**
|
|
/**
|
|
|
* 发官方通连
|
|
* 发官方通连
|
|
|
*/
|
|
*/
|
|
@@ -318,6 +323,12 @@ public class CommonController {
|
|
|
return R.ok();
|
|
return R.ok();
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
|
|
+ @GetMapping("/syncQwExternalContactUnionid")
|
|
|
|
|
+ public R syncQwExternalContactUnionid(){
|
|
|
|
|
+ return syncQwExternalContactService.syncQwExternalContactUnionid();
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
|
|
+
|
|
|
@GetMapping("/queryRedPacketResult")
|
|
@GetMapping("/queryRedPacketResult")
|
|
|
public R queryRedPacketResult(String startTime , String endTime) {
|
|
public R queryRedPacketResult(String startTime , String endTime) {
|
|
|
fsCourseRedPacketLogService.queryRedPacketResult(startTime, endTime);
|
|
fsCourseRedPacketLogService.queryRedPacketResult(startTime, endTime);
|