package com.iotechn.unimall.data.mapper; import com.dobbinsoft.fw.support.mapper.IMapper; import com.iotechn.unimall.data.domain.SkuDO; import com.iotechn.unimall.data.dto.product.SkuDTO; import org.apache.ibatis.annotations.Param; import java.util.List; /** * Created by rize on 2019/7/2. */ public interface SkuMapper extends IMapper { public SkuDTO getSkuDTOById(Long skuId); public Integer decSkuStock(@Param("skuId") Long skuId, @Param("stock") Integer stock); public Integer returnSkuStock(@Param("skuId") Long skuId, @Param("stock") Integer stock); /** * 删除SPUID * @param spuId * @return */ public List getSkuIds(@Param("spuId") Long spuId); List selectSkuIdsBySpuIds(@Param("ids") List ids); public Integer getStockForUpdate(Long skuId); public List getSkuDTOListByIds(@Param("skuIds") List skuIds); }