Merge remote-tracking branch 'origin/master'

This commit is contained in:
Tankaikai
2025-03-05 15:41:57 +08:00

View File

@@ -60,17 +60,13 @@
pro.id as proId, pro.id as proId,
inRecord.name as name, inRecord.name as name,
inRecord.type, inRecord.type,
inRecord.over_num as num,
inRecord.use_end_time as endTime inRecord.use_end_time as endTime
FROM FROM
tb_shop_activate_coupon_record inRecord tb_shop_activate_coupon_record inRecord
LEFT JOIN tb_shop_info shop ON inRecord.shop_id = shop.id LEFT JOIN tb_shop_info shop ON inRecord.shop_id = shop.id
LEFT JOIN tb_product pro ON inRecord.pro_id = pro.id and pro.shop_id = #{shopId} LEFT JOIN tb_product pro ON inRecord.pro_id = pro.id and pro.shop_id = #{shopId}
WHERE WHERE
inRecord.shop_user_id in inRecord.shop_user_id = #{shopUserId}
<foreach item="item" index="index" collection="vipUserIds" open="(" separator="," close=")">
#{item}
</foreach>
<if test="shopId != null and shopId != ''"> <if test="shopId != null and shopId != ''">
and inRecord.shop_id = #{shopId} and inRecord.shop_id = #{shopId}
</if> </if>