From d0857993b1fec10c5408c2344eaae572ff8efde7 Mon Sep 17 00:00:00 2001 From: lisy <linlangsur163@163.com> Date: 星期五, 07 七月 2023 12:04:22 +0800 Subject: [PATCH] activity:使用福利-增加券门店中间表 --- cloud-server-activity/src/main/resources/mapper/UserCouponMapper.xml | 30 ------------------------------ 1 files changed, 0 insertions(+), 30 deletions(-) diff --git a/cloud-server-activity/src/main/resources/mapper/UserCouponMapper.xml b/cloud-server-activity/src/main/resources/mapper/UserCouponMapper.xml index 9b98c7c..4cd1ab4 100644 --- a/cloud-server-activity/src/main/resources/mapper/UserCouponMapper.xml +++ b/cloud-server-activity/src/main/resources/mapper/UserCouponMapper.xml @@ -17,34 +17,4 @@ b.useScope = 1 or (b.useScope = 2 and provinceCode = #{provinceCode} and cityCode = #{cityCode}) or (b.useScope = 3 and b.id in (select couponId from t_coupon_store where storeId = #{storeId}))) </select> - <select id="queryCanuseConponIds" resultType="com.dsh.activity.entity.UserCoupon"> - SELECT * - FROM t_user_coupon - UNION ALL - SELECT * - FROM t_user_coupon1 - UNION ALL - SELECT * - FROM t_user_coupon2 - UNION ALL - SELECT * - FROM t_user_coupon3 - UNION ALL - SELECT * - FROM t_user_coupon4 - UNION ALL - SELECT * - FROM t_user_coupon5 - WHERE 1=1 - <if test="userId != null "> - and userId = #{userId} - </if> - <if test="couponIds.size > 0"> - and couponId in - <foreach collection="couponIds" close=")" index="index" open="(" separator="," item="item"> - #{item} - </foreach> - </if> - order by insertTime desc - </select> </mapper> -- Gitblit v1.7.1