|
|
|
@ -588,4 +588,77 @@
|
|
|
|
|
ORDER BY
|
|
|
|
|
ods_procure_order.Create_Date DESC
|
|
|
|
|
</select>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<select id="getWmsRawOrderInListToPda" parameterType="WmsRawOrderIn" resultMap="WmsRawOrderInResult">
|
|
|
|
|
SELECT
|
|
|
|
|
wms_raw_order_in.raw_order_in_id,
|
|
|
|
|
wms_raw_order_in.factory_code,
|
|
|
|
|
wms_raw_order_in.wh_code,
|
|
|
|
|
wms_raw_order_in.wa_code,
|
|
|
|
|
wms_raw_order_in.wl_code,
|
|
|
|
|
wms_raw_order_in.order_in_type,
|
|
|
|
|
wms_raw_order_in.order_no,
|
|
|
|
|
wms_raw_order_in.dn_no,
|
|
|
|
|
wms_raw_order_in.po_no,
|
|
|
|
|
wms_raw_order_in.po_line,
|
|
|
|
|
wms_raw_order_in.po_type,
|
|
|
|
|
wms_raw_order_in.material_code,
|
|
|
|
|
wms_raw_order_in.material_desc,
|
|
|
|
|
wms_raw_order_in.unit,
|
|
|
|
|
wms_raw_order_in.buyer_group,
|
|
|
|
|
wms_raw_order_in.supply_code,
|
|
|
|
|
wms_raw_order_in.sap_factory_code,
|
|
|
|
|
wms_raw_order_in.send_spot,
|
|
|
|
|
wms_raw_order_in.request_amount,
|
|
|
|
|
wms_raw_order_in.receipt_amount,
|
|
|
|
|
wms_raw_order_in.shelves_amount,
|
|
|
|
|
wms_raw_order_in.location,
|
|
|
|
|
wms_raw_order_in.request_time,
|
|
|
|
|
wms_raw_order_in.quality_status,
|
|
|
|
|
wms_raw_order_in.order_status,
|
|
|
|
|
wms_raw_order_in.receipt_operator,
|
|
|
|
|
wms_raw_order_in.receipt_time,
|
|
|
|
|
wms_raw_order_in.shelves_operator,
|
|
|
|
|
wms_raw_order_in.return_amount,
|
|
|
|
|
wms_raw_order_in.return_name,
|
|
|
|
|
wms_raw_order_in.return_time,
|
|
|
|
|
wms_raw_order_in.return_status,
|
|
|
|
|
wms_raw_order_in.shelves_time,
|
|
|
|
|
wms_raw_order_in.return_message,
|
|
|
|
|
wms_raw_order_in.accounting_status,
|
|
|
|
|
wms_raw_order_in.accounting_time,
|
|
|
|
|
wms_raw_order_in.accounting_message,
|
|
|
|
|
wms_raw_order_in.user_defined1,
|
|
|
|
|
wms_raw_order_in.user_defined2,
|
|
|
|
|
wms_raw_order_in.user_defined3,
|
|
|
|
|
wms_raw_order_in.user_defined4,
|
|
|
|
|
wms_raw_order_in.user_defined5,
|
|
|
|
|
wms_raw_order_in.user_defined6,
|
|
|
|
|
wms_raw_order_in.user_defined8,
|
|
|
|
|
wms_raw_order_in.user_defined9,
|
|
|
|
|
wms_raw_order_in.user_defined10,
|
|
|
|
|
wms_raw_order_in.create_by,
|
|
|
|
|
wms_raw_order_in.gmt_create,
|
|
|
|
|
wms_raw_order_in.last_modified_by,
|
|
|
|
|
wms_raw_order_in.gmt_modified,
|
|
|
|
|
ods_procure_order.User_Defined7 user_defined7,
|
|
|
|
|
wms_raw_order_in.active_flag
|
|
|
|
|
FROM
|
|
|
|
|
wms_raw_order_in
|
|
|
|
|
LEFT JOIN ods_procure_order ON wms_raw_order_in.order_no = ods_procure_order.User_Defined5
|
|
|
|
|
AND wms_raw_order_in.po_no= ods_procure_order.Procure_Code
|
|
|
|
|
AND wms_raw_order_in.po_line= ods_procure_order.User_Defined3
|
|
|
|
|
<where>
|
|
|
|
|
wms_raw_order_in.user_defined4 IS NULL
|
|
|
|
|
<if test="materialCode != null and materialCode != ''">and wms_raw_order_in.material_code like concat('%', #{materialCode},
|
|
|
|
|
'%') </if>
|
|
|
|
|
<if test="materialDesc != null and materialDesc != ''">and wms_raw_order_in.material_desc like concat('%', #{materialDesc},
|
|
|
|
|
'%') </if>
|
|
|
|
|
<if test="userDefined1 != null and userDefined1 != ''">and wms_raw_order_in.user_defined1 = #{userDefined1}</if>
|
|
|
|
|
<if test="orderNo != null and orderNo != ''">and wms_raw_order_in.order_no = #{orderNo}</if>
|
|
|
|
|
<if test="poNo != null and poNo != ''">and wms_raw_order_in.po_no = #{poNo}</if>
|
|
|
|
|
</where>
|
|
|
|
|
ORDER BY wms_raw_order_in.gmt_create DESC
|
|
|
|
|
</select>
|
|
|
|
|
</mapper>
|
|
|
|
|