CommentRelationMapper.java 890 B

12345678910111213141516171819202122232425262728293031
  1. package com.qxgmat.data.relation;
  2. import com.qxgmat.data.dao.entity.Comment;
  3. import org.apache.ibatis.annotations.Param;
  4. import java.util.Collection;
  5. import java.util.List;
  6. /**
  7. * Created by gaojie on 2017/11/9.
  8. */
  9. public interface CommentRelationMapper {
  10. List<Comment> listWithUser(
  11. @Param("user") Boolean user,
  12. @Param("channel") String channel,
  13. @Param("position") String position,
  14. @Param("userId") Number userId,
  15. @Param("isSpecial") Integer isSpecial,
  16. @Param("isShow") Integer isShow,
  17. @Param("min") Integer min,
  18. @Param("max") Integer max,
  19. String order,
  20. String direction
  21. );
  22. List<Comment> groupByPosition(
  23. @Param("channel") String channel,
  24. @Param("positions") Collection positions,
  25. @Param("top") Integer top
  26. );
  27. }