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
package com.iotechn.unimall.data.mapper;
 
import com.dobbinsoft.fw.support.mapper.IMapper;
import com.iotechn.unimall.data.domain.SpuDO;
import org.apache.ibatis.annotations.Param;
 
import java.util.List;
 
/**
 * Created by rize on 2019/7/2.
 */
public interface SpuMapper extends IMapper<SpuDO> {
 
    /**
     * 仅可传入叶子类目
     * @param categoryId
     * @return
     */
    public List<SpuDO> getSpuTitleByCategoryId(Long categoryId);
 
    /**
     * 增加Spu累计销量
     * @param spuId
     * @param delta
     * @return
     */
    public Integer incSales(@Param("spuId") Long spuId, @Param("delta") Integer delta);
 
    public List<SpuDO> getSpuTitleAll();
 
}