| | |
| | | package com.yeshi.fanli.dao.mybatis.share; |
| | | |
| | | import java.util.List; |
| | | |
| | | import org.apache.ibatis.annotations.Param; |
| | | |
| | | import com.yeshi.fanli.entity.bus.share.UserShareGoodsRecord; |
| | | |
| | | public interface UserShareGoodsRecordMapper { |
| | | |
| | | int deleteByPrimaryKey(Long id); |
| | | |
| | | int insert(UserShareGoodsRecord record); |
| | | |
| | | int insertSelective(UserShareGoodsRecord record); |
| | | |
| | | UserShareGoodsRecord selectByPrimaryKey(Long id); |
| | | |
| | | int updateByPrimaryKeySelective(UserShareGoodsRecord record); |
| | | |
| | | int updateByPrimaryKey(UserShareGoodsRecord record); |
| | | |
| | | /** |
| | | * 查询用户对应的分享记录 |
| | | * @param start |
| | | * @param count |
| | | * @param uid |
| | | * @return |
| | | */ |
| | | List<UserShareGoodsRecord> listQueryByUid(@Param("start") long start, @Param("count") int count, |
| | | @Param("uid") Long uid, @Param("source") String source); |
| | | |
| | | long countQueryByUid(@Param("uid") Long uid, @Param("source") String source); |
| | | |
| | | /** |
| | | * 统计记录 |
| | | * @param list |
| | | * @return |
| | | */ |
| | | List<UserShareGoodsRecord> listCountRecord(@Param("list") List<Long> list); |
| | | |
| | | /** |
| | | * 统计今日浏览记录 |
| | | * @param list |
| | | * @return |
| | | */ |
| | | List<UserShareGoodsRecord> listCountTodayBrowse(@Param("list") List<Long> list); |
| | | |
| | | package com.yeshi.fanli.dao.mybatis.share;
|
| | |
|
| | | import java.util.List;
|
| | |
|
| | | import org.apache.ibatis.annotations.Param;
|
| | |
|
| | | import com.yeshi.fanli.entity.bus.share.UserShareGoodsRecord;
|
| | |
|
| | | public interface UserShareGoodsRecordMapper {
|
| | |
|
| | | int deleteByPrimaryKey(Long id);
|
| | |
|
| | | int insert(UserShareGoodsRecord record);
|
| | |
|
| | | int insertSelective(UserShareGoodsRecord record);
|
| | |
|
| | | UserShareGoodsRecord selectByPrimaryKey(Long id);
|
| | |
|
| | | int updateByPrimaryKeySelective(UserShareGoodsRecord record);
|
| | |
|
| | | int updateByPrimaryKey(UserShareGoodsRecord record);
|
| | |
|
| | | /**
|
| | | * 查询用户对应的分享记录
|
| | | * |
| | | * @param start
|
| | | * @param count
|
| | | * @param uid
|
| | | * @return
|
| | | */
|
| | | List<UserShareGoodsRecord> listQueryByUid(@Param("start") long start, @Param("count") int count,
|
| | | @Param("uid") Long uid, @Param("source") String source);
|
| | |
|
| | | long countQueryByUid(@Param("uid") Long uid, @Param("source") String source);
|
| | |
|
| | | /**
|
| | | * 统计记录
|
| | | * |
| | | * @param list
|
| | | * @return
|
| | | */
|
| | | List<UserShareGoodsRecord> listCountRecord(@Param("list") List<Long> list);
|
| | |
|
| | | /**
|
| | | * 统计今日浏览记录
|
| | | * |
| | | * @param list
|
| | | * @return
|
| | | */
|
| | | List<UserShareGoodsRecord> listCountTodayBrowse(@Param("list") List<Long> list);
|
| | |
|
| | | } |