Sfoglia il codice sorgente

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

release_toaliyun_real
Stormeye Wu 6 anni fa
parent
commit
927c1f7129
1 ha cambiato i file con 2 aggiunte e 2 eliminazioni
  1. +2
    -2
      mallinkService/src/main/resources/mapper/WxCouponMapper.xml

+ 2
- 2
mallinkService/src/main/resources/mapper/WxCouponMapper.xml Vedi File

@@ -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">


Caricamento…
Annulla
Salva