|
|
@@ -51,7 +51,7 @@
|
|
|
and bo.status = #{status}
|
|
|
</if>
|
|
|
<if test="itemName != null and itemName != ''">
|
|
|
- and bodi.item_name like '%' || #{itemName} || '%'
|
|
|
+ and bodi.item_name like concat('%', #{itemName} , '%')
|
|
|
</if>
|
|
|
<if test="orderDate != null">
|
|
|
<if test="orderDate.startDate != null and orderDate.startDate != ''">
|
|
|
@@ -64,10 +64,10 @@
|
|
|
</if>
|
|
|
</if>
|
|
|
<if test="customerName != null and customerName != ''">
|
|
|
- and bo.customer_name like '%' || #{customerName} || '%'
|
|
|
+ and bo.customer_name like concat('%', #{customerName} , '%')
|
|
|
</if>
|
|
|
<if test="deliveryCustomerName != null and deliveryCustomerName != ''">
|
|
|
- and bod.delivery_customer_name like '%' || #{deliveryCustomerName} || '%'
|
|
|
+ and bod.delivery_customer_name like concat('%', #{deliveryCustomerName} , '%')
|
|
|
</if>
|
|
|
<if test="deliveryPlanDate != null">
|
|
|
<if test="deliveryPlanDate.startDate != null and deliveryPlanDate.startDate != ''">
|
|
|
@@ -81,7 +81,7 @@
|
|
|
</if>
|
|
|
|
|
|
<if test="deliveryTrackingNo != null and deliveryTrackingNo != ''">
|
|
|
- and bod.delivery_tracking_no like '%' || #{deliveryTrackingNo} || '%'
|
|
|
+ and bod.delivery_tracking_no like concat('%', #{deliveryTrackingNo} , '%')
|
|
|
</if>
|
|
|
|
|
|
</where>
|
|
|
@@ -139,7 +139,7 @@
|
|
|
and bo.status = #{status}
|
|
|
</if>
|
|
|
<if test="itemName != null and itemName != ''">
|
|
|
- and bodi.item_name like '%' || #{itemName} || '%'
|
|
|
+ and bodi.item_name like concat('%', #{itemName} , '%')
|
|
|
</if>
|
|
|
<if test="orderDate != null">
|
|
|
<if test="orderDate.startDate != null and orderDate.startDate != ''">
|
|
|
@@ -152,10 +152,10 @@
|
|
|
</if>
|
|
|
</if>
|
|
|
<if test="customerName != null and customerName != ''">
|
|
|
- and bo.customer_name like '%' || #{customerName} || '%'
|
|
|
+ and bo.customer_name like concat('%', #{customerName} , '%')
|
|
|
</if>
|
|
|
<if test="deliveryCustomerName != null and deliveryCustomerName != ''">
|
|
|
- and bod.delivery_customer_name like '%' || #{deliveryCustomerName} || '%'
|
|
|
+ and bod.delivery_customer_name like concat('%', #{deliveryCustomerName} , '%')
|
|
|
</if>
|
|
|
<if test="deliveryPlanDate != null">
|
|
|
<if test="deliveryPlanDate.startDate != null and deliveryPlanDate.startDate != ''">
|
|
|
@@ -169,7 +169,7 @@
|
|
|
</if>
|
|
|
|
|
|
<if test="deliveryTrackingNo != null and deliveryTrackingNo != ''">
|
|
|
- and bod.delivery_tracking_no like '%' || #{deliveryTrackingNo} || '%'
|
|
|
+ and bod.delivery_tracking_no like concat('%', #{deliveryTrackingNo} , '%')
|
|
|
</if>
|
|
|
|
|
|
</where>
|