|
@@ -127,11 +127,11 @@ public class ExamDetailServiceImpl extends ServiceImpl<ExamDetailMapper, ExamDet
|
|
|
}
|
|
|
|
|
|
@Override
|
|
|
- public IPage<PrintTaskDto> listPrintTask(Long printPlanId, String status, String courseCode, String paperNumber, String examPlace, String examRoom, Long examStartTime, Long examEndTime, Long printStartTime, Long printEndTime, Long printHouseId, Integer pageNumber, Integer pageSize) {
|
|
|
+ public IPage<PrintTaskDto> listPrintTask(Long semesterId,Long examId, Long printPlanId, String status, String courseCode, String paperNumber, String examPlace, String examRoom, Long examStartTime, Long examEndTime, Long printStartTime, Long printEndTime, Long printHouseId, Integer pageNumber, Integer pageSize) {
|
|
|
Long schoolId = Long.valueOf(ServletUtil.getRequestHeaderSchoolId().toString());
|
|
|
Set<Long> orgIds = teachcloudCommonService.listSubOrgIds(null);
|
|
|
Page<PrintTaskDto> page = new Page<>(pageNumber, pageSize);
|
|
|
- return this.baseMapper.listPrintTask(page, schoolId, printPlanId, status, courseCode, paperNumber, examPlace, examRoom, examStartTime, examEndTime, printStartTime, printEndTime, printHouseId, orgIds);
|
|
|
+ return this.baseMapper.listPrintTask(page, schoolId,semesterId,examId, printPlanId, status, courseCode, paperNumber, examPlace, examRoom, examStartTime, examEndTime, printStartTime, printEndTime, printHouseId, orgIds);
|
|
|
}
|
|
|
|
|
|
@Override
|
|
@@ -246,8 +246,8 @@ public class ExamDetailServiceImpl extends ServiceImpl<ExamDetailMapper, ExamDet
|
|
|
|
|
|
@Transactional(rollbackFor = Exception.class)
|
|
|
@Override
|
|
|
- public IPage<ExaminationResult> findExaminationBriefPage(Long schoolId, List<Long> printPlanIdList, String courseCode, String paperNumber, String examPlace, String examRoom, String packageCode, Long startDate, Long endDate, int pageNumber, int pageSize, Set<Long> orgIds) {
|
|
|
- IPage<ExaminationResult> page = examDetailMapper.findBriefPage(new Page<>(pageNumber, pageSize), schoolId, printPlanIdList, courseCode, paperNumber, examPlace, examRoom, packageCode, startDate, endDate, orgIds);
|
|
|
+ public IPage<ExaminationResult> findExaminationBriefPage(Long schoolId, Long semesterId, Long examId, List<Long> printPlanIdList, String courseCode, String paperNumber, String examPlace, String examRoom, String packageCode, Long startDate, Long endDate, int pageNumber, int pageSize, Set<Long> orgIds) {
|
|
|
+ IPage<ExaminationResult> page = examDetailMapper.findBriefPage(new Page<>(pageNumber, pageSize), schoolId, semesterId, examId, printPlanIdList, courseCode, paperNumber, examPlace, examRoom, packageCode, startDate, endDate, orgIds);
|
|
|
List<ExaminationResult> list = page.getRecords();
|
|
|
for (ExaminationResult examinationResult : list) {
|
|
|
String examDetailCourseIds = examinationResult.getExamDetailCourseIds();
|
|
@@ -287,8 +287,8 @@ public class ExamDetailServiceImpl extends ServiceImpl<ExamDetailMapper, ExamDet
|
|
|
|
|
|
@Transactional(rollbackFor = Exception.class)
|
|
|
@Override
|
|
|
- public SummarizedDataResult findSummarizedData(Long schoolId, List<Long> printPlanIdList, String courseCode, String paperNumber, String examPlace, String examRoom, String packageCode, Long startDate, Long endDate, Set<Long> orgIds) {
|
|
|
- IPage<ExaminationResult> page = this.findExaminationBriefPage(schoolId, printPlanIdList, courseCode, paperNumber, examPlace, examRoom, packageCode, startDate, endDate, SystemConstant.PAGE_NUMBER, SystemConstant.PAGE_SIZE, orgIds);
|
|
|
+ public SummarizedDataResult findSummarizedData(Long schoolId, Long semesterId, Long examId, List<Long> printPlanIdList, String courseCode, String paperNumber, String examPlace, String examRoom, String packageCode, Long startDate, Long endDate, Set<Long> orgIds) {
|
|
|
+ IPage<ExaminationResult> page = this.findExaminationBriefPage(schoolId, semesterId, examId, printPlanIdList, courseCode, paperNumber, examPlace, examRoom, packageCode, startDate, endDate, SystemConstant.PAGE_NUMBER, SystemConstant.PAGE_SIZE, orgIds);
|
|
|
List<ExaminationResult> list = page.getRecords();
|
|
|
int totalSubjects = 0;
|
|
|
for (ExaminationResult examinationResult : list) {
|
|
@@ -304,9 +304,9 @@ public class ExamDetailServiceImpl extends ServiceImpl<ExamDetailMapper, ExamDet
|
|
|
|
|
|
@Transactional(rollbackFor = Exception.class)
|
|
|
@Override
|
|
|
- public IPage<ExaminationDetailResult> findExaminationDetail(Long schoolId, List<Long> printPlanIdList, String courseCode, String paperNumber, String examPlace, String examRoom, String studentParams, Long startDate, Long endDate, int pageNumber, int pageSize) {
|
|
|
+ public IPage<ExaminationDetailResult> findExaminationDetail(Long schoolId,Long semesterId,Long examId, List<Long> printPlanIdList, String courseCode, String paperNumber, String examPlace, String examRoom, String studentParams, Long startDate, Long endDate, int pageNumber, int pageSize) {
|
|
|
Set<Long> orgIds = teachcloudCommonService.listSubOrgIds(null);
|
|
|
- return examDetailMapper.findDetailPage(new Page<>(pageNumber, pageSize), schoolId, printPlanIdList, courseCode, paperNumber, examPlace, examRoom, SystemConstant.translateSpecificSign(studentParams), startDate, endDate, orgIds);
|
|
|
+ return examDetailMapper.findDetailPage(new Page<>(pageNumber, pageSize), schoolId,semesterId,examId, printPlanIdList, courseCode, paperNumber, examPlace, examRoom, SystemConstant.translateSpecificSign(studentParams), startDate, endDate, orgIds);
|
|
|
}
|
|
|
|
|
|
@Transactional(rollbackFor = Exception.class)
|
|
@@ -676,6 +676,14 @@ public class ExamDetailServiceImpl extends ServiceImpl<ExamDetailMapper, ExamDet
|
|
|
@Transactional(rollbackFor = Exception.class)
|
|
|
@Override
|
|
|
public List<ExaminationExportDto> findExaminationExportDtoDatasource(Map<String, Object> map) {
|
|
|
+ Long semesterId = null;
|
|
|
+ if (map.get("semesterId") != null) {
|
|
|
+ semesterId = Long.valueOf(String.valueOf(map.get("semesterId")));
|
|
|
+ }
|
|
|
+ Long examId = null;
|
|
|
+ if (map.get("examId") != null) {
|
|
|
+ examId = Long.valueOf(String.valueOf(map.get("examId")));
|
|
|
+ }
|
|
|
List<Long> printPlanIdList = null;
|
|
|
if (map.get("printPlanIdList") != null) {
|
|
|
printPlanIdList = (List<Long>) map.get("printPlanIdList");
|
|
@@ -716,7 +724,7 @@ public class ExamDetailServiceImpl extends ServiceImpl<ExamDetailMapper, ExamDet
|
|
|
Long userId = tbTask.getCreateId();
|
|
|
Long schoolId = tbTask.getSchoolId();
|
|
|
|
|
|
- List<ExaminationResult> examinationResultList = this.findExaminationBriefPage(schoolId,
|
|
|
+ List<ExaminationResult> examinationResultList = this.findExaminationBriefPage(schoolId,semesterId,examId,
|
|
|
printPlanIdList, courseCode, paperNumber, examPlace, examRoom, packageCode, startDate, endDate,
|
|
|
SystemConstant.PAGE_NUMBER, SystemConstant.PAGE_SIZE, orgIds).getRecords();
|
|
|
int index = 0;
|
|
@@ -725,6 +733,8 @@ public class ExamDetailServiceImpl extends ServiceImpl<ExamDetailMapper, ExamDet
|
|
|
index++;
|
|
|
ExaminationExportDto examinationExportDto = new ExaminationExportDto();
|
|
|
examinationExportDto.setIndex((long) index);
|
|
|
+ examinationExportDto.setExamName(examinationResult.getExamName());
|
|
|
+ examinationExportDto.setSemesterName(examinationResult.getSemesterName());
|
|
|
examinationExportDto.setPrintPlanName(examinationResult.getPrintPlanName());
|
|
|
examinationExportDto.setExamDate(examinationResult.getExamDate());
|
|
|
examinationExportDto.setExamTime(examinationResult.getExamTime());
|
|
@@ -864,7 +874,7 @@ public class ExamDetailServiceImpl extends ServiceImpl<ExamDetailMapper, ExamDet
|
|
|
}
|
|
|
// 准备删除的考务-场次表id
|
|
|
LambdaQueryWrapper<ExamDetail> examDetailQueryWrapper = new QueryWrapper<ExamDetail>().lambda().eq(ExamDetail::getPrintPlanId, printPlanId);
|
|
|
- if (Objects.nonNull(source)){
|
|
|
+ if (Objects.nonNull(source)) {
|
|
|
examDetailQueryWrapper.eq(ExamDetail::getExamDataSource, source);
|
|
|
}
|
|
|
List<Long> examDetailIds = this.list(examDetailQueryWrapper).stream().map(ExamDetail::getId).collect(Collectors.toList());
|