|
@@ -416,7 +416,6 @@
|
|
|
WHERE OO.ORDER_TYPE = #{orderTypee}
|
|
|
AND ASO.SHIPPER_ID = #{shipperId}
|
|
|
AND OO.ORDER_STATUS IN (2,5)
|
|
|
- AND TWR.RESULT_NET_WEIGHT IS NOT NULL
|
|
|
<if test="orderTypee!=null and orderTypee==1">
|
|
|
AND ASM.MATERIAL_NUMBER IS NOT NULL
|
|
|
</if>
|
|
@@ -1935,11 +1934,12 @@
|
|
|
NVL(R_CARRIER.CARRIER_ID,0) "carrierIds",
|
|
|
OO.CAN_WORK "canwork",
|
|
|
OO.ORDER_STATUS "carStatus",
|
|
|
+ DECODE(OO.PRINTNUMBER,0,'已打印','未打印') "isPrintDelivery",
|
|
|
DECODE(ASO.SALE_ORDER_STATUS,1,'销售订单已上报',
|
|
|
2,'销售已提交',
|
|
|
4,'财务已审批',
|
|
|
0,'销售订单未上报') "saleOrderStatus",
|
|
|
- DECODE(OO.ORDER_STATUS ,2,'已完成',4,'已派发',5,'已接收',0,'未派发',7,'已关闭',8,'已关闭')
|
|
|
+ DECODE(OO.ORDER_STATUS ,2,'作业已完成',4,'物流公司已派单',5,'司机已接单',0,'未派发',7,'已关闭',8,'已关闭')
|
|
|
"orderStatus"
|
|
|
FROM AMS_SALE_ORDER ASO
|
|
|
LEFT JOIN RMS_CONSIGNEE RC
|
|
@@ -1989,14 +1989,14 @@
|
|
|
AND ASO.DELETED = 0
|
|
|
and ASM.SALE_MATERIAL_ID IS NOT NULL
|
|
|
<if test="oneDate != null">
|
|
|
- and to_date(#{oneDate}, 'yyyy-mm-dd hh24:mi:ss') < = ASOM.SALE_DATE_OF_RECEIPT
|
|
|
+ and to_date(#{oneDate}, 'yyyy-mm-dd') < = to_date(to_char(ASOM.SALE_DATE_OF_RECEIPT-1,'yyyy-mm-dd'),'yyyy-mm-dd')
|
|
|
</if>
|
|
|
<if test="carrierSsoId != null">
|
|
|
and R_CARRIER.CARRIER_SSO_ID = #{carrierSsoId}
|
|
|
</if>
|
|
|
<if test="startDate != null">
|
|
|
- and to_date(#{startDate}, 'yyyy-mm-dd hh24:mi:ss') <= ASOM.SALE_DATE_OF_RECEIPT
|
|
|
- and to_date(#{endDate}, 'yyyy-mm-dd hh24:mi:ss') >= ASOM.SALE_DATE_OF_RECEIPT
|
|
|
+ and to_date(#{startDate}, 'yyyy-mm-dd') <= to_date(to_char(ASOM.SALE_DATE_OF_RECEIPT-1,'yyyy-mm-dd'),'yyyy-mm-dd')
|
|
|
+ and to_date(#{endDate}, 'yyyy-mm-dd') >= to_date(to_char(ASOM.SALE_DATE_OF_RECEIPT-1,'yyyy-mm-dd'),'yyyy-mm-dd')
|
|
|
</if>
|
|
|
<if test="remark != null" >
|
|
|
and RSR.SALER_NAME || RCA.CAPACITY_NUMBER || RC.CONSIGNEE_COMPANY_NAME || R_CARRIER.CARRIER_ABBREVIATION || RM.MATERIAL_NAME || RM.MATERIAL_MODEL || RM.MATERIAL_SPECIFICATION LIKE #{remark}
|