|
|
@@ -40,9 +40,9 @@ public class OrganizationProcdefController { |
|
|
|
} |
|
|
|
|
|
|
|
@ApiOperation(value = "单位流程配置详情", notes = "单位流程配置详情") |
|
|
|
@GetMapping("/detail/{procdefId}") |
|
|
|
public OrgProcdefVo detail(@PathVariable String procdefId) { |
|
|
|
WflowOrgModelHistorys lastVersionModel = orgProcessModelService.getLastVersionModel(procdefId); |
|
|
|
@GetMapping("/detail/{processDefId}") |
|
|
|
public OrgProcdefVo detail(@PathVariable String processDefId) { |
|
|
|
WflowOrgModelHistorys lastVersionModel = orgProcessModelService.getLastVersionModel(processDefId); |
|
|
|
OrgProcdefVo vo = new OrgProcdefVo(); |
|
|
|
BeanUtils.copyProperties(lastVersionModel, vo); |
|
|
|
return vo; |
|
|
@@ -55,16 +55,16 @@ public class OrganizationProcdefController { |
|
|
|
} |
|
|
|
|
|
|
|
@ApiOperation(value = "单位流程配置启用", notes = "单位流程配置启用") |
|
|
|
@PutMapping("/enable/{procdefId}") |
|
|
|
public String enableProcess(@PathVariable String procdefId) { |
|
|
|
orgProcessModelService.enableProcess(procdefId,Boolean.FALSE); |
|
|
|
@PutMapping("/enable/{processDefId}") |
|
|
|
public String enableProcess(@PathVariable String processDefId) { |
|
|
|
orgProcessModelService.enableProcess(processDefId,Boolean.FALSE); |
|
|
|
return "启用成功"; |
|
|
|
} |
|
|
|
|
|
|
|
@ApiOperation(value = "单位流程配置禁用", notes = "单位流程配置禁用") |
|
|
|
@PutMapping("/disable/{procdefId}") |
|
|
|
public String disableProcess(@PathVariable String procdefId) { |
|
|
|
orgProcessModelService.enableProcess(procdefId,Boolean.TRUE); |
|
|
|
@PutMapping("/disable/{processDefId}") |
|
|
|
public String disableProcess(@PathVariable String processDefId) { |
|
|
|
orgProcessModelService.enableProcess(processDefId,Boolean.TRUE); |
|
|
|
return "禁用成功"; |
|
|
|
} |
|
|
|
|
|
|
@@ -75,8 +75,8 @@ public class OrganizationProcdefController { |
|
|
|
} |
|
|
|
|
|
|
|
@ApiOperation(value = "单位流程配置删除", notes = "单位流程配置删除") |
|
|
|
@PostMapping("/delete/{procdefId}") |
|
|
|
public Boolean delete(@PathVariable String procdefId) { |
|
|
|
return orgProcessModelService.delProcess(procdefId); |
|
|
|
@PostMapping("/delete/{processDefId}") |
|
|
|
public Boolean delete(@PathVariable String processDefId) { |
|
|
|
return orgProcessModelService.delProcess(processDefId); |
|
|
|
} |
|
|
|
} |