|
@@ -564,7 +564,8 @@
|
|
|
R_CAPACITY.CAPACITY_NUMBER "capacityNum",
|
|
|
RW.WAREHOUSE_NAME "unloadPoint",
|
|
|
RAR1.RAILWAY_BUREAU "railwayBureau",
|
|
|
- OTO.STRAWMATS "strawMats"
|
|
|
+ OTO.STRAWMATS "strawMats",
|
|
|
+ TWR.RESULT_POUND_NO "number"
|
|
|
FROM AMS_SALE_ORDER ASO
|
|
|
LEFT JOIN RMS_CONSIGNEE RC ON RC.CONSIGNEE_ID = ASO.RECEIVE_ID
|
|
|
LEFT JOIN RMS_SHIPPER RS ON RS.SHIPPER_ID = ASO.SHIPPER_ID
|
|
@@ -597,6 +598,18 @@
|
|
|
and to_date(#{startDate}, 'yyyy-mm-dd hh24:mi:ss') <= ASO.INSERT_TIME
|
|
|
and to_date(#{endDate}, 'yyyy-mm-dd hh24:mi:ss') >= ASO.INSERT_TIME
|
|
|
</if>
|
|
|
+ <if test="wagonNo != null">
|
|
|
+ and OTO.ORDER_WAGON_NO like #{wagonNo}
|
|
|
+ </if>
|
|
|
+ <if test="consigneeName != null">
|
|
|
+ and RC.CONSIGNEE_COMPANY_NAME like #{consigneeName}
|
|
|
+ </if>
|
|
|
+ <if test="toTheStation != null">
|
|
|
+ and RAR1.ARRIVAL_NAME like #{toTheStation}
|
|
|
+ </if>
|
|
|
+ <if test="sendStation != null">
|
|
|
+ and RAR.ARRIVAL_NAME like #{sendStation}
|
|
|
+ </if>
|
|
|
)
|
|
|
</select>
|
|
|
|