|
@@ -1559,6 +1559,7 @@
|
|
|
and to_date(#{startDate}, 'yyyy-mm-dd hh24:mi:ss') <= a_s_order.UPDATE_TIME
|
|
|
and to_date(#{endDate}, 'yyyy-mm-dd hh24:mi:ss') >= a_s_order.UPDATE_TIME
|
|
|
</if>
|
|
|
+ ORDER BY a_s_order.SALE_ORDER_ID DESC
|
|
|
)
|
|
|
<where>
|
|
|
<if test="saleNumber != null">
|
|
@@ -4176,6 +4177,11 @@
|
|
|
SET OO.CAPACITY_ID = #{capacityId}
|
|
|
WHERE OO.ORDER_ID = #{orderId}
|
|
|
</update>
|
|
|
+ <update id="bindSaleArea">
|
|
|
+ UPDATE RMS_CONSIGNEE RC
|
|
|
+ SET RC.AREA_ID = #{saleAreaId}
|
|
|
+ WHERE RC.CONSIGNEE_ID = #{receiveId}
|
|
|
+ </update>
|
|
|
|
|
|
<select id="getCarrierByAddress" parameterType="DECIMAL" resultType="java.util.Map" >
|
|
|
SELECT DISTINCT ACTP.CARRIER_ID "carrierId"
|
|
@@ -4502,4 +4508,13 @@
|
|
|
</if>
|
|
|
)
|
|
|
</select>
|
|
|
+ <select id="selectSaleAreaId" resultType="java.math.BigDecimal" parameterType="decimal">
|
|
|
+ SELECT RC.AREA_ID AS "areaId"
|
|
|
+ FROM RMS_CONSIGNEE RC
|
|
|
+ WHERE RC.CONSIGNEE_ID = #{receiveId}
|
|
|
+ </select>
|
|
|
+ <select id="selectSaleAreaIdByName" resultType="java.math.BigDecimal" parameterType="decimal">
|
|
|
+ SELECT RSA.AREA_ID FROM RMS_SALE_AREA RSA
|
|
|
+ WHERE RSA.AREA_NAME = #{saleAreaName}
|
|
|
+ </select>
|
|
|
</mapper>
|