Browse Source

修改优惠券领取sql

hgw 3 years ago
parent
commit
d775af5854
1 changed files with 1 additions and 1 deletions
  1. 1 1
      mec-biz/src/main/resources/config/mybatis/SysCouponMapper.xml

+ 1 - 1
mec-biz/src/main/resources/config/mybatis/SysCouponMapper.xml

@@ -120,7 +120,7 @@
         WHERE id_ = #{param.id}
         WHERE id_ = #{param.id}
         and tenant_id_ = #{param.tenantId}
         and tenant_id_ = #{param.tenantId}
         <if test="param.checkStock != null">
         <if test="param.checkStock != null">
-           and stock_count_ > (consume_num_ + #{param.exchangeNum})
+           and stock_count_ >= (consume_num_ + #{param.exchangeNum})
         </if>
         </if>
     </update>
     </update>