| | |
| | | package com.yeshi.fanli.dao.mybatis.goods; |
| | | |
| | | import java.util.List; |
| | | |
| | | import org.apache.ibatis.annotations.Param; |
| | | |
| | | import com.yeshi.fanli.dao.BaseMapper; |
| | | import com.yeshi.fanli.entity.goods.ScanHistoryV2; |
| | | |
| | | public interface ScanHistoryV2Mapper extends BaseMapper<ScanHistoryV2> { |
| | | |
| | | /** |
| | | * 根据UID或者设备号获取浏览记录 |
| | | * |
| | | * @param uid |
| | | * @param device |
| | | * @param start |
| | | * @param count |
| | | * @return |
| | | */ |
| | | List<ScanHistoryV2> selectByDeviceOrUid(@Param("uid") Long uid, @Param("device") String device, |
| | | @Param("start") long start, @Param("count") int count); |
| | | |
| | | /** |
| | | * 根据UID或者设备号获取浏览记录条数 |
| | | * |
| | | * @param uid |
| | | * @param device |
| | | * @return |
| | | */ |
| | | Long selectCountByDeviceOrUid(@Param("uid") Long uid, @Param("device") String device); |
| | | |
| | | /** |
| | | * 根据设备或用户ID删除 |
| | | * |
| | | * @param uid |
| | | * @param device |
| | | * @return |
| | | */ |
| | | int deleteByDeviceOrUid(@Param("uid") Long uid, @Param("device") String device); |
| | | |
| | | /** |
| | | * 根据设备或用户ID与商品信息检索 |
| | | * |
| | | * @param uid |
| | | * @param device |
| | | * @param goodsId |
| | | * @param goodsType |
| | | * @return |
| | | */ |
| | | List<ScanHistoryV2> selectByDeviceOrUidAndGoodsIdAndGoodsType(@Param("uid") Long uid, |
| | | @Param("device") String device, @Param("goodsId") long goodsId, @Param("goodsType") int goodsType); |
| | | |
| | | } |