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); + } } /**