wms 收货详情-条码打印
This commit is contained in:
@@ -35,6 +35,13 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||
<result property="updateBy" column="update_by" />
|
||||
<result property="updateByName" column="update_by_name" />
|
||||
<result property="delFlag" column="del_flag" />
|
||||
<result property="copyCode" column="copy_code"/>
|
||||
<result property="batchNumber" column="batch_number"/>
|
||||
<result property="materialCode" column="material_code"/>
|
||||
<result property="netWeight" column="netWeight"/>
|
||||
<result property="grossWeight" column="grossWeight"/>
|
||||
<result property="boxPalletNo" column="boxPalletNo"/>
|
||||
<result property="serialNumber" column="serial_number"/>
|
||||
</resultMap>
|
||||
|
||||
|
||||
@@ -148,4 +155,26 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||
</where>
|
||||
ORDER BY a.create_time DESC
|
||||
</select>
|
||||
|
||||
|
||||
<select id="queryPrintInfo" resultMap="StockReceiptOrderResult">
|
||||
SELECT
|
||||
a.batch_number,
|
||||
ifnull(a.material_code, c.material_code) AS material_code,
|
||||
c.copy_code,
|
||||
ifnull(a.total_net_weight, b.total_net_weight) AS netWeight,
|
||||
ifnull(a.total_gross_weight, b.total_gross_weight) AS grossWeight,
|
||||
ifnull(a.box_pallet_no, b.box_pallet_no) AS boxPalletNo,
|
||||
ims.serial_number
|
||||
FROM receipt_material_detail a
|
||||
LEFT JOIN stock_receipt_order sro ON a.receipt_order_number = sro.receipt_order_number AND sro.del_flag = 1
|
||||
LEFT JOIN in_material_detail b ON a.in_unique_id = b.unique_id AND b.del_flag = 1
|
||||
LEFT JOIN material_base_info c ON a.material_base_info_id = c.material_base_info_id AND c.del_flag = 1
|
||||
LEFT JOIN in_material_detail_serial_number ims ON a.material_detail_id = ims.material_detail_unique_id AND ims.del_flag = 1
|
||||
WHERE sro.receipt_order_number = #{receiptOrderNumber}
|
||||
AND a.del_flag = 1
|
||||
|
||||
</select>
|
||||
|
||||
|
||||
</mapper>
|
||||
Reference in New Issue
Block a user