Merge branch 'refs/heads/dev' into dev_820
This commit is contained in:
@@ -451,4 +451,20 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||
</foreach>
|
||||
GROUP BY a.out_order_number
|
||||
</select>
|
||||
|
||||
<!-- 出库列表页:按出库单号批量取去重后的 Invoice No -->
|
||||
<select id="selectDistinctInvoiceNoForStockOutList" resultType="com.mhd.wms.domain.outMaterialDetail.repository.po.OutStockListMaterialAgg">
|
||||
SELECT DISTINCT
|
||||
a.out_order_number AS outOrderNumber,
|
||||
a.INVOICE_NO AS invoiceNo
|
||||
FROM out_material_detail a
|
||||
WHERE a.del_flag = 1
|
||||
AND a.level = 1
|
||||
AND a.INVOICE_NO IS NOT NULL
|
||||
AND a.INVOICE_NO != ''
|
||||
AND a.out_order_number IN
|
||||
<foreach collection="outOrderNumbers" item="num" open="(" separator="," close=")">
|
||||
#{num}
|
||||
</foreach>
|
||||
</select>
|
||||
</mapper>
|
||||
@@ -356,4 +356,20 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||
<include refid="joinStockInOrderPoWhere"/>
|
||||
</where>
|
||||
</select>
|
||||
|
||||
<!-- 入库列表页:按入库单号批量取去重后的 Invoice No -->
|
||||
<select id="selectDistinctInvoiceNoForStockInList" resultType="com.mhd.wms.domain.inMaterialDetail.repository.po.InStockListMaterialAgg">
|
||||
SELECT DISTINCT
|
||||
a.in_order_number AS inOrderNumber,
|
||||
a.INVOICE_NO AS invoiceNo
|
||||
FROM in_material_detail a
|
||||
WHERE a.del_flag = 1
|
||||
AND a.level = 1
|
||||
AND a.INVOICE_NO IS NOT NULL
|
||||
AND a.INVOICE_NO != ''
|
||||
AND a.in_order_number IN
|
||||
<foreach collection="inOrderNumbers" item="num" open="(" separator="," close=")">
|
||||
#{num}
|
||||
</foreach>
|
||||
</select>
|
||||
</mapper>
|
||||
Reference in New Issue
Block a user