CMM 1年前
父节点
当前提交
a2fcc42e25
共有 3 个文件被更改,包括 22 次插入7 次删除
  1. +14
    -0
      pmapi/src/main/java/com/ningdatech/pmapi/organization/controller/OrganizationProcdefController.java
  2. +0
    -7
      pmapi/src/main/java/com/ningdatech/pmapi/scheduler/task/InitProcessTask.java
  3. +8
    -0
      pmapi/src/main/java/com/ningdatech/pmapi/sys/controller/SysProcdefController.java

+ 14
- 0
pmapi/src/main/java/com/ningdatech/pmapi/organization/controller/OrganizationProcdefController.java 查看文件

@@ -54,6 +54,20 @@ public class OrganizationProcdefController {
return orgProcessModelService.saveProcess(wflowOrgProcdefDto);
}

@ApiOperation(value = "单位流程配置启用", notes = "单位流程配置启用")
@PutMapping("/enable/{procdefId}")
public String enableProcess(@PathVariable String procdefId) {
orgProcessModelService.enableProcess(procdefId,Boolean.FALSE);
return "启用成功";
}

@ApiOperation(value = "单位流程配置禁用", notes = "单位流程配置禁用")
@PutMapping("/disable/{procdefId}")
public String disableProcess(@PathVariable String procdefId) {
orgProcessModelService.enableProcess(procdefId,Boolean.TRUE);
return "禁用成功";
}

@ApiOperation(value = "单位流程配置部署", notes = "单位流程配置部署")
@PostMapping("/deploy/{processDefId}")
public String deploy(@Validated @PathVariable String processDefId) {


+ 0
- 7
pmapi/src/main/java/com/ningdatech/pmapi/scheduler/task/InitProcessTask.java 查看文件

@@ -38,15 +38,8 @@ public class InitProcessTask {

private final IRegionService regionService;

private final WflowFormsService formsService;

private final ProcessModelService processModelService;

private final WflowModelHistorysMapper modelHistoriesMapper;

private final WflowModelsMapper modelsMapper;

// 定时更新车辆状态
@Scheduled(cron = "0 22 17 30 1 ?")
public void doTask() throws UnknownHostException {
if (TaskContant.Host.HOST_ZPF.equals(InetAddress.getLocalHost().getHostName())) {


+ 8
- 0
pmapi/src/main/java/com/ningdatech/pmapi/sys/controller/SysProcdefController.java 查看文件

@@ -4,6 +4,7 @@ import com.ningdatech.basic.model.PageVo;
import com.wflow.bean.entity.WflowModelHistorys;
import com.wflow.bean.vo.WflowModelVo;
import com.wflow.service.ModelGroupService;
import com.wflow.utils.R;
import com.wflow.workflow.service.ProcessModelService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
@@ -49,6 +50,13 @@ public class SysProcdefController {
return processModelService.saveProcess(modelHistory);
}

@PutMapping("/{formId}/active/{state}")
public Object enOrDisModel(@PathVariable String formId,
@PathVariable Boolean state) {
modelGroupService.enOrDisModel(formId, !state);
return R.ok(Boolean.TRUE.equals(state) ? "启用流程成功":"停用流程成功");
}

@ApiOperation(value = "系统流程配置发布", notes = "系统流程配置发布")
@PostMapping("/deploy/{formId}")
public String save(@Validated @PathVariable String formId) {


正在加载...
取消
保存