fix
Helius
2022-09-23 4f6c4b291dfe70cf8f65b082d7bbdfa5e0eccb3f
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>