| | |
| | | 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.TaoBaoShopHistory; |
| | | |
| | | public interface TaoBaoShopHistoryMapper extends BaseMapper<TaoBaoShopHistory> { |
| | | |
| | | |
| | | /** |
| | | * 根据用户id删除 |
| | | * @param uid |
| | | * @return |
| | | */ |
| | | void updateByUid(@Param("shopId") Long shopId, @Param("uid") Long uid); |
| | | |
| | | /** |
| | | * 根据删除 |
| | | * @param sid |
| | | * @param device |
| | | * @return |
| | | */ |
| | | void updateByDevice(@Param("shopId") Long shopId, @Param("device") String device); |
| | | |
| | | |
| | | |
| | | /** |
| | | * 根据用户id查询 |
| | | * @param uid |
| | | * @return |
| | | */ |
| | | TaoBaoShopHistory getByUid(@Param("shopId") Long shopId, @Param("uid") Long uid); |
| | | |
| | | /** |
| | | * 根据设备 |
| | | * @param sid |
| | | * @param device |
| | | * @return |
| | | */ |
| | | TaoBaoShopHistory getByDevice(@Param("shopId") Long shopId, @Param("device") String device); |
| | | |
| | | |
| | | |
| | | /** |
| | | * 根据用户id查询 |
| | | * @param uid |
| | | * @return |
| | | */ |
| | | List<TaoBaoShopHistory> listByUid(@Param("start") long start, @Param("count") int count, @Param("uid") Long uid); |
| | | |
| | | long countByUid(@Param("uid") Long uid); |
| | | |
| | | |
| | | /** |
| | | * 根据用户id查询 |
| | | * @param uid |
| | | * @return |
| | | */ |
| | | List<TaoBaoShopHistory> listByDevice(@Param("start") long start, @Param("count") int count, @Param("device") String device); |
| | | |
| | | long countByDevice(@Param("device") String device); |
| | | |
| | | /** |
| | | * 统计店铺点击数量 |
| | | * @param shopId |
| | | * @return |
| | | */ |
| | | long countByShopId(@Param("shopId") Long shopId); |
| | | 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.TaoBaoShopHistory;
|
| | |
|
| | | public interface TaoBaoShopHistoryMapper extends BaseMapper<TaoBaoShopHistory> {
|
| | | |
| | | |
| | | /**
|
| | | * 根据用户id删除
|
| | | * @param uid
|
| | | * @return
|
| | | */
|
| | | void updateByUid(@Param("shopId") Long shopId, @Param("uid") Long uid);
|
| | | |
| | | /**
|
| | | * 根据删除
|
| | | * @param sid
|
| | | * @param device
|
| | | * @return
|
| | | */
|
| | | void updateByDevice(@Param("shopId") Long shopId, @Param("device") String device);
|
| | | |
| | | |
| | | |
| | | /**
|
| | | * 根据用户id查询
|
| | | * @param uid
|
| | | * @return
|
| | | */
|
| | | TaoBaoShopHistory getByUid(@Param("shopId") Long shopId, @Param("uid") Long uid);
|
| | | |
| | | /**
|
| | | * 根据设备
|
| | | * @param sid
|
| | | * @param device
|
| | | * @return
|
| | | */
|
| | | TaoBaoShopHistory getByDevice(@Param("shopId") Long shopId, @Param("device") String device);
|
| | | |
| | | |
| | | |
| | | /**
|
| | | * 根据用户id查询
|
| | | * @param uid
|
| | | * @return
|
| | | */
|
| | | List<TaoBaoShopHistory> listByUid(@Param("start") long start, @Param("count") int count, @Param("uid") Long uid);
|
| | | |
| | | long countByUid(@Param("uid") Long uid);
|
| | | |
| | | |
| | | /**
|
| | | * 根据用户id查询
|
| | | * @param uid
|
| | | * @return
|
| | | */
|
| | | List<TaoBaoShopHistory> listByDevice(@Param("start") long start, @Param("count") int count, @Param("device") String device);
|
| | | |
| | | long countByDevice(@Param("device") String device);
|
| | | |
| | | /**
|
| | | * 统计店铺点击数量
|
| | | * @param shopId
|
| | | * @return
|
| | | */
|
| | | long countByShopId(@Param("shopId") Long shopId);
|
| | | } |