|
@@ -1,7 +1,9 @@
|
|
|
package com.platform.rest.controller.workplace;
|
|
|
|
|
|
import com.platform.common.util.R;
|
|
|
+import com.platform.dao.dto.custom.CustomFormDTO;
|
|
|
import com.platform.dao.dto.workflow.WorkflowTaskBomDTO;
|
|
|
+import com.platform.service.custom.CustomFormService;
|
|
|
import com.platform.service.workflow.WorkflowTaskBomService;
|
|
|
import lombok.AllArgsConstructor;
|
|
|
import org.springframework.web.bind.annotation.GetMapping;
|
|
@@ -21,6 +23,8 @@ public class WorkplaceController {
|
|
|
|
|
|
private final WorkflowTaskBomService workflowTaskBomService;
|
|
|
|
|
|
+ private final CustomFormService customFormService;
|
|
|
+
|
|
|
/**
|
|
|
* 获取待发起事项
|
|
|
* @param workflowTaskBomDTO
|
|
@@ -32,4 +36,9 @@ public class WorkplaceController {
|
|
|
public R getById(WorkflowTaskBomDTO workflowTaskBomDTO, @RequestParam(defaultValue = "1") int pageNum, @RequestParam(defaultValue = "10") int pageSize) {
|
|
|
return new R(workflowTaskBomService.selectWorkPlacePageList(workflowTaskBomDTO, pageNum, pageSize));
|
|
|
}
|
|
|
+
|
|
|
+ @GetMapping("/template/list")
|
|
|
+ public R getTemplateList(CustomFormDTO record) {
|
|
|
+ return new R(customFormService.selectIndexList(record));
|
|
|
+ }
|
|
|
}
|