|
@@ -8,10 +8,7 @@ import com.galaxis.manatee.service.ChuanyunService;
|
|
|
import com.galaxis.manatee.task.ChuanyunBasicDataScheduledTask;
|
|
|
import com.galaxis.manatee.task.ChuanyunHumanResourceScheduledTask;
|
|
|
import com.galaxis.manatee.util.ExcelUtils;
|
|
|
-import lombok.Data;
|
|
|
import lombok.extern.slf4j.Slf4j;
|
|
|
-import net.sf.json.JSON;
|
|
|
-import net.sf.json.JSONObject;
|
|
|
import org.springframework.http.ResponseEntity;
|
|
|
import org.springframework.scheduling.annotation.Async;
|
|
|
import org.springframework.web.bind.annotation.*;
|
|
@@ -42,7 +39,7 @@ public class GetController {
|
|
|
/**
|
|
|
* 手动更新chuanyunPayRoll
|
|
|
*/
|
|
|
- @Async
|
|
|
+ @Async("taskExecutor")
|
|
|
@GetMapping("/test/getChuanyunPayroll")
|
|
|
public void getChuanyunPayroll(){
|
|
|
chuanyunHumanResourceScheduledTask.getPayrollManually();
|
|
@@ -51,7 +48,7 @@ public class GetController {
|
|
|
/**
|
|
|
* 手动更新日志
|
|
|
*/
|
|
|
- @Async
|
|
|
+ @Async("taskExecutor")
|
|
|
@GetMapping("/test/getUpdateLog")
|
|
|
public void getUpdateLog() {
|
|
|
chuanyunHumanResourceScheduledTask.getUpdateLog();
|
|
@@ -60,7 +57,7 @@ public class GetController {
|
|
|
/**
|
|
|
* 手动更新项目组成员
|
|
|
*/
|
|
|
- @Async
|
|
|
+ @Async("taskExecutor")
|
|
|
@GetMapping("/test/getProjectMember")
|
|
|
public void getProjectMember() {
|
|
|
chuanyunService.updateProjectMember();
|
|
@@ -69,7 +66,7 @@ public class GetController {
|
|
|
/**
|
|
|
* 手动更新人员-归属公司
|
|
|
*/
|
|
|
- @Async
|
|
|
+ @Async("taskExecutor")
|
|
|
@GetMapping("/test/getUserCompany")
|
|
|
public void getUserCompanyManually() {
|
|
|
chuanyunBasicDataScheduledTask.getUserCompanyManually();
|
|
@@ -78,7 +75,7 @@ public class GetController {
|
|
|
/**
|
|
|
* 手动更新人员信息
|
|
|
*/
|
|
|
- @Async
|
|
|
+ @Async("taskExecutor")
|
|
|
@GetMapping("/test/getUserList")
|
|
|
public void getUserListManually() {
|
|
|
chuanyunBasicDataScheduledTask.getUserListManually();
|
|
@@ -87,7 +84,7 @@ public class GetController {
|
|
|
/**
|
|
|
* 手动更新公司信息
|
|
|
*/
|
|
|
- @Async
|
|
|
+ @Async("taskExecutor")
|
|
|
@GetMapping("/test/getCompany")
|
|
|
public void getCompanyManually() {
|
|
|
chuanyunBasicDataScheduledTask.getCompanyManually();
|
|
@@ -96,19 +93,19 @@ public class GetController {
|
|
|
/**
|
|
|
* 手动更新集团项目信息
|
|
|
*/
|
|
|
- @Async
|
|
|
+ @Async("taskExecutor")
|
|
|
@GetMapping("/test/getGroupProject")
|
|
|
public void getGroupProjectManually() {
|
|
|
chuanyunBasicDataScheduledTask.getGroupProjectManually();
|
|
|
}
|
|
|
|
|
|
- @Async
|
|
|
+ @Async("taskExecutor")
|
|
|
@GetMapping("/test/getCostCollectionManually")
|
|
|
public void getCostCollectionManually() {
|
|
|
chuanyunBasicDataScheduledTask.getCostCollectionManually();
|
|
|
}
|
|
|
|
|
|
- @Async
|
|
|
+ @Async("taskExecutor")
|
|
|
@GetMapping("/test/getReimbursementItemsManually")
|
|
|
public void getReimbursementItemsManually() {
|
|
|
chuanyunBasicDataScheduledTask.getReimbursementItemsManually();
|