|  |  |  | 
|---|
|  |  |  | package cc.mrbird.febs.mall.mapper; | 
|---|
|  |  |  |  | 
|---|
|  |  |  | import cc.mrbird.febs.mall.entity.MallGoodsSku; | 
|---|
|  |  |  | import cc.mrbird.febs.mall.vo.AdminMailGoodsSkuDetailVo; | 
|---|
|  |  |  | import com.baomidou.mybatisplus.core.mapper.BaseMapper; | 
|---|
|  |  |  | import org.apache.ibatis.annotations.Param; | 
|---|
|  |  |  |  | 
|---|
|  |  |  | import java.util.List; | 
|---|
|  |  |  | import org.apache.ibatis.annotations.Param; | 
|---|
|  |  |  |  | 
|---|
|  |  |  | public interface MallGoodsSkuMapper extends BaseMapper<MallGoodsSku> { | 
|---|
|  |  |  |  | 
|---|
|  |  |  | void deleteByGoodsId(@Param("id")Long id); | 
|---|
|  |  |  |  | 
|---|
|  |  |  | List<AdminMailGoodsSkuDetailVo> selectByGoodId(@Param("id")Long id); | 
|---|
|  |  |  |  | 
|---|
|  |  |  | List<MallGoodsSku> selectSkuByGoodsId(@Param("id") Long id); | 
|---|
|  |  |  |  | 
|---|
|  |  |  | MallGoodsSku selectSkuInfoById(@Param("id") Long id); | 
|---|
|  |  |  |  | 
|---|
|  |  |  | int delSkuByIds(@Param("list") List<Long> ids); | 
|---|
|  |  |  |  | 
|---|
|  |  |  | Integer upDateStockAndVolumeBySkuId(@Param("id")Long id, @Param("cnt")Integer cnt); | 
|---|
|  |  |  |  | 
|---|
|  |  |  | Integer updateStockAndVolumeBySkuId(@Param("id")Long id, @Param("cnt")Integer cnt); | 
|---|
|  |  |  | } | 
|---|