wms 出库单提货单打印FG 提货单打印添加字段
This commit is contained in:
@@ -334,6 +334,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||
SELECT
|
||||
a.notice_number,
|
||||
a.out_order_number,
|
||||
a.supply_chain_number,
|
||||
a.shipper_name,
|
||||
a.expect_time,
|
||||
a.document_creator_name,
|
||||
@@ -350,10 +351,11 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||
SELECT
|
||||
b.lot_no,
|
||||
b.warehouse_code,
|
||||
b.warehouse_name,
|
||||
b.material_name,
|
||||
b.storage_location_name,
|
||||
b.piece_count,
|
||||
b.unit_code
|
||||
b.unit_name
|
||||
FROM out_material_detail b
|
||||
WHERE b.del_flag = 1
|
||||
AND b.out_order_number = (SELECT out_order_number FROM stock_out_order WHERE out_order_id = #{outOrderId} AND del_flag = 1)
|
||||
@@ -364,10 +366,72 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||
<resultMap type="com.mhd.wms.domain.outMaterialDetail.repository.po.OutMaterialDetailPO" id="OutMaterialDetailPOResult">
|
||||
<result property="lotNo" column="lot_no"/>
|
||||
<result property="warehouseCode" column="warehouse_code"/>
|
||||
<result property="warehouseName" column="warehouse_name"/>
|
||||
<result property="materialName" column="material_name"/>
|
||||
<result property="storageLocationName" column="storage_location_name"/>
|
||||
<result property="pieceCount" column="piece_count"/>
|
||||
<result property="unitCode" column="unit_code"/>
|
||||
<result property="unitName" column="unit_name"/>
|
||||
<result property="batchNumber" column="batch_number"/>
|
||||
<result property="materialCode" column="material_code"/>
|
||||
<result property="specificationModel" column="specification_model"/>
|
||||
<result property="quantity" column="quantity"/>
|
||||
<result property="warehouseId" column="warehouse_id"/>
|
||||
<result property="materialBaseInfoId" column="material_base_info_id"/>
|
||||
<result property="copyCode" column="copy_code"/>
|
||||
<result property="outboundQuantity" column="outbound_quantity"/>
|
||||
<result property="packName" column="pack_name"/>
|
||||
|
||||
</resultMap>
|
||||
|
||||
|
||||
|
||||
|
||||
<resultMap type="com.mhd.wms.domain.copyCodeReference.repository.po.CopyCodeReferencePO" id="CopyCodeWeightResult">
|
||||
<result property="netWeight" column="net_weight"/>
|
||||
<result property="grossWeight" column="gross_weight"/>
|
||||
<result property="inventoryQuantity" column="inventory_quantity"/>
|
||||
<result property="lotNumber" column="lot_number"/>
|
||||
<result property="boxPalletNo" column="box_pallet_no"/>
|
||||
</resultMap>
|
||||
|
||||
<select id="queryCopyCodeWeightListByBatch" resultMap="CopyCodeWeightResult">
|
||||
SELECT
|
||||
ccr.net_weight,
|
||||
ccr.gross_weight,
|
||||
ccr.inventory_quantity,
|
||||
ccr.lot_number,
|
||||
ccr.box_pallet_no
|
||||
FROM copy_code_reference ccr
|
||||
WHERE ccr.del_flag = 1
|
||||
AND ccr.batch_number = #{batchNumber}
|
||||
AND ccr.material_base_info_id = #{materialBaseInfoId}
|
||||
AND ccr.warehouse_id = #{warehouseId}
|
||||
</select>
|
||||
|
||||
|
||||
<select id="queryOutStockNoticePrintDetailGF" resultMap="OutMaterialDetailPOResult">
|
||||
SELECT
|
||||
b.batch_number,
|
||||
b.material_code,
|
||||
b.material_name,
|
||||
b.specification_model,
|
||||
b.quantity,
|
||||
b.unit_name,
|
||||
b.pack_name,
|
||||
b.warehouse_code,
|
||||
b.warehouse_id,
|
||||
b.storage_location_name,
|
||||
b.lot_no,
|
||||
b.piece_count,
|
||||
b.material_base_info_id,
|
||||
b.outbound_quantity,
|
||||
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
|
||||
WHERE b.del_flag = 1
|
||||
AND b.out_order_number = (SELECT out_order_number FROM stock_out_order WHERE out_order_id = #{outOrderId} AND del_flag = 1)
|
||||
ORDER BY b.material_detail_id
|
||||
</select>
|
||||
|
||||
|
||||
</mapper>
|
||||
Reference in New Issue
Block a user