delete from mall_goods_sku where goods_id = #{id} delete from mall_goods_sku where id in #{item} update mall_goods_sku set stock = stock - #{cnt}, sku_volume = sku_volume + #{cnt} where id=#{id} and stock - #{cnt} = ]]> 0 update mall_goods_sku set stock = stock + #{cnt}, sku_volume = sku_volume - #{cnt} where id=#{id} and sku_volume - #{cnt} = ]]> 0