|
|
|
@ -145,13 +145,14 @@ public class ProductionPickingController { |
|
|
|
String buNo = (String) params.get("buNo"); |
|
|
|
String outboundNo = (String) params.get("outboundNo"); |
|
|
|
String warehouseId = (String) params.get("warehouseId"); |
|
|
|
String relatedNo = (String) params.get("relatedNo"); |
|
|
|
|
|
|
|
if (outboundNo == null || outboundNo.trim().isEmpty()) { |
|
|
|
return R.error("出库单号不能为空"); |
|
|
|
} |
|
|
|
|
|
|
|
logger.info("获取出库单物料清单,站点: {}, 业务单元: {}, 出库单号: {}", site, buNo, outboundNo); |
|
|
|
List<Map<String, Object>> materialList = productionPickingService.getMaterialList(site, buNo, outboundNo, warehouseId); |
|
|
|
List<Map<String, Object>> materialList = productionPickingService.getMaterialList(site, buNo, outboundNo, warehouseId, relatedNo); |
|
|
|
return R.ok().put("data", materialList); |
|
|
|
} catch (Exception e) { |
|
|
|
logger.error("获取物料清单失败", e); |
|
|
|
|