wms-提货单sql

This commit is contained in:
zhaoqing
2026-04-17 14:12:54 +08:00
parent ff32e5d32c
commit e658dfb56d
7 changed files with 12 additions and 10 deletions
@@ -1407,8 +1407,8 @@ public class StockOutOrderApplicationService {
return stockOutOrderDomainService.queryOutStockNoticePrintDetailGF(stockOutOrderDTO);
}
public List<CopyCodeReferencePO> queryCopyCodeWeightListByBatch(String batchNumber, Long materialBaseInfoId, Long warehouseId) {
return stockOutOrderDomainService.queryCopyCodeWeightListByBatch(batchNumber,materialBaseInfoId,warehouseId);
public List<CopyCodeReferencePO> queryCopyCodeWeightListByBatch(String batchNumber, Long materialBaseInfoId, Long warehouseId, String boxPalletNo) {
return stockOutOrderDomainService.queryCopyCodeWeightListByBatch(batchNumber,materialBaseInfoId,warehouseId,boxPalletNo);
}
@@ -48,7 +48,7 @@ public interface IStockOutOrderService extends IService<StockOutOrder>
List<OutMaterialDetailPO> queryOutStockNoticePrintDetail(StockOutOrderDTO stockOutOrderDTO);
List<CopyCodeReferencePO> queryCopyCodeWeightListByBatch(String batchNumber, Long materialBaseInfoId, Long warehouseId);
List<CopyCodeReferencePO> queryCopyCodeWeightListByBatch(String batchNumber, Long materialBaseInfoId, Long warehouseId, String boxPalletNo);
List<OutMaterialDetailPO> queryOutStockNoticePrintDetailGF(StockOutOrderDTO stockOutOrderDTO);
}
@@ -27,7 +27,7 @@ public interface StockOutOrderMapper extends BaseMapper<StockOutOrder>
List<OutMaterialDetailPO> queryOutStockNoticePrintDetail(StockOutOrderDTO stockOutOrderDTO);
List<CopyCodeReferencePO> queryCopyCodeWeightListByBatch(String batchNumber, Long materialBaseInfoId, Long warehouseId);
List<CopyCodeReferencePO> queryCopyCodeWeightListByBatch(String batchNumber, Long materialBaseInfoId, Long warehouseId, String boxPalletNo);
List<OutMaterialDetailPO> queryOutStockNoticePrintDetailGF(StockOutOrderDTO stockOutOrderDTO);
}
@@ -132,8 +132,8 @@ public class StockOutOrderImpl extends ServiceImpl<StockOutOrderMapper, StockOut
@Override
public List<CopyCodeReferencePO> queryCopyCodeWeightListByBatch(String batchNumber, Long materialBaseInfoId, Long warehouseId) {
return stockOutOrderMapper.queryCopyCodeWeightListByBatch(batchNumber,materialBaseInfoId,warehouseId);
public List<CopyCodeReferencePO> queryCopyCodeWeightListByBatch(String batchNumber, Long materialBaseInfoId, Long warehouseId, String boxPalletNo) {
return stockOutOrderMapper.queryCopyCodeWeightListByBatch(batchNumber,materialBaseInfoId,warehouseId,boxPalletNo);
}
@@ -1680,8 +1680,8 @@ public class StockOutOrderDomainService {
return stockOutOrderService.queryOutStockNoticePrintDetail(stockOutOrderDTO);
}
public List<CopyCodeReferencePO> queryCopyCodeWeightListByBatch(String batchNumber, Long materialBaseInfoId, Long warehouseId) {
return stockOutOrderService.queryCopyCodeWeightListByBatch(batchNumber,materialBaseInfoId,warehouseId);
public List<CopyCodeReferencePO> queryCopyCodeWeightListByBatch(String batchNumber, Long materialBaseInfoId, Long warehouseId, String boxPalletNo) {
return stockOutOrderService.queryCopyCodeWeightListByBatch(batchNumber,materialBaseInfoId,warehouseId,boxPalletNo);
}
public List<OutMaterialDetailPO> queryOutStockNoticePrintDetailGF(StockOutOrderDTO stockOutOrderDTO) {
@@ -436,7 +436,7 @@ public class StockOutOrderApi extends BaseController {
for (OutMaterialDetailPO detail : detailList) {
if (detail.getCopyCode() != null && detail.getCopyCode() == 1) {
List<CopyCodeReferencePO> weightList = stockOutOrderApplicationService.queryCopyCodeWeightListByBatch(
detail.getBatchNumber(), detail.getMaterialBaseInfoId(), detail.getWarehouseId());
detail.getBatchNumber(), detail.getMaterialBaseInfoId(), detail.getWarehouseId(), detail.getBoxPalletNo());
detail.setWeightList(weightList);
}
}
@@ -382,7 +382,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<result property="copyCode" column="copy_code"/>
<result property="outboundQuantity" column="outbound_quantity"/>
<result property="packName" column="pack_name"/>
<result property="boxPalletNo" column="box_pallet_no"/>
</resultMap>
@@ -408,6 +408,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
AND ccr.batch_number = #{batchNumber}
AND ccr.material_base_info_id = #{materialBaseInfoId}
AND ccr.warehouse_id = #{warehouseId}
AND ccr.box_pallet_no = #{boxPalletNo}
</select>
@@ -427,6 +428,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
b.piece_count,
b.material_base_info_id,
b.outbound_quantity,
b.box_pallet_no,
mbi.copy_code
FROM out_material_detail b
LEFT JOIN material_base_info mbi ON b.material_base_info_id = mbi.material_base_info_id