jyy
2021-03-18 b4990fac3b5cd0a936369dc51f8b3593b6478730
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
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
package com.matrix.system.shopXcx.dao;
 
import org.apache.ibatis.annotations.Param;
 
import java.util.List;
import java.util.Map;
import java.util.Set;
 
import com.matrix.core.pojo.PaginationVO;
import com.matrix.system.shopXcx.bean.ShopProduct;
 
/**
 * @description 产品表
 * @author jyy
 * @date 2019-06-10 10:58
 */
public interface ShopProductDao{
 
    public int insert(@Param("item") ShopProduct shopProduct);
       
       public int batchInsert(@Param("list") List<ShopProduct> shopProductList);
       
    public int updateByMap(Map<String, Object> modifyMap);
    
    public int updateByModel(@Param("record") ShopProduct shopProduct);
    
    public int deleteByIds(@Param("list") List<String> list);
    
    public int deleteById(Integer id);
 
    public int deleteByModel(@Param("record") ShopProduct shopProduct);
    
    public List<ShopProduct> selectInPage(@Param("record") ShopProduct shopProduct, @Param("pageVo") PaginationVO pageVo);
 
    public List<ShopProduct> selectByModel(@Param("record") ShopProduct shopProduct);
    
    public int selectTotalRecord(@Param("record") ShopProduct shopProduct);
    
    public ShopProduct  selectById(Integer id);
    
    public ShopProduct  selectForUpdate(Integer id);
 
    public int updateByIds(@Param("list") List<String> list,@Param("record") ShopProduct shopProduct);
 
    public List<String> selectBrands(@Param("record") ShopProduct shopProduct);
 
    public List<ShopProduct> selectByModelWx(@Param("record") ShopProduct shopProduct);
 
    /**
     * 根据id集合查询商品列表
     * @param ids
     * @return
     */
    List<ShopProduct> selectByIds(@Param("ids") List<Integer> ids);
 
    List<String> selectProductNameByIds(@Param("ids") List<Integer> ids);
 
    List<ShopProduct> selectProductByAttrid(@Param("attrId") String attrId,@Param("shopId") Long shopId);
 
 
    List<ShopProduct> selectProductByIds(@Param("productIds")String productIds,@Param("shopId") Long shopId);
 
    int removeProductCouponLable(Integer couponId);
}