Quellcode durchsuchen

微信请假更新接口

cs vor 2 Jahren
Ursprung
Commit
68157af3c8

+ 0 - 8
fhKeeper/formulahousekeeper/management-platform/src/main/java/com/management/platform/controller/DingDingController.java

@@ -12,7 +12,6 @@ import com.management.platform.mapper.TimeTypeMapper;
 import com.management.platform.mapper.UserMapper;
 import com.management.platform.service.CompanyDingdingService;
 import com.management.platform.service.DingDingService;
-import com.management.platform.task.TimingTask;
 import com.management.platform.util.*;
 import com.taobao.api.ApiException;
 import org.slf4j.Logger;
@@ -58,9 +57,6 @@ public class DingDingController {
     private CompanyDingdingMapper companyDingdingMapper;
     @Resource
     private TimeTypeMapper timeTypeMapper;
-    @Resource
-    private TimingTask timingTask;
-
 
     @RequestMapping("/callback")
     public Map<String, String> dingCallback(
@@ -461,8 +457,4 @@ public class DingDingController {
         return dingDingService.initSuperManager(corpid, name);
     }
 
-    @RequestMapping("/wxLeaveTest")
-    public void wxLeaveTest() throws Exception {
-        timingTask.synWxLeave();
-    }
 }

+ 10 - 0
fhKeeper/formulahousekeeper/management-platform/src/main/java/com/management/platform/controller/WxCorpInfoController.java

@@ -8,6 +8,7 @@ import com.management.platform.entity.User;
 import com.management.platform.entity.WxCorpInfo;
 import com.management.platform.mapper.UserMapper;
 import com.management.platform.service.WxCorpInfoService;
+import com.management.platform.task.TimingTask;
 import com.management.platform.util.HttpRespMsg;
 import org.springframework.util.StringUtils;
 import org.springframework.web.bind.annotation.RequestMapping;
@@ -32,6 +33,9 @@ public class WxCorpInfoController {
     WxCorpInfoService wxCorpInfoService;
     @Resource
     UserMapper userMapper;
+    @Resource
+    private TimingTask timingTask;
+
     @RequestMapping("/testDownload")
     public HttpRespMsg testDownload() {
         HttpRespMsg msg = new HttpRespMsg();
@@ -73,5 +77,11 @@ public class WxCorpInfoController {
         wxCorpInfoService.sendWXCorpTemplateMsg(corpInfo, corpUid, json);
         return new HttpRespMsg();
     }
+
+    @RequestMapping("/wxLeaveTest")
+    public void wxLeaveTest() throws Exception {
+        timingTask.synWxLeave();
+    }
+
 }