|
|
@@ -137,7 +137,7 @@
|
|
|
LEFT JOIN activity_part_record apr on apr.order_id = tbo.order_id
|
|
|
where 1 = 1
|
|
|
<if test="shopName != null and shopName != ''">
|
|
|
- and gs.shop_name like '%'#{shopName}'%'
|
|
|
+ and gs.shop_name like concat("%", #{shopName}, "%")
|
|
|
</if>
|
|
|
|
|
|
<if test="shopPhone != null and shopPhone != ''">
|
|
|
@@ -149,7 +149,7 @@
|
|
|
</if>
|
|
|
|
|
|
<if test="couponName != null and couponName != ''">
|
|
|
- and tcu.coupon_name like '%'#{couponName}'%'
|
|
|
+ and tcu.coupon_name like concat("%", #{couponName}, "%")
|
|
|
</if>
|
|
|
|
|
|
<if test="orderNumber != null and orderNumber != ''">
|
|
|
@@ -159,7 +159,7 @@
|
|
|
<if test="startTime != null and startTime != '' and endTime != null and endTime != ''">
|
|
|
and umd2.create_time >= #{startTime} and #{endTime} >= umd2.create_time
|
|
|
</if>
|
|
|
- ORDER BY tbo.create_time desc
|
|
|
+ ORDER BY umd2.id desc
|
|
|
LIMIT #{limit} OFFSET #{row}
|
|
|
</select>
|
|
|
<select id="accountEntryManagementDetailsCount" resultType="java.lang.Integer">
|
|
|
@@ -196,7 +196,7 @@
|
|
|
LEFT JOIN activity_part_record apr on apr.order_id = tbo.order_id
|
|
|
where 1 = 1
|
|
|
<if test="shopName != null and shopName != ''">
|
|
|
- and gs.shop_name like '%'#{shopName}'%'
|
|
|
+ and gs.shop_name like concat("%", #{shopName}, "%")
|
|
|
</if>
|
|
|
|
|
|
<if test="shopPhone != null and shopPhone != ''">
|
|
|
@@ -208,7 +208,7 @@
|
|
|
</if>
|
|
|
|
|
|
<if test="couponName != null and couponName != ''">
|
|
|
- and tcu.coupon_name like '%'#{couponName}'%'
|
|
|
+ and tcu.coupon_name like concat("%", #{couponName}, "%")
|
|
|
</if>
|
|
|
|
|
|
<if test="orderNumber != null and orderNumber != ''">
|