admin
2020-05-20 98b1a0affd69bbe63223c21fdd2c404e8bedfccb
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
package com.yeshi.fanli.dao.mybatis.brand;
 
import java.util.List;
 
import org.apache.ibatis.annotations.Param;
 
import com.yeshi.fanli.dao.BaseMapper;
import com.yeshi.fanli.entity.brand.BrandInfoRecord;
 
public interface BrandInfoRecordMapper extends BaseMapper<BrandInfoRecord> {
 
    /**
     * 将状态更新为删除状态
     * @param uid
     * @return
     */
    void updateState(@Param("brandId") Long brandId, @Param("uid") Long uid, @Param("device") String device);
    
    
    /**
     *  查询记录
     * @param uid
     * @return
     */
    BrandInfoRecord getRecord(@Param("brandId") Long brandId, @Param("uid") Long uid, @Param("device") String device);
    
    /**
     *  查询历史记录
     * @param uid
     * @return
     */
    List<BrandInfoRecord> listRecord(@Param("start") long start, @Param("count") int count, 
            @Param("uid") Long uid, @Param("device") String device);
    
    long countRecord(@Param("uid") Long uid, @Param("device") String device);
    
}