ExamStudentService.java 1.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. package cn.com.qmth.print.manage.service;
  2. import cn.com.qmth.print.manage.entity.ExamStudentEntity;
  3. import cn.com.qmth.print.manage.enums.GroupType;
  4. import cn.com.qmth.print.manage.service.query.ExamStudentQuery;
  5. import com.baomidou.mybatisplus.core.metadata.IPage;
  6. import com.baomidou.mybatisplus.extension.service.IService;
  7. import org.springframework.web.bind.annotation.RequestParam;
  8. import org.springframework.web.multipart.MultipartFile;
  9. import javax.servlet.http.HttpServletResponse;
  10. import java.io.IOException;
  11. import java.util.List;
  12. public interface ExamStudentService extends IService<ExamStudentEntity> {
  13. ExamStudentEntity findByExamIdAndExamNumber(Long examId, String examNumber);
  14. Long findSortNoByExamIdAndGroupTypeAndSort(Long examId, GroupType type, String groupName, boolean isAse);
  15. List<ExamStudentEntity> listByExamId(Long examId);
  16. IPage<ExamStudentEntity> pageStudent(ExamStudentQuery query);
  17. Object importStudents(Long examId, MultipartFile file) throws IOException;
  18. /**
  19. * 解析Zip并导入考生
  20. *
  21. * @param examId 考试id
  22. * @return 信息
  23. */
  24. Object analyzeZipAndImportStudents(Long examId, MultipartFile file) throws IOException;
  25. /**
  26. * 考生数据导出
  27. *
  28. * @param response response
  29. * @param examId 考试id
  30. */
  31. void exportExamStudent(HttpServletResponse response, Long examId) throws IOException;
  32. void deleteByExamId(Long examId);
  33. }