UserQuestionRelationMapper.java 1.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859
  1. package com.qxgmat.data.relation;
  2. import com.qxgmat.data.dao.entity.UserQuestion;
  3. import com.qxgmat.data.relation.entity.UserRecordStatRelation;
  4. import com.qxgmat.data.relation.entity.UserReportLimitRelation;
  5. import org.apache.ibatis.annotations.Param;
  6. import java.util.Collection;
  7. import java.util.Date;
  8. import java.util.List;
  9. /**
  10. * Created by gaojie on 2017/11/9.
  11. */
  12. public interface UserQuestionRelationMapper {
  13. List<UserQuestion> listExerciseError(
  14. @Param("userId") Number userId,
  15. @Param("keyword") String keyword,
  16. @Param("questionTypes") String[] questionTypes,
  17. @Param("courseModules") String[] courseModules,
  18. @Param("structIds") Integer[] structIds,
  19. @Param("startTime") Date startTime,
  20. @Param("endTime") Date endTime,
  21. String order
  22. );
  23. List<UserQuestion> listExaminationError(
  24. @Param("userId") Number userId,
  25. @Param("keyword") String keyword,
  26. @Param("questionTypes") String[] questionTypes,
  27. @Param("structIds") Integer[] structIds,
  28. @Param("libraryId") Integer libraryId,
  29. @Param("year") String year,
  30. @Param("startTime") Date startTime,
  31. @Param("endTime") Date endTime,
  32. String order
  33. );
  34. List<UserQuestion> listLast(
  35. @Param("userId") Number userId,
  36. @Param("questionIds") Collection questionIds
  37. );
  38. List<UserRecordStatRelation> stat(
  39. @Param("userId") Integer userId,
  40. @Param("startTime") Date startTime,
  41. @Param("endTime") Date endTime
  42. );
  43. List<UserRecordStatRelation> statAvg(
  44. @Param("startTime") Date startTime,
  45. @Param("endTime") Date endTime
  46. );
  47. List<UserReportLimitRelation> statLimit(
  48. @Param("reportId") Integer reportId
  49. );
  50. }