|
|
@ -77,7 +77,7 @@ public class FlwDefinitionController extends BaseController { |
|
|
|
* |
|
|
|
* @param flowDefinition 参数 |
|
|
|
*/ |
|
|
|
@Log(title = "流程定义", businessType = BusinessType.INSERT) |
|
|
|
@Log(title = "新增流程定义", businessType = BusinessType.INSERT) |
|
|
|
@PostMapping |
|
|
|
@RepeatSubmit() |
|
|
|
@Transactional(rollbackFor = Exception.class) |
|
|
@ -90,7 +90,7 @@ public class FlwDefinitionController extends BaseController { |
|
|
|
* |
|
|
|
* @param flowDefinition 参数 |
|
|
|
*/ |
|
|
|
@Log(title = "流程定义", businessType = BusinessType.UPDATE) |
|
|
|
@Log(title = "修改流程定义", businessType = BusinessType.UPDATE) |
|
|
|
@PutMapping |
|
|
|
@RepeatSubmit() |
|
|
|
@Transactional(rollbackFor = Exception.class) |
|
|
@ -103,7 +103,7 @@ public class FlwDefinitionController extends BaseController { |
|
|
|
* |
|
|
|
* @param id 流程定义id |
|
|
|
*/ |
|
|
|
@Log(title = "流程定义", businessType = BusinessType.INSERT) |
|
|
|
@Log(title = "发布流程定义", businessType = BusinessType.INSERT) |
|
|
|
@PutMapping("/publish/{id}") |
|
|
|
@RepeatSubmit() |
|
|
|
public R<Boolean> publish(@PathVariable Long id) { |
|
|
@ -115,7 +115,7 @@ public class FlwDefinitionController extends BaseController { |
|
|
|
* |
|
|
|
* @param id 流程定义id |
|
|
|
*/ |
|
|
|
@Log(title = "流程定义", businessType = BusinessType.INSERT) |
|
|
|
@Log(title = "取消发布流程定义", businessType = BusinessType.INSERT) |
|
|
|
@PutMapping("/unPublish/{id}") |
|
|
|
@RepeatSubmit() |
|
|
|
@Transactional(rollbackFor = Exception.class) |
|
|
@ -126,7 +126,7 @@ public class FlwDefinitionController extends BaseController { |
|
|
|
/** |
|
|
|
* 删除流程定义 |
|
|
|
*/ |
|
|
|
@Log(title = "流程定义", businessType = BusinessType.DELETE) |
|
|
|
@Log(title = "删除流程定义", businessType = BusinessType.DELETE) |
|
|
|
@DeleteMapping("/{ids}") |
|
|
|
public R<Void> remove(@PathVariable List<Long> ids) { |
|
|
|
return toAjax(flwDefinitionService.removeDef(ids)); |
|
|
@ -137,7 +137,7 @@ public class FlwDefinitionController extends BaseController { |
|
|
|
* |
|
|
|
* @param id 流程定义id |
|
|
|
*/ |
|
|
|
@Log(title = "流程定义", businessType = BusinessType.INSERT) |
|
|
|
@Log(title = "复制流程定义", businessType = BusinessType.INSERT) |
|
|
|
@PostMapping("/copy/{id}") |
|
|
|
@RepeatSubmit() |
|
|
|
@Transactional(rollbackFor = Exception.class) |
|
|
@ -151,7 +151,7 @@ public class FlwDefinitionController extends BaseController { |
|
|
|
* @param file 文件 |
|
|
|
* @param category 分类 |
|
|
|
*/ |
|
|
|
@Log(title = "流程定义", businessType = BusinessType.IMPORT) |
|
|
|
@Log(title = "导入流程定义", businessType = BusinessType.IMPORT) |
|
|
|
@PostMapping("/importDef") |
|
|
|
public R<Boolean> importDef(MultipartFile file, String category) { |
|
|
|
return R.ok(flwDefinitionService.importJson(file, category)); |
|
|
@ -164,7 +164,7 @@ public class FlwDefinitionController extends BaseController { |
|
|
|
* @param response 响应 |
|
|
|
* @throws IOException 异常 |
|
|
|
*/ |
|
|
|
@Log(title = "流程定义", businessType = BusinessType.EXPORT) |
|
|
|
@Log(title = "导出流程定义", businessType = BusinessType.EXPORT) |
|
|
|
@PostMapping("/exportDef/{id}") |
|
|
|
public void exportDef(@PathVariable Long id, HttpServletResponse response) throws IOException { |
|
|
|
flwDefinitionService.exportDef(id, response); |
|
|
|