<iftest="query.packageType != null and query.packageType != '' ">
<iftest="query.packageType != null and query.packageType != '' ">
AND CONCAT(',',o.package_type,',') REGEXP CONCAT(',',REPLACE(#{query.packageType},',',',|,'), ',')
AND CONCAT(',',o.package_type,',') REGEXP CONCAT(',',REPLACE(#{query.packageType},',',',|,'), ',')
</if>
</if>
...
@@ -608,12 +643,12 @@
...
@@ -608,12 +643,12 @@
<iftest="query.salesmanId != null and query.creator">
<iftest="query.salesmanId != null and query.creator">
AND (o.`salesman_id` = #{query.salesmanId} or o.`customer_id` in(select cus.id from ecw_customer cus where cus.is_customer_service_confirmed = 1 and cus.customer_service = #{query.salesmanId} ) or o.`creator` = #{query.creator})
AND (o.`salesman_id` = #{query.salesmanId} or o.`customer_id` in(select cus.id from ecw_customer cus where cus.is_customer_service_confirmed = 1 and cus.customer_service = #{query.salesmanId} ) or o.`creator` = #{query.creator})
</if>
</if>
<!-- <if test="query.customsType != null">-->
<iftest="query.customsType != null">
<!-- AND o.`customs_type` = #{query.customsType}-->
AND o.`customs_type` = #{query.customsType}
<!-- </if>-->
</if>
<!-- <if test="query.productRecord != null">-->
<iftest="query.productRecord != null">
<!-- AND o.`product_record` = #{query.productRecord}-->
AND o.`product_record` = #{query.productRecord}
<!-- </if>-->
</if>
<iftest="query.customsTypes != null and query.customsTypes.size()>0">
<iftest="query.customsTypes != null and query.customsTypes.size()>0">
<iftest="query.customsTypes != null and query.customsTypes.size()==1 ">
<iftest="query.customsTypes != null and query.customsTypes.size()==1 ">
...
@@ -633,18 +668,18 @@
...
@@ -633,18 +668,18 @@
</if>
</if>
<iftest="query.productRecord != null and query.productRecord.size()>0">
<iftest="query.productRecords != null and query.productRecords.size()>0">
<iftest="query.productRecord != null and query.productRecord != '' and query.productRecord.size()==1 ">
<iftest="query.productRecords != null and query.productRecords.size()==1 ">