| | |
| | |
|
| | | import java.util.List;
|
| | |
|
| | | import com.yeshi.fanli.dto.pdd.PDDGoodsDetail;
|
| | | import com.yeshi.fanli.entity.goods.ScanHistoryV2;
|
| | | import com.yeshi.fanli.entity.jd.JDGoods;
|
| | | import com.yeshi.fanli.entity.taobao.TaoBaoGoodsBrief;
|
| | | import com.yeshi.fanli.exception.goods.CommonGoodsException;
|
| | | import com.yeshi.fanli.exception.goods.ScanHistoryException;
|
| | |
| | | * @param pageSize
|
| | | * @return
|
| | | */
|
| | | public List<ScanHistoryV2> getScanHistoryByDeviceOrUid(Long uid, String device, int page, int pageSize);
|
| | | public List<ScanHistoryV2> getScanHistoryByDeviceOrUid(Long uid, String device, int page, int pageSize, Integer source);
|
| | |
|
| | | /**
|
| | | * 根据设备或者用户ID获取浏览记录数量
|
| | |
| | | * @param device
|
| | | * @return
|
| | | */
|
| | | public long getCountByDeviceOrUid(Long uid, String device);
|
| | | public long getCountByDeviceOrUid(Long uid, String device, Integer source);
|
| | |
|
| | | /**
|
| | | * 根据用户或者设备删除浏览记录
|
| | |
| | | * @param auctionId
|
| | | */
|
| | | public void deleteByAuctionIdAndDeviceOrUid(Long uid, String device, Long auctionId);
|
| | |
|
| | | /**
|
| | | * 添加京东商品足迹记录
|
| | | * @param uid
|
| | | * @param device
|
| | | * @param goods
|
| | | * @throws CommonGoodsException
|
| | | * @throws ScanHistoryException
|
| | | */
|
| | | public void addJDScanHistory(Long uid, String device, JDGoods goods) throws CommonGoodsException, ScanHistoryException;
|
| | |
|
| | | /**
|
| | | * 添加拼多多商品足迹记录
|
| | | * @param uid
|
| | | * @param device
|
| | | * @param pddGoods
|
| | | * @throws CommonGoodsException
|
| | | * @throws ScanHistoryException
|
| | | */
|
| | | public void addPDDScanHistory(Long uid, String device, PDDGoodsDetail pddGoods)
|
| | | throws CommonGoodsException, ScanHistoryException;
|
| | |
|
| | | /**
|
| | | * 根据简版商品ID删除
|
| | | * @param uid
|
| | | * @param device
|
| | | * @param commonId
|
| | | */
|
| | | public void deleteByCommonIdAndDeviceOrUid(Long uid, String device, Long commonId);
|
| | | }
|