|
@@ -1556,7 +1556,7 @@
|
|
|
<if test="remark != null">
|
|
|
and db.RESULT_FOREIGN_SHIP_NAME like #{remark}
|
|
|
</if>
|
|
|
- order by apo.PURCHASE_ORDER_DATE desc
|
|
|
+ order by apo.PURCHASE_ORDER_NO desc
|
|
|
)
|
|
|
where rownum = 1
|
|
|
</select>
|
|
@@ -2773,9 +2773,12 @@
|
|
|
<if test="status == null">
|
|
|
AND OO.ORDER_STATUS in (4, 5, 6)
|
|
|
</if>
|
|
|
- <if test="status != null">
|
|
|
+ <if test="status == 2">
|
|
|
AND OO.ORDER_STATUS = 2
|
|
|
</if>
|
|
|
+ <if test="status == 22">
|
|
|
+ AND OO.ORDER_STATUS in (2, 4, 5, 6)
|
|
|
+ </if>
|
|
|
</select>
|
|
|
|
|
|
<!--查询采购零星物资信息给app 12 -->
|
|
@@ -2801,9 +2804,12 @@
|
|
|
<if test="status == null">
|
|
|
AND OO.ORDER_STATUS in (4, 5, 6)
|
|
|
</if>
|
|
|
- <if test="status != null">
|
|
|
+ <if test="status == 2">
|
|
|
AND OO.ORDER_STATUS = 2
|
|
|
</if>
|
|
|
+ <if test="status == 22">
|
|
|
+ AND OO.ORDER_STATUS in (2, 4, 5, 6)
|
|
|
+ </if>
|
|
|
</select>
|
|
|
|
|
|
<!-- 查询内转运输订单给APP 9 10 11-->
|
|
@@ -2834,9 +2840,12 @@
|
|
|
<if test="status == null">
|
|
|
AND OO.ORDER_STATUS in (4, 5, 6)
|
|
|
</if>
|
|
|
- <if test="status != null">
|
|
|
+ <if test="status == 2">
|
|
|
AND OO.ORDER_STATUS = 2
|
|
|
</if>
|
|
|
+ <if test="status == 22">
|
|
|
+ AND OO.ORDER_STATUS in (2, 4, 5, 6)
|
|
|
+ </if>
|
|
|
<if test="orderStatus == 4">
|
|
|
AND AIP.PLAN_EABLE_STATUS = 1
|
|
|
</if>
|
|
@@ -2896,12 +2905,15 @@
|
|
|
LEFT JOIN RMS_RECEIVE_ADDRESS RDA
|
|
|
ON RDA.ADDRESS_ID = ASOM.SALE_SHIPPING_ADDRESS_ID
|
|
|
WHERE OO.ORDER_ID = #{orderId}
|
|
|
- <if test="status == null">
|
|
|
- AND OO.ORDER_STATUS in (4, 5, 6)
|
|
|
- </if>
|
|
|
- <if test="status != null">
|
|
|
- AND OO.ORDER_STATUS = 2
|
|
|
- </if>
|
|
|
+ <if test="status == null">
|
|
|
+ AND OO.ORDER_STATUS in (4, 5, 6)
|
|
|
+ </if>
|
|
|
+ <if test="status == 2">
|
|
|
+ AND OO.ORDER_STATUS = 2
|
|
|
+ </if>
|
|
|
+ <if test="status == 22">
|
|
|
+ AND OO.ORDER_STATUS in (2, 4, 5, 6)
|
|
|
+ </if>
|
|
|
</select>
|
|
|
|
|
|
|