| | |
| | | package com.yeshi.fanli.dao.mybatis.activity; |
| | | |
| | | import java.util.List; |
| | | |
| | | import org.apache.ibatis.annotations.Param; |
| | | |
| | | import com.yeshi.fanli.entity.bus.activity.RecommendActivity; |
| | | |
| | | public interface RecommendActivityMapper { |
| | | |
| | | int deleteByPrimaryKey(Long id); |
| | | |
| | | int batchDeleteByPrimaryKey(long[] ids); |
| | | |
| | | int insert(RecommendActivity record); |
| | | |
| | | int insertSelective(RecommendActivity record); |
| | | |
| | | RecommendActivity selectByPrimaryKey(Long id); |
| | | |
| | | int updateByPrimaryKeySelective(RecommendActivity record); |
| | | |
| | | int updateByPrimaryKey(RecommendActivity record); |
| | | |
| | | List<RecommendActivity> getRecommendActivityList(@Param("start") long start, @Param("count") int count); |
| | | |
| | | long getRecommendActivityCount(@Param("title") String title); |
| | | |
| | | long getRecommendActivityEffectiveCount(); |
| | | |
| | | List<RecommendActivity> getRecommendActivityListByType(@Param("type") int type, @Param("start") long start, |
| | | @Param("count") int count); |
| | | |
| | | long getRecommendActivityCountByType(@Param("type") int type); |
| | | |
| | | List<RecommendActivity> queryRecommendActivityList(@Param("title") String title, @Param("start") long start, |
| | | @Param("count") int count); |
| | | |
| | | int addShareCount(@Param("id") Long id, @Param("count") int count); |
| | | |
| | | package com.yeshi.fanli.dao.mybatis.activity;
|
| | |
|
| | | import java.util.List;
|
| | |
|
| | | import org.apache.ibatis.annotations.Param;
|
| | |
|
| | | import com.yeshi.fanli.dao.BaseMapper;
|
| | | import com.yeshi.fanli.entity.bus.activity.RecommendActivity;
|
| | |
|
| | | public interface RecommendActivityMapper extends BaseMapper<RecommendActivity> {
|
| | |
|
| | | int batchDeleteByPrimaryKey(long[] ids);
|
| | |
|
| | | List<RecommendActivity> getRecommendActivityList(@Param("start") long start, @Param("count") int count);
|
| | |
|
| | | long getRecommendActivityCount(@Param("title") String title);
|
| | | |
| | | long getRecommendActivityEffectiveCount();
|
| | |
|
| | | List<RecommendActivity> getRecommendActivityListByType(@Param("type") int type, @Param("start") long start,
|
| | | @Param("count") int count);
|
| | |
|
| | | long getRecommendActivityCountByType(@Param("type") int type);
|
| | |
|
| | | List<RecommendActivity> queryRecommendActivityList(@Param("title") String title, @Param("start") long start,
|
| | | @Param("count") int count);
|
| | |
|
| | | int addShareCount(@Param("id") Long id, @Param("count") int count);
|
| | | |
| | | /**
|
| | | * 查询待发布的动态
|
| | | * @return
|
| | | */
|
| | | List<RecommendActivity> getNeedPublish();
|
| | |
|
| | | } |