|
@@ -4,10 +4,13 @@ package com.fs.app.controller;
|
|
|
import com.fs.app.service.WxTaskService;
|
|
import com.fs.app.service.WxTaskService;
|
|
|
import com.fs.common.core.domain.R;
|
|
import com.fs.common.core.domain.R;
|
|
|
import com.fs.company.service.ICompanyWxAccountService;
|
|
import com.fs.company.service.ICompanyWxAccountService;
|
|
|
|
|
+import com.fs.company.service.impl.CompanyWxServiceImpl;
|
|
|
import io.swagger.annotations.Api;
|
|
import io.swagger.annotations.Api;
|
|
|
import lombok.AllArgsConstructor;
|
|
import lombok.AllArgsConstructor;
|
|
|
import lombok.extern.slf4j.Slf4j;
|
|
import lombok.extern.slf4j.Slf4j;
|
|
|
|
|
+import org.springframework.beans.factory.annotation.Autowired;
|
|
|
import org.springframework.web.bind.annotation.GetMapping;
|
|
import org.springframework.web.bind.annotation.GetMapping;
|
|
|
|
|
+import org.springframework.web.bind.annotation.PathVariable;
|
|
|
import org.springframework.web.bind.annotation.RequestMapping;
|
|
import org.springframework.web.bind.annotation.RequestMapping;
|
|
|
import org.springframework.web.bind.annotation.RestController;
|
|
import org.springframework.web.bind.annotation.RestController;
|
|
|
|
|
|
|
@@ -18,19 +21,19 @@ import java.util.Collections;
|
|
|
@Api("公共接口")
|
|
@Api("公共接口")
|
|
|
@RestController
|
|
@RestController
|
|
|
@AllArgsConstructor
|
|
@AllArgsConstructor
|
|
|
-@RequestMapping(value="/app/common")
|
|
|
|
|
|
|
+@RequestMapping(value = "/app/common")
|
|
|
public class CommonController {
|
|
public class CommonController {
|
|
|
|
|
|
|
|
private final WxTaskService taskService;
|
|
private final WxTaskService taskService;
|
|
|
private final ICompanyWxAccountService companyWxAccountService;
|
|
private final ICompanyWxAccountService companyWxAccountService;
|
|
|
|
|
|
|
|
@GetMapping("initAccountNum")
|
|
@GetMapping("initAccountNum")
|
|
|
- public void initAccountNum(){
|
|
|
|
|
|
|
+ public void initAccountNum() {
|
|
|
taskService.initAccountNum();
|
|
taskService.initAccountNum();
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
@GetMapping("initAccountMsg")
|
|
@GetMapping("initAccountMsg")
|
|
|
- public void initAccountMsg(){
|
|
|
|
|
|
|
+ public void initAccountMsg() {
|
|
|
taskService.initAccountMsg();
|
|
taskService.initAccountMsg();
|
|
|
}
|
|
}
|
|
|
|
|
|
|
@@ -38,16 +41,19 @@ public class CommonController {
|
|
|
public void addWx(Long accountId) {
|
|
public void addWx(Long accountId) {
|
|
|
taskService.addWx(Collections.singletonList(accountId));
|
|
taskService.addWx(Collections.singletonList(accountId));
|
|
|
}
|
|
}
|
|
|
|
|
+
|
|
|
@GetMapping("isCheckContact")
|
|
@GetMapping("isCheckContact")
|
|
|
- public void isCheckContact(String formUser, Long accountId){
|
|
|
|
|
|
|
+ public void isCheckContact(String formUser, Long accountId) {
|
|
|
companyWxAccountService.isCheckContact(formUser, accountId);
|
|
companyWxAccountService.isCheckContact(formUser, accountId);
|
|
|
}
|
|
}
|
|
|
|
|
+
|
|
|
@GetMapping("cellRun")
|
|
@GetMapping("cellRun")
|
|
|
- public void cellRun(){
|
|
|
|
|
|
|
+ public void cellRun() {
|
|
|
taskService.cellRun();
|
|
taskService.cellRun();
|
|
|
}
|
|
}
|
|
|
|
|
+
|
|
|
@GetMapping("callNextTask")
|
|
@GetMapping("callNextTask")
|
|
|
- public void callNextTask(){
|
|
|
|
|
|
|
+ public void callNextTask() {
|
|
|
taskService.callNextTask();
|
|
taskService.callNextTask();
|
|
|
}
|
|
}
|
|
|
|
|
|
|
@@ -62,6 +68,13 @@ public class CommonController {
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
+ @Autowired
|
|
|
|
|
+ CompanyWxServiceImpl ccompanyWxService;
|
|
|
|
|
+
|
|
|
|
|
+ @GetMapping("mockAddWxSuccess/{clientId}")
|
|
|
|
|
+ public void mockAddWxSuccess(@PathVariable("clientId") Long clientId) {
|
|
|
|
|
+ ccompanyWxService.mockInterface(clientId);
|
|
|
|
|
+ }
|
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
}
|