add
yj
2024-12-05 b9900893177c78fc559223521fe839aa21000017
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
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<SkuDO> {
 
    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<Long> getSkuIds(@Param("spuId") Long spuId);
 
    List<Long> selectSkuIdsBySpuIds(@Param("ids") List<Long> ids);
 
    public Integer getStockForUpdate(Long skuId);
 
    public List<SkuDTO> getSkuDTOListByIds(@Param("skuIds") List<Long> skuIds);
 
}