|
@@ -13,10 +13,7 @@ import cn.com.qmth.examcloud.core.print.common.utils.Check;
|
|
|
import cn.com.qmth.examcloud.core.print.entity.CoursePaper;
|
|
|
import cn.com.qmth.examcloud.core.print.repository.CoursePaperRepository;
|
|
|
import cn.com.qmth.examcloud.core.print.service.CoursePaperService;
|
|
|
-import cn.com.qmth.examcloud.core.print.service.bean.coursepaper.CoursePaperConvert;
|
|
|
-import cn.com.qmth.examcloud.core.print.service.bean.coursepaper.CoursePaperInfo;
|
|
|
-import cn.com.qmth.examcloud.core.print.service.bean.coursepaper.CoursePaperQuery;
|
|
|
-import cn.com.qmth.examcloud.core.print.service.bean.coursepaper.CoursePaperTotalInfo;
|
|
|
+import cn.com.qmth.examcloud.core.print.service.bean.coursepaper.*;
|
|
|
import org.apache.commons.lang3.StringUtils;
|
|
|
import org.slf4j.Logger;
|
|
|
import org.slf4j.LoggerFactory;
|
|
@@ -48,7 +45,9 @@ public class CoursePaperServiceImpl implements CoursePaperService {
|
|
|
SearchBuilder searches = new SearchBuilder();
|
|
|
searches.eq("orgId", query.getOrgId());
|
|
|
searches.eq("examId", query.getExamId());
|
|
|
- searches.eq("courseId", query.getCourseId());
|
|
|
+ if (query.getCourseId() != null) {
|
|
|
+ searches.eq("courseId", query.getCourseId());
|
|
|
+ }
|
|
|
Specification<CoursePaper> spec = SpecUtils.buildSearchers(CoursePaper.class, searches.build());
|
|
|
List<CoursePaper> list = coursePaperRepository.findAll(spec);
|
|
|
return CoursePaperConvert.ofList(list);
|
|
@@ -73,7 +72,12 @@ public class CoursePaperServiceImpl implements CoursePaperService {
|
|
|
}
|
|
|
|
|
|
@Override
|
|
|
- public void allotCoursePaper(Long orgId, Long examId) {
|
|
|
+ public void allotCoursePaper(CoursePaperForm form) {
|
|
|
+
|
|
|
+ }
|
|
|
+
|
|
|
+ @Override
|
|
|
+ public void allotCoursePapers(Long orgId, Long examId) {
|
|
|
|
|
|
}
|
|
|
|