| | |
| | | * @return |
| | | */ |
| | | List<ScanHistoryV2> selectByDeviceOrUid(@Param("uid") Long uid, @Param("device") String device, |
| | | @Param("start") long start, @Param("count") int count); |
| | | @Param("start") long start, @Param("count") int count, @Param("source")Integer source); |
| | | |
| | | /** |
| | | * 根据UID或者设备号获取浏览记录条数 |
| | |
| | | * @param device |
| | | * @return |
| | | */ |
| | | Long selectCountByDeviceOrUid(@Param("uid") Long uid, @Param("device") String device); |
| | | Long selectCountByDeviceOrUid(@Param("uid") Long uid, @Param("device") String device, @Param("source")Integer source); |
| | | |
| | | /** |
| | | * 根据设备或用户ID删除 |
| | |
| | | * @param device |
| | | * @return |
| | | */ |
| | | int deleteByDeviceOrUid(@Param("uid") Long uid, @Param("device") String device); |
| | | List<ScanHistoryV2> listDeviceOrUid(@Param("uid") Long uid, @Param("device") String device); |
| | | |
| | | /** |
| | | * 根据设备或用户ID与商品信息检索 |
| | |
| | | * @return |
| | | */ |
| | | List<ScanHistoryV2> selectByDeviceOrUidAndGoodsIdAndGoodsType(@Param("uid") Long uid, |
| | | @Param("device") String device, @Param("goodsId") long goodsId, @Param("goodsType") int goodsType); |
| | | @Param("device") String device, @Param("goodsId") long goodsId); |
| | | |
| | | |
| | | /** |
| | | * 根据简版商品id查询 |
| | | * @param uid |
| | | * @param device |
| | | * @param commonId |
| | | * @return |
| | | */ |
| | | List<ScanHistoryV2> getByCommonGoodsId(@Param("uid") Long uid, @Param("device") String device, @Param("commonId")Long commonId); |
| | | } |