|
@@ -40,7 +40,7 @@ public class OaUniversalController {
|
|
|
@PostMapping("/staging")
|
|
|
@Operation(summary = "暂存通用事项审批流程信息")
|
|
|
@ApiOperationSupport(order = 1)
|
|
|
- @PreAuthorize("@ss.hasPermission('bpm:oa-universal:staging')")
|
|
|
+
|
|
|
public CommonResult<Long> startOaUniversal(@RequestBody OaUniversalSaveReqVO stagingReqVO) {
|
|
|
Long oaUniversalId = oaUniversalService.stagingOaUniversal(stagingReqVO);
|
|
|
return success(oaUniversalId, "暂存成功");
|
|
@@ -49,7 +49,7 @@ public class OaUniversalController {
|
|
|
@PostMapping("/commit")
|
|
|
@Operation(summary = "提交通用事项审批流程信息")
|
|
|
@ApiOperationSupport(order = 2)
|
|
|
- @PreAuthorize("@ss.hasPermission('bpm:oa-universal:commit')")
|
|
|
+
|
|
|
public CommonResult<Long> commitOaUniversal(@Valid @RequestBody OaUniversalSaveReqVO commitReqVO) {
|
|
|
Long oaUniversalId = oaUniversalService.commitOaUniversal(commitReqVO);
|
|
|
return success(oaUniversalId, "提交成功");
|
|
@@ -58,7 +58,7 @@ public class OaUniversalController {
|
|
|
@PostMapping("/agree")
|
|
|
@Operation(summary = "审批同意通用事项审批流程信息")
|
|
|
@ApiOperationSupport(order = 3)
|
|
|
- @PreAuthorize("@ss.hasPermission('bpm:oa-universal:agree')")
|
|
|
+
|
|
|
public CommonResult<Long> agreeOaUniversal(@Valid @RequestBody BpmTaskApproveReqVO agreeReqVO) {
|
|
|
Long result = oaUniversalService.agreeOaUniversal(agreeReqVO);
|
|
|
return success(result, "审批成功");
|
|
@@ -67,7 +67,7 @@ public class OaUniversalController {
|
|
|
@PostMapping("/disagree")
|
|
|
@Operation(summary = "驳回通用事项审批流程信息")
|
|
|
@ApiOperationSupport(order = 4)
|
|
|
- @PreAuthorize("@ss.hasPermission('bpm:oa-universal:disagree')")
|
|
|
+
|
|
|
public CommonResult<Long> disagreeOaUniversal(@Valid @RequestBody BpmTaskReturnReqVO disagreeReqVO) {
|
|
|
Long result = oaUniversalService.disagreeOaUniversal(disagreeReqVO);
|
|
|
return success(result, "驳回成功");
|
|
@@ -76,7 +76,7 @@ public class OaUniversalController {
|
|
|
@PostMapping("/revocation")
|
|
|
@Operation(summary = "撤回通用事项审批流程信息")
|
|
|
@ApiOperationSupport(order = 5)
|
|
|
- @PreAuthorize("@ss.hasPermission('bpm:oa-universal:revocation')")
|
|
|
+
|
|
|
public CommonResult<Long> revocationOaUniversal(@Valid @RequestBody BpmTaskApproveReqVO revocationReqVO) {
|
|
|
Long result = oaUniversalService.revocationOaUniversal(revocationReqVO);
|
|
|
return success(result, "撤回成功");
|
|
@@ -85,16 +85,16 @@ public class OaUniversalController {
|
|
|
@PostMapping("/reCommit")
|
|
|
@Operation(summary = "驳回或撤回后再次提交通用用事项审批流程信息")
|
|
|
@ApiOperationSupport(order = 6)
|
|
|
- @PreAuthorize("@ss.hasPermission('bpm:oa-universal:re-commit')")
|
|
|
+
|
|
|
public CommonResult<Long> reCommitOaUniversal(@Valid @RequestBody OaUniversalSaveReqVO reCommitReqVO) {
|
|
|
Long result = oaUniversalService.reCommitOaUniversal(reCommitReqVO);
|
|
|
- return success(result, "提交成功");
|
|
|
+ return success(result, "再次提交成功");
|
|
|
}
|
|
|
|
|
|
@PostMapping("/close")
|
|
|
@Operation(summary = "驳回或撤回后关闭通用事项审批流程信息")
|
|
|
@ApiOperationSupport(order = 7)
|
|
|
- @PreAuthorize("@ss.hasPermission('bpm:oa-entry:close')")
|
|
|
+
|
|
|
public CommonResult<Long> updateCompleteOaUniversal(@RequestBody OaUniversalSaveReqVO closeReqVO) {
|
|
|
Long result = oaUniversalService.closeOaUniversal(closeReqVO);
|
|
|
|
|
@@ -105,7 +105,7 @@ public class OaUniversalController {
|
|
|
@Operation(summary = "删除通用事项审批流程信息")
|
|
|
@ApiOperationSupport(order = 8)
|
|
|
@Parameter(name = "id", description = "编号", required = true)
|
|
|
- @PreAuthorize("@ss.hasPermission('bpm:oa-universal:delete')")
|
|
|
+
|
|
|
public CommonResult<Boolean> deleteOaUniversal(@RequestParam("id") Long id) {
|
|
|
oaUniversalService.deleteOaUniversal(id);
|
|
|
return success(true, "删除成功");
|
|
@@ -115,7 +115,7 @@ public class OaUniversalController {
|
|
|
@Operation(summary = "根据id获得通用事项审批流程信息")
|
|
|
@Parameter(name = "id", description = "编号", required = true, example = "1")
|
|
|
@ApiOperationSupport(order = 9)
|
|
|
- @PreAuthorize("@ss.hasPermission('bpm:oa-universal:query-id')")
|
|
|
+
|
|
|
public CommonResult<OaUniversalRespVO> getOaUniversal(@RequestParam("id") Long id) {
|
|
|
OaUniversalRespVO respVO = oaUniversalService.getOaUniversal(id);
|
|
|
return success(respVO, "查询对象成功");
|
|
@@ -124,7 +124,7 @@ public class OaUniversalController {
|
|
|
@GetMapping("/page")
|
|
|
@Operation(summary = "获得通用事项审批流程信息分页")
|
|
|
@ApiOperationSupport(order = 10)
|
|
|
- @PreAuthorize("@ss.hasPermission('bpm:oa-universal:query-page')")
|
|
|
+
|
|
|
public CommonResult<PageResult<OaUniversalRespVO>> getOaUniversalPage(@Valid OaUniversalPageReqVO pageReqVO) {
|
|
|
return success(oaUniversalService.getOaUniversalPage(pageReqVO), "查询列表成功");
|
|
|
}
|
|
@@ -132,7 +132,7 @@ public class OaUniversalController {
|
|
|
@GetMapping("/export-excel")
|
|
|
@Operation(summary = "导出通用事项审批流程信息 Excel")
|
|
|
@ApiOperationSupport(order = 11)
|
|
|
- @PreAuthorize("@ss.hasPermission('bpm:oa-universal:export')")
|
|
|
+
|
|
|
@ApiAccessLog(operateType = EXPORT)
|
|
|
public void exportOaUniversalExcel(@Valid OaUniversalPageReqVO pageReqVO,
|
|
|
HttpServletResponse response) throws IOException {
|