Browse Source

优惠券bugfix

chao 3 years ago
parent
commit
5040c4b63d
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/main/resources/mapper/OrderCommonMapper.xml

+ 1 - 1
src/main/resources/mapper/OrderCommonMapper.xml

@@ -422,7 +422,7 @@
         <if test="userId == null or userId == 0">
             AND couponType != 2
             AND NOW() <![CDATA[ > ]]> startDate
-            AND NOW() <![CDATA[ < ]]> if(receiveFlag = 1,endDate,date_add(startDate,interval receivePeriod day)
+            AND NOW() <![CDATA[ < ]]> if(receiveFlag = 1,endDate,date_add(startDate,interval receivePeriod day))
         </if>
         <if test="userId > 0">
             AND id NOT IN(SELECT couponId FROM cm_coupon_club WHERE userId = #{userId})