fix(pda): return business error when outbound order is missing
This commit is contained in:
@@ -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()));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user