From 2f7a225c44a33c116fda47f61a4d27ed64a35356 Mon Sep 17 00:00:00 2001 From: guoyuji <guoyujie@ng.com> Date: 星期四, 16 五月 2024 14:09:54 +0800 Subject: [PATCH] 修改抛出异常的问题 --- north-glass-erp/src/main/java/com/example/erp/controller/pp/ReportingWorkController.java | 12 +++++++----- 1 files changed, 7 insertions(+), 5 deletions(-) diff --git a/north-glass-erp/src/main/java/com/example/erp/controller/pp/ReportingWorkController.java b/north-glass-erp/src/main/java/com/example/erp/controller/pp/ReportingWorkController.java index f96ec19..17c0a89 100644 --- a/north-glass-erp/src/main/java/com/example/erp/controller/pp/ReportingWorkController.java +++ b/north-glass-erp/src/main/java/com/example/erp/controller/pp/ReportingWorkController.java @@ -83,12 +83,14 @@ @SaCheckPermission("SelectReportingWorks.delete") @PostMapping("/deleteWork/{reportingWorkId}/{processId}/{thisProcess}") public Result deleteWork(@PathVariable String reportingWorkId,@PathVariable String processId,@PathVariable String thisProcess){ - if(reportingWorkService.deleteWorkSv(reportingWorkId,processId,thisProcess)){ - return Result.seccess(); - }else { - throw new ServiceException(Constants.Code_500,"鍒犻櫎澶辫触,璇锋鏌ユ槸鍚︾鍚堝垹闄ゆ潯浠�"); +// if(reportingWorkService.deleteWorkSv(reportingWorkId,processId,thisProcess)){ +// return Result.seccess(); +// }else { +// throw new ServiceException(Constants.Code_500,"鍒犻櫎澶辫触,璇锋鏌ユ槸鍚︾鍚堝垹闄ゆ潯浠�"); +// +// } + return Result.seccess(reportingWorkService.deleteWorkSv(reportingWorkId,processId,thisProcess)); - } } @ApiOperation("璐ㄦ瀹℃牳鏌ヨ鎺ュ彛") -- Gitblit v1.8.0