| | |
| | | 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); |
| | | |
| | | 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);
|
| | | |
| | | } |