Helius
2020-12-15 2914588a65371a3ce43f678cde0a26cd8da26611
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
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
package com.matrix.system.hive.dao;
 
import com.matrix.core.pojo.PaginationVO;
import com.matrix.system.hive.bean.ShoppingGoods;
import org.apache.ibatis.annotations.Param;
 
import java.util.List;
 
 
 
/**
 *
 * @date 2016-07-30 09:54
 */
 
 
public interface ShoppingGoodsDao{
 
    public int insert(ShoppingGoods shoppingGoods);
       
    public int update(ShoppingGoods shoppingGoods);
    
    public int update2(Long id);
    
    public int deleteByIds(@Param("list") List<Long> list);
    
    public int deleteById(Long id);
    
    public List<ShoppingGoods> selectInPage(@Param("record") ShoppingGoods shoppingGoods, @Param("pageVo") PaginationVO pageVo);
    
    public List<ShoppingGoods> selectAll(@Param("record") ShoppingGoods shoppingGoods);
 
    public List<ShoppingGoods> selectByModel(@Param("record") ShoppingGoods shoppingGoods);
    
    public List<ShoppingGoods> selectByModel1(@Param("record") ShoppingGoods shoppingGoods);
    
    public int  selectTotalRecord(@Param("record") ShoppingGoods shoppingGoods);
    
    public ShoppingGoods  selectById(Long id);
    /**
     * 查询用户购买某个商品的次数
    * @Title: selectBuyCount 
    * @author:jyy
    * @param goodsId
    * @param vipId
    * @return    
    * int    返回类型 
    * @date 2016年9月22日 上午10:13:23 
    * @throws
     */
    public int selectBuyCount(@Param("goodsId") Long goodsId, @Param("vipId") Long vipId);
    /**
     * 查询除套餐以外的商品
     * @param shoppingGoods
     * @return
     */
    public List<ShoppingGoods> selectInPageNoTaocan(ShoppingGoods shoppingGoods);
    
    /**
     * 查询除套餐以外的商品的数目
     * @param shoppingGoods
     * @return
     */
    public int selectTotalNoTaocan(ShoppingGoods shoppingGoods);
    
    /**
     *    商品自动下架
     */
    public void automaticUpdate();
    /**
     * 数据迁移专用查找返回简单对象
     * @param shoppingGoods
     * @return
     */
    public List<ShoppingGoods> selectByModelData(@Param("record") ShoppingGoods shoppingGoods);
 
    public int  bachUpdate(@Param("list")List<Long> strToCollToLong, @Param("value")String value,@Param("filed")String filed);
 
    public ShoppingGoods findByCode(String code);
 
    /**
     * 获取会员充值商品,全局唯一不可删除
     * @return
     */
    public ShoppingGoods selectVipCzGoods();
}