diff --git a/pmapi/src/main/java/com/ningdatech/pmapi/ding/controller/DingInfoPullController.java b/pmapi/src/main/java/com/ningdatech/pmapi/ding/controller/DingInfoPullController.java index 79af862..a34549d 100644 --- a/pmapi/src/main/java/com/ningdatech/pmapi/ding/controller/DingInfoPullController.java +++ b/pmapi/src/main/java/com/ningdatech/pmapi/ding/controller/DingInfoPullController.java @@ -3,6 +3,8 @@ package com.ningdatech.pmapi.ding.controller; import com.ningdatech.pmapi.ding.task.EmployeeBatchGetTask; import com.ningdatech.pmapi.ding.task.GovBusinessStripsTask; import com.ningdatech.pmapi.ding.task.OrganizationBatchGetTask; +import com.ningdatech.pmapi.organization.manage.ProcDefManage; +import io.swagger.annotations.ApiOperation; import lombok.RequiredArgsConstructor; import lombok.extern.slf4j.Slf4j; import org.springframework.web.bind.annotation.*; @@ -25,6 +27,8 @@ public class DingInfoPullController { private final GovBusinessStripsTask businessStripsTask; private final OrganizationBatchGetTask organizationBatchGetTask; + private final ProcDefManage procDefManage; + @GetMapping("/employee") public void employeeBatchGet() { @@ -70,4 +74,10 @@ public class DingInfoPullController { public String getAuthToken() { return employeeBatchGetTask.getAuthToken(); } + + @ApiOperation(value = "系统流程配置初始化", notes = "系统流程配置初始化") + @GetMapping("/init") + public String init() { + return procDefManage.init(); + } } diff --git a/pmapi/src/main/java/com/ningdatech/pmapi/organization/controller/ProcDefController.java b/pmapi/src/main/java/com/ningdatech/pmapi/organization/controller/ProcDefController.java index 4afb39c..747ab2f 100644 --- a/pmapi/src/main/java/com/ningdatech/pmapi/organization/controller/ProcDefController.java +++ b/pmapi/src/main/java/com/ningdatech/pmapi/organization/controller/ProcDefController.java @@ -83,10 +83,4 @@ public class ProcDefController { public Boolean delete(@PathVariable String processDefId) { return orgProcessModelService.delProcess(processDefId); } - - @ApiOperation(value = "系统流程配置初始化", notes = "系统流程配置初始化") - @GetMapping("/init") - public String init() { - return procDefManage.init(); - } }