fix
Helius
2022-09-22 5a8bb0c1dde052c6c95d545f53ae27d42338529d
src/main/resources/mapper/modules/MallGoodsMapper.xml
@@ -264,4 +264,11 @@
        from mall_goods_comment a limit 1
    </select>
    <update id="upDateStockAndVolumeByGoodsId">
        update mall_goods
        set stock = stock - #{cnt},
            volume = volume + #{cnt}
        where id=#{id} and  stock - #{cnt} <![CDATA[ >= ]]> 0
    </update>
</mapper>