|
@@ -329,7 +329,13 @@
|
|
|
cc.couponPayWay
|
|
|
FROM cm_coupon cc
|
|
|
LEFT JOIN shop s ON cc.shopId = s.shopId
|
|
|
- where id = #{couponId}
|
|
|
+ where cc.delFlag = 0
|
|
|
+ AND cc.vipFlag != 1
|
|
|
+ AND cc.status != 2
|
|
|
+ AND cc.couponType IN (0,1,3)
|
|
|
+ and NOW() <![CDATA[ > ]]> cc.startDate
|
|
|
+ and NOW() <![CDATA[ < ]]> cc.endDate
|
|
|
+ AND cc.id = #{couponId}
|
|
|
</select>
|
|
|
<select id="findUserPermission" resultType="java.lang.Integer">
|
|
|
select userIdentity
|