From b33f19488d0be20341862a8e4ff6f3ba181a1ff6 Mon Sep 17 00:00:00 2001 From: Kelvin Date: Sat, 4 Jan 2025 10:11:42 +0800 Subject: [PATCH] =?UTF-8?q?refactor(=E5=87=BA=E5=BA=93=E4=BB=BB=E5=8A=A1):?= =?UTF-8?q?=20try?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../com/ktg/mes/md/controller/WmsOutTaskController.java | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/ktg-mes/src/main/java/com/ktg/mes/md/controller/WmsOutTaskController.java b/ktg-mes/src/main/java/com/ktg/mes/md/controller/WmsOutTaskController.java index 9ff5ca3..9360fac 100644 --- a/ktg-mes/src/main/java/com/ktg/mes/md/controller/WmsOutTaskController.java +++ b/ktg-mes/src/main/java/com/ktg/mes/md/controller/WmsOutTaskController.java @@ -64,7 +64,11 @@ public class WmsOutTaskController extends BaseController { @PutMapping("/open/run/{wmsOutTaskIds}") public AjaxResult openRun(@PathVariable Long[] wmsOutTaskIds) throws JAXBException { - return toAjax(wmsOutTaskService.runWmsOutTask(wmsOutTaskIds)); + try { + return toAjax(wmsOutTaskService.runWmsOutTask(wmsOutTaskIds)); + } catch (JAXBException e) { + throw new RuntimeException(e); + } } /**