|
@@ -545,9 +545,12 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<if test="params.paymentType != null">
|
|
|
AND (o.payment_type = #{params.paymentType} and o.status != 0)
|
|
|
</if>
|
|
|
- <if test="params.shopName != null and params.shopName != ''">
|
|
|
- AND o.shop_name like concat('%', #{params.shopName}, '%')
|
|
|
- </if>
|
|
|
+ <if test="params.shopIds != null and params.shopIds > 0">
|
|
|
+ and o.shop_id in
|
|
|
+ <foreach collection="params.shopIds" index="index" item="shopId" open="(" separator="," close=")">
|
|
|
+ #{shopId}
|
|
|
+ </foreach>
|
|
|
+ </if>
|
|
|
ORDER BY o.create_time DESC
|
|
|
</select>
|
|
|
|
|
@@ -1000,9 +1003,12 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<if test="params.paymentType != null">
|
|
|
AND (o.payment_type = #{params.paymentType} and o.status != 0)
|
|
|
</if>
|
|
|
- <if test="params.shopId != null">
|
|
|
- AND o.shop_id = #{params.shopId}
|
|
|
- </if>
|
|
|
+ <if test="params.shopIds != null and params.shopIds > 0">
|
|
|
+ and o.shop_id in
|
|
|
+ <foreach collection="params.shopIds" index="index" item="shopId" open="(" separator="," close=")">
|
|
|
+ #{shopId}
|
|
|
+ </foreach>
|
|
|
+ </if>
|
|
|
</select>
|
|
|
|
|
|
<select id="selectExportOrder" resultType="com.ydd.module.dto.OrderExportDto">
|
|
@@ -1186,9 +1192,12 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<if test="params.paymentType != null">
|
|
|
AND (o.payment_type = #{params.paymentType} and o.status != 0)
|
|
|
</if>
|
|
|
- <if test="params.shopId != null">
|
|
|
- AND o.shop_id = #{params.shopId}
|
|
|
- </if>
|
|
|
+ <if test="params.shopIds != null and params.shopIds > 0">
|
|
|
+ and o.shop_id in
|
|
|
+ <foreach collection="params.shopIds" index="index" item="shopId" open="(" separator="," close=")">
|
|
|
+ #{shopId}
|
|
|
+ </foreach>
|
|
|
+ </if>
|
|
|
ORDER BY o.create_time DESC
|
|
|
</select>
|
|
|
|