|
@@ -1002,21 +1002,12 @@
|
|
SELECT ORI.INVENTORY_ID FROM OYE_REALTIME_INVENTORY ORI
|
|
SELECT ORI.INVENTORY_ID FROM OYE_REALTIME_INVENTORY ORI
|
|
<where>
|
|
<where>
|
|
ORI.INBOUND_AREA = '欧冶库'
|
|
ORI.INBOUND_AREA = '欧冶库'
|
|
|
|
+ AND ORI.material_Id = #{materialId}
|
|
|
|
+ AND ORI.sale_area = #{saleArea}
|
|
|
|
+ AND ORI.CONSIGNEE_ID = #{receiveId}
|
|
<if test="meter != null">
|
|
<if test="meter != null">
|
|
AND NVL(ORI.METER,0) = NVL(#{meter},0)
|
|
AND NVL(ORI.METER,0) = NVL(#{meter},0)
|
|
</if>
|
|
</if>
|
|
- <if test="receiveId != null">
|
|
|
|
- AND ORI.CONSIGNEE_ID = #{receiveId}
|
|
|
|
- </if>
|
|
|
|
- <if test="saleArea != null">
|
|
|
|
- AND ORI.sale_area = #{saleArea}
|
|
|
|
- </if>
|
|
|
|
- <if test="materialId != null">
|
|
|
|
- AND ORI.material_Id = #{materialId}
|
|
|
|
- </if>
|
|
|
|
- <if test="singleWeight != null">
|
|
|
|
- AND ORI.single_Weight = #{singleWeight}
|
|
|
|
- </if>
|
|
|
|
<if test="singleWeight != null">
|
|
<if test="singleWeight != null">
|
|
AND ORI.single_Weight = #{singleWeight}
|
|
AND ORI.single_Weight = #{singleWeight}
|
|
</if>
|
|
</if>
|
|
@@ -1024,6 +1015,8 @@
|
|
AND ORI.inbound_Warehouse = #{inboundWarehouse}
|
|
AND ORI.inbound_Warehouse = #{inboundWarehouse}
|
|
</if>
|
|
</if>
|
|
</where>
|
|
</where>
|
|
|
|
+ ORDER BY ORI.MATERIAL_NUMBER desc
|
|
|
|
+ FETCH NEXT 1 ROW ONLY
|
|
</select>
|
|
</select>
|
|
<select id="getCompareMap" resultType="java.util.Map">
|
|
<select id="getCompareMap" resultType="java.util.Map">
|
|
SELECT
|
|
SELECT
|