@@ -54,6 +54,20 @@ public class OrganizationProcdefController { | |||||
return orgProcessModelService.saveProcess(wflowOrgProcdefDto); | 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 = "单位流程配置部署") | @ApiOperation(value = "单位流程配置部署", notes = "单位流程配置部署") | ||||
@PostMapping("/deploy/{processDefId}") | @PostMapping("/deploy/{processDefId}") | ||||
public String deploy(@Validated @PathVariable String processDefId) { | public String deploy(@Validated @PathVariable String processDefId) { | ||||
@@ -38,15 +38,8 @@ public class InitProcessTask { | |||||
private final IRegionService regionService; | private final IRegionService regionService; | ||||
private final WflowFormsService formsService; | |||||
private final ProcessModelService processModelService; | private final ProcessModelService processModelService; | ||||
private final WflowModelHistorysMapper modelHistoriesMapper; | |||||
private final WflowModelsMapper modelsMapper; | |||||
// 定时更新车辆状态 | |||||
@Scheduled(cron = "0 22 17 30 1 ?") | @Scheduled(cron = "0 22 17 30 1 ?") | ||||
public void doTask() throws UnknownHostException { | public void doTask() throws UnknownHostException { | ||||
if (TaskContant.Host.HOST_ZPF.equals(InetAddress.getLocalHost().getHostName())) { | if (TaskContant.Host.HOST_ZPF.equals(InetAddress.getLocalHost().getHostName())) { | ||||
@@ -4,6 +4,7 @@ import com.ningdatech.basic.model.PageVo; | |||||
import com.wflow.bean.entity.WflowModelHistorys; | 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.utils.R; | |||||
import com.wflow.workflow.service.ProcessModelService; | 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; | ||||
@@ -49,6 +50,13 @@ public class SysProcdefController { | |||||
return processModelService.saveProcess(modelHistory); | 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 = "系统流程配置发布") | @ApiOperation(value = "系统流程配置发布", notes = "系统流程配置发布") | ||||
@PostMapping("/deploy/{formId}") | @PostMapping("/deploy/{formId}") | ||||
public String save(@Validated @PathVariable String formId) { | public String save(@Validated @PathVariable String formId) { | ||||