bug--修复拼团商品扣减库存报错

This commit is contained in:
taozi
2020-11-04 17:19:19 +08:00
parent fd1670f9ed
commit 1008685781

View File

@ -11,7 +11,6 @@ package co.yixiang.modules.product.service.mapper;
import co.yixiang.common.mapper.CoreMapper;
import co.yixiang.modules.product.domain.YxStoreProductAttrValue;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;
import org.apache.ibatis.annotations.Update;
import org.springframework.stereotype.Repository;
@ -45,7 +44,7 @@ public interface StoreProductAttrValueMapper extends CoreMapper<YxStoreProductAt
*/
@Update("update yx_store_product_attr_value set stock=stock+#{num}, pink_stock=pink_stock+#{num}, sales=sales-#{num}" +
" where product_id=#{productId} and and `unique`=#{unique}")
" where product_id=#{productId} and `unique`=#{unique}")
int incCombinationStockDecSales(@Param("num") int num,@Param("productId") Long productId,
@Param("unique") String unique);