|
@@ -425,6 +425,9 @@
|
|
|
<if test="status != null">
|
|
|
and OO.ORDER_STATUS = #{status}
|
|
|
</if>
|
|
|
+ <if test="status == 4">
|
|
|
+ and ASO.TRANS_STATUS = 1
|
|
|
+ </if>
|
|
|
<if test="type == 1">
|
|
|
and OO.ORDER_TYPE in (12, 13 ,14,19)
|
|
|
and OO.CAPACITY_ID IS NOT NULL
|
|
@@ -809,5 +812,14 @@
|
|
|
where OO.ORDER_ID = #{orderId}
|
|
|
order by TTTR.RESULT_TIME
|
|
|
</select>
|
|
|
+ <select id="getSporadicStatus" resultType="java.lang.Integer">
|
|
|
+ SELECT
|
|
|
+ ASO.TRANS_STATUS
|
|
|
+ FROM
|
|
|
+ OMSTRUCK_ORDER OO
|
|
|
+ LEFT JOIN AMSTRUCK_SPORADIC_ORDER ASO
|
|
|
+ ON ASO.SPORADIC_ORDER_ID = OO.ORDER_PLAN_ID
|
|
|
+ WHERE OO.ORDER_ID = #{orderId}
|
|
|
+ </select>
|
|
|
|
|
|
</mapper>
|