From 162fd6cf9cc47858c29d0b488bd7f018b77a56b4 Mon Sep 17 00:00:00 2001 From: xiaoyong931011 <15274802129@163.com> Date: Tue, 06 Apr 2021 11:29:49 +0800 Subject: [PATCH] Merge branch 'score_shop' of http://120.27.238.55:7000/r/beauty-erp into score_shop --- zq-erp/src/main/resources/mybatis/mapper/xcxShop/ShopCouponDao.xml | 4 +++- 1 files changed, 3 insertions(+), 1 deletions(-) diff --git a/zq-erp/src/main/resources/mybatis/mapper/xcxShop/ShopCouponDao.xml b/zq-erp/src/main/resources/mybatis/mapper/xcxShop/ShopCouponDao.xml index b1f72eb..4e833dc 100644 --- a/zq-erp/src/main/resources/mybatis/mapper/xcxShop/ShopCouponDao.xml +++ b/zq-erp/src/main/resources/mybatis/mapper/xcxShop/ShopCouponDao.xml @@ -526,6 +526,7 @@ <result property="tag" column="tag"/> <result property="isUsing" column="is_using"/> <result property="kind" column="kind"/> + <result property="companyId" column="company_id"/> </resultMap> <select id="selectUsableCouponByProductInfo" resultMap="WxShopCouponMap"> @@ -561,7 +562,8 @@ select * from shop_coupon where - kind=2 and now() >= begin_time and end_time >= now() + company_id=#{companyId} + and kind=2 and now() >= begin_time and end_time >= now() and is_open = 1 and (is_all = 1 or ( -- Gitblit v1.9.1