fix(pda): return business error when outbound order is missing

This commit is contained in:
zgw
2026-09-08 12:01:15 +08:00
parent c387ba0b50
commit 827083e7d6
2 changed files with 115 additions and 0 deletions

View File

@@ -337,6 +337,9 @@ public class PdaController extends BaseController {
public AjaxResult OutFillPkDetail(@RequestBody OutStockout outStockout) {
List<OutStockout> outStockouts = outStockoutService.selectOutStockoutList(outStockout);
if (StringUtils.isEmpty(outStockouts)) {
return AjaxResult.error("未查询到匹配的出库单,请核对出库单号及查询条件后重试。");
}
return AjaxResult.success(outStockoutDetailService.selectOutStockoutDetailByStockoutGuid(outStockouts.get(0).getStockoutGuid()));
}