package com.xingxi.api.data.mapper;

import com.xingxi.business.ProdInventory.domain.ProdInventory;
import com.xingxi.business.ProdInventory.mapper.ProdInventoryBillMapper;
import com.xingxi.business.ProdInventory.mapper.ProdInventoryMapper;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

@Mapper
public interface WxApiProdInventoryMapper extends ProdInventoryMapper, ProdInventoryBillMapper {

    ProdInventory selectProdInventoryLock(@Param("prodId") Long prodId, @Param("prodAttrId") Long prodAttrId, @Param("mercId") Long mercId);

    int updateSubtractProdStock(ProdInventory prodStock);

    int updatePlusProdStock(ProdInventory prodStock);

}
