Administrator
2018-10-30 c0c91fbda1ba601c4c8cb6d12fd43dfbe02eea5d
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
package com.yeshi.fanli.dao.mybatis.taobao;
 
import java.util.Date;
import java.util.List;
 
import org.apache.ibatis.annotations.Param;
 
import com.yeshi.fanli.entity.taobao.TaoBaoGoodsBrief;
 
public interface TaoBaoGoodsBriefMapper {
 
    int deleteByPrimaryKey(Long id);
 
    int deleteByAuctionId(Long auctionId);
 
    int insert(TaoBaoGoodsBrief record);
 
    int insertSelective(TaoBaoGoodsBrief record);
 
    TaoBaoGoodsBrief selectByPrimaryKey(Long id);
 
    int updateByPrimaryKeySelective(TaoBaoGoodsBrief record);
 
    int updateByPrimaryKey(TaoBaoGoodsBrief record);
 
    /**
     * 根据auctionId 查询商品信息
     * 
     * @param auctionId
     * @return
     */
    List<TaoBaoGoodsBrief> queryByAuctionId(@Param("auctionId") Long auctionId);
 
    /**
     * 批量插入
     * 
     * @param list
     * @return
     */
    int insertBatch(List<TaoBaoGoodsBrief> list);
 
    /**
     * 根据多个auctionId 查询对应的商品信息
     * 
     * @param list
     * @return
     */
    List<TaoBaoGoodsBrief> queryGoodsByAuctionId(List<Long> list);
 
    /**
     * 批量更新
     * 
     * @param list
     */
    void updateBatchSelective(@Param("list") List<TaoBaoGoodsBrief> list);
 
    /**
     * 获取创建时间在某个时间点之前的商品
     * 
     * @param maxTime
     * @param start
     * @param count
     * @return
     */
    List<TaoBaoGoodsBrief> queryGoodsByMaxCreateTime(@Param("maxTime") Date maxTime, @Param("start") int start,
            @Param("count") int count);
    
    List<TaoBaoGoodsBrief> queryGoodsByMaxUpdateTime(@Param("maxTime") Date maxTime, @Param("start") int start,
            @Param("count") int count);
    
    List<Long> queryCanDeleteGoods(@Param("maxTime") Date maxTime,@Param("start")int start,@Param("count")int count);
    
    Long queryCanDeleteGoodsCount(@Param("maxTime") Date maxTime);
 
}