浏览代码

[库存][修改]:减库存和增库存修改

release_toaliyun_real
Stormeye Wu 6 年前
父节点
当前提交
927c1f7129
共有 1 个文件被更改,包括 2 次插入2 次删除
  1. +2
    -2
      mallinkService/src/main/resources/mapper/WxCouponMapper.xml

+ 2
- 2
mallinkService/src/main/resources/mapper/WxCouponMapper.xml 查看文件

@@ -526,11 +526,11 @@
</select>

<update id="reduceInventory">
update wx_coupon SET remain_inventory = remain_inventory - #{number} where id = #{id} and remain_inventory - #{number} >= 0
update wx_coupon SET remain_inventory = remain_inventory - #{number} where id = #{id} and remain_inventory - #{number} &gt;= 0
</update>

<update id="backInventory">
update wx_coupon SET remain_inventory = remain_inventory + #{number} where id = #{id} and remain_inventory + #{number} <= #{inventory}
update wx_coupon SET remain_inventory = remain_inventory + #{number} where id = #{id} and remain_inventory + #{number} &lt;= #{inventory}
</update>

<update id="offExpiriedCouponByValidDate">


正在加载...
取消
保存