|
@@ -1990,16 +1990,16 @@
|
|
|
WHERE ASO.SALE_TYPE = 1
|
|
|
AND ASO.DELETED = 0
|
|
|
and ASM.SALE_MATERIAL_ID IS NOT NULL
|
|
|
- <!--<if test="oneDate != null">
|
|
|
+ <if test="oneDate != null">
|
|
|
and to_date(#{oneDate}, 'yyyy-mm-dd hh24:mi:ss') < = ASOM.SALE_DATE_OF_RECEIPT
|
|
|
- </if>-->
|
|
|
+ </if>
|
|
|
<if test="carrierSsoId != null">
|
|
|
and R_CARRIER.CARRIER_SSO_ID = #{carrierSsoId}
|
|
|
</if>
|
|
|
- <!--<if test="startDate != null">
|
|
|
+ <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
|
|
|
- </if>-->
|
|
|
+ </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}
|
|
|
</if>
|