|
@@ -1,8 +1,10 @@ |
|
|
package com.ningdatech.pmapi.sys.controller; |
|
|
package com.ningdatech.pmapi.sys.controller; |
|
|
|
|
|
|
|
|
import com.ningdatech.basic.model.PageVo; |
|
|
import com.ningdatech.basic.model.PageVo; |
|
|
|
|
|
import com.wflow.bean.entity.WflowModelHistorys; |
|
|
import com.wflow.bean.vo.WflowModelVo; |
|
|
import com.wflow.bean.vo.WflowModelVo; |
|
|
import com.wflow.service.ModelGroupService; |
|
|
import com.wflow.service.ModelGroupService; |
|
|
|
|
|
import com.wflow.workflow.service.ProcessModelService; |
|
|
import io.swagger.annotations.Api; |
|
|
import io.swagger.annotations.Api; |
|
|
import io.swagger.annotations.ApiOperation; |
|
|
import io.swagger.annotations.ApiOperation; |
|
|
import lombok.RequiredArgsConstructor; |
|
|
import lombok.RequiredArgsConstructor; |
|
@@ -26,6 +28,8 @@ public class SysProcdefController { |
|
|
|
|
|
|
|
|
private final ModelGroupService modelGroupService; |
|
|
private final ModelGroupService modelGroupService; |
|
|
|
|
|
|
|
|
|
|
|
private final ProcessModelService processModelService; |
|
|
|
|
|
|
|
|
@ApiOperation(value = "系统流程配置列表", notes = "系统流程配置列表") |
|
|
@ApiOperation(value = "系统流程配置列表", notes = "系统流程配置列表") |
|
|
@GetMapping("/list") |
|
|
@GetMapping("/list") |
|
|
public PageVo<WflowModelVo> list(@RequestParam String regionCode, @RequestParam(defaultValue = "1") Integer pageNum, |
|
|
public PageVo<WflowModelVo> list(@RequestParam String regionCode, @RequestParam(defaultValue = "1") Integer pageNum, |
|
@@ -38,4 +42,16 @@ public class SysProcdefController { |
|
|
public Object list(@PathVariable String formId) { |
|
|
public Object list(@PathVariable String formId) { |
|
|
return modelGroupService.getModelById(formId); |
|
|
return modelGroupService.getModelById(formId); |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
@ApiOperation(value = "系统流程配置保存", notes = "系统流程配置保存") |
|
|
|
|
|
@PostMapping("/save") |
|
|
|
|
|
public String save(@Validated @RequestBody WflowModelHistorys modelHistory) { |
|
|
|
|
|
return processModelService.saveProcess(modelHistory); |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
@ApiOperation(value = "系统流程配置发布", notes = "系统流程配置发布") |
|
|
|
|
|
@PostMapping("/deploy/{formId}") |
|
|
|
|
|
public String save(@Validated @PathVariable String formId) { |
|
|
|
|
|
return processModelService.deployProcess(formId); |
|
|
|
|
|
} |
|
|
} |
|
|
} |