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