|
|
@ -2129,4 +2129,16 @@
|
|
|
|
#{ID}
|
|
|
|
#{ID}
|
|
|
|
</foreach>
|
|
|
|
</foreach>
|
|
|
|
</delete>
|
|
|
|
</delete>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<select id="selectWmsOdsProcureReturnOrderByProduceCode" resultMap="OdsProcureOutOrderResult">
|
|
|
|
|
|
|
|
SELECT DISTINCT
|
|
|
|
|
|
|
|
wms_ods_procure_return_order.ID
|
|
|
|
|
|
|
|
FROM
|
|
|
|
|
|
|
|
wms_ods_procure_return_order
|
|
|
|
|
|
|
|
LEFT JOIN wms_raw_order_in_sn ON wms_raw_order_in_sn.user_defined5 = wms_ods_procure_return_order.Produce_Code
|
|
|
|
|
|
|
|
AND wms_raw_order_in_sn.material_code = wms_ods_procure_return_order.Material_Code
|
|
|
|
|
|
|
|
where wms_ods_procure_return_order.Produce_Code = #{order}
|
|
|
|
|
|
|
|
and wms_ods_procure_return_order.User_Defined10!='2'
|
|
|
|
|
|
|
|
and Order_Status='3'
|
|
|
|
|
|
|
|
</select>
|
|
|
|
</mapper>
|
|
|
|
</mapper>
|
|
|
|