|
@@ -1,6 +1,7 @@
|
|
package com.galaxis.manatee.controller;
|
|
package com.galaxis.manatee.controller;
|
|
|
|
|
|
import com.galaxis.manatee.service.ChuanyunService;
|
|
import com.galaxis.manatee.service.ChuanyunService;
|
|
|
|
+import com.galaxis.manatee.task.ChuanyunBasicDataScheduledTask;
|
|
import com.galaxis.manatee.task.ChuanyunHumanResourceScheduledTask;
|
|
import com.galaxis.manatee.task.ChuanyunHumanResourceScheduledTask;
|
|
import org.springframework.scheduling.annotation.Async;
|
|
import org.springframework.scheduling.annotation.Async;
|
|
import org.springframework.web.bind.annotation.GetMapping;
|
|
import org.springframework.web.bind.annotation.GetMapping;
|
|
@@ -16,10 +17,12 @@ import org.springframework.web.bind.annotation.RestController;
|
|
public class GetController {
|
|
public class GetController {
|
|
|
|
|
|
private final ChuanyunHumanResourceScheduledTask chuanyunHumanResourceScheduledTask;
|
|
private final ChuanyunHumanResourceScheduledTask chuanyunHumanResourceScheduledTask;
|
|
|
|
+ private final ChuanyunBasicDataScheduledTask chuanyunBasicDataScheduledTask;
|
|
private final ChuanyunService chuanyunService;
|
|
private final ChuanyunService chuanyunService;
|
|
|
|
|
|
- public GetController(ChuanyunHumanResourceScheduledTask chuanyunHumanResourceScheduledTask, ChuanyunService chuanyunService) {
|
|
|
|
|
|
+ public GetController(ChuanyunHumanResourceScheduledTask chuanyunHumanResourceScheduledTask, ChuanyunBasicDataScheduledTask chuanyunBasicDataScheduledTask, ChuanyunService chuanyunService) {
|
|
this.chuanyunHumanResourceScheduledTask = chuanyunHumanResourceScheduledTask;
|
|
this.chuanyunHumanResourceScheduledTask = chuanyunHumanResourceScheduledTask;
|
|
|
|
+ this.chuanyunBasicDataScheduledTask = chuanyunBasicDataScheduledTask;
|
|
this.chuanyunService = chuanyunService;
|
|
this.chuanyunService = chuanyunService;
|
|
}
|
|
}
|
|
|
|
|
|
@@ -49,4 +52,42 @@ public class GetController {
|
|
public void getProjectMember() {
|
|
public void getProjectMember() {
|
|
chuanyunService.updateProjectMember();
|
|
chuanyunService.updateProjectMember();
|
|
}
|
|
}
|
|
|
|
+
|
|
|
|
+ /**
|
|
|
|
+ * 手动更新人员-归属公司
|
|
|
|
+ */
|
|
|
|
+ @Async
|
|
|
|
+ @GetMapping("/test/getUserCompany")
|
|
|
|
+ public void getUserCompanyManually() {
|
|
|
|
+ chuanyunBasicDataScheduledTask.getUserCompanyManually();
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ /**
|
|
|
|
+ * 手动更新人员信息
|
|
|
|
+ */
|
|
|
|
+ @Async
|
|
|
|
+ @GetMapping("/test/getUserList")
|
|
|
|
+ public void getUserListManually() {
|
|
|
|
+ chuanyunBasicDataScheduledTask.getUserListManually();
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ /**
|
|
|
|
+ * 手动更新公司信息
|
|
|
|
+ */
|
|
|
|
+ @Async
|
|
|
|
+ @GetMapping("/test/getCompany")
|
|
|
|
+ public void getCompanyManually() {
|
|
|
|
+ chuanyunBasicDataScheduledTask.getCompanyManually();
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ /**
|
|
|
|
+ * 手动更新集团项目信息
|
|
|
|
+ */
|
|
|
|
+ @Async
|
|
|
|
+ @GetMapping("/test/getGroupProject")
|
|
|
|
+ public void getGroupProjectManually() {
|
|
|
|
+ chuanyunBasicDataScheduledTask.getGroupProjectManually();
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+
|
|
}
|
|
}
|