refactor(出库任务): try

This commit is contained in:
Kelvin 2025-01-04 10:11:42 +08:00
parent 96792d32c0
commit b33f19488d

View File

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