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, @Param("source")Integer source,
|
@Param("notBackSuVip")boolean notBackSuVip);
|
|
/**
|
* 根据UID或者设备号获取浏览记录条数
|
*
|
* @param uid
|
* @param device
|
* @return
|
*/
|
Long selectCountByDeviceOrUid(@Param("uid") Long uid, @Param("device") String device,
|
@Param("source")Integer source, @Param("notBackSuVip")boolean notBackSuVip);
|
|
/**
|
* 根据设备或用户ID删除
|
*
|
* @param uid
|
* @param device
|
* @return
|
*/
|
List<ScanHistoryV2> listDeviceOrUid(@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") String goodsId);
|
|
|
/**
|
* 根据简版商品id查询
|
* @param uid
|
* @param device
|
* @param commonId
|
* @return
|
*/
|
List<ScanHistoryV2> getByCommonGoodsId(@Param("uid") Long uid, @Param("device") String device, @Param("commonId")Long commonId);
|
}
|