|
@@ -7,6 +7,7 @@ import com.qmth.boot.api.constant.ApiConstant;
|
|
|
import com.qmth.distributed.print.business.bean.result.EditResult;
|
|
|
import com.qmth.distributed.print.business.entity.TBTask;
|
|
|
import com.qmth.distributed.print.business.enums.TaskTypeEnum;
|
|
|
+import com.qmth.distributed.print.business.service.CommonService;
|
|
|
import com.qmth.distributed.print.business.service.ExamDetailService;
|
|
|
import com.qmth.distributed.print.business.service.TBTaskService;
|
|
|
import com.qmth.distributed.print.business.templete.execute.AsyncExaminationExportTemplateService;
|
|
@@ -26,6 +27,7 @@ import javax.annotation.Resource;
|
|
|
import java.io.IOException;
|
|
|
import java.util.Map;
|
|
|
import java.util.Objects;
|
|
|
+import java.util.Set;
|
|
|
|
|
|
/**
|
|
|
* <p>
|
|
@@ -48,6 +50,8 @@ public class ExamDetailController {
|
|
|
private AsyncExaminationExportTemplateService asyncExaminationExportTemplateService;
|
|
|
@Resource
|
|
|
private ExamDetailService examDetailService;
|
|
|
+ @Resource
|
|
|
+ private CommonService commonService;
|
|
|
|
|
|
@ApiOperation(value = "异步考务数据批量导入接口")
|
|
|
@RequestMapping(value = "/data_import", method = RequestMethod.POST)
|
|
@@ -73,8 +77,9 @@ public class ExamDetailController {
|
|
|
@ApiParam(value = "分页数", required = true) @RequestParam int pageSize) {
|
|
|
|
|
|
Long schoolId = Long.valueOf(ServletUtil.getRequestHeaderSchoolId().toString());
|
|
|
+ Set<Long> orgIds = commonService.listSubOrgIds(null);
|
|
|
return ResultUtil.ok(examDetailService.findExaminationBriefPage(schoolId,
|
|
|
- SystemConstant.convertIdToLong(printPlanId), courseCode, paperNumber, examPlace, examRoom, packageCode, pageNumber, pageSize));
|
|
|
+ SystemConstant.convertIdToLong(printPlanId), courseCode, paperNumber, examPlace, examRoom, packageCode, pageNumber, pageSize,orgIds));
|
|
|
}
|
|
|
|
|
|
@ApiOperation(value = "考务数据导入-汇总数据查询")
|
|
@@ -88,8 +93,9 @@ public class ExamDetailController {
|
|
|
@ApiParam(value = "卷袋号") @RequestParam(required = false) String packageCode) {
|
|
|
|
|
|
Long schoolId = Long.valueOf(ServletUtil.getRequestHeaderSchoolId().toString());
|
|
|
+ Set<Long> orgIds = commonService.listSubOrgIds(null);
|
|
|
return ResultUtil.ok(examDetailService.findSummarizedData(schoolId,
|
|
|
- SystemConstant.convertIdToLong(printPlanId), courseCode, paperNumber, examPlace, examRoom, packageCode));
|
|
|
+ SystemConstant.convertIdToLong(printPlanId), courseCode, paperNumber, examPlace, examRoom, packageCode,orgIds));
|
|
|
}
|
|
|
|
|
|
@ApiOperation(value = "考务数据导入-查看明细")
|
|
@@ -150,6 +156,7 @@ public class ExamDetailController {
|
|
|
@ApiParam(value = "考点") @RequestParam(required = false) String examPlace,
|
|
|
@ApiParam(value = "考场") @RequestParam(required = false) String examRoom,
|
|
|
@ApiParam(value = "卷袋号") @RequestParam(required = false) String packageCode) {
|
|
|
+ Set<Long> orgIds = commonService.listSubOrgIds(null);
|
|
|
Map<String, Object> map = tbTaskService.saveTask(TaskTypeEnum.EXAMINATION_EXPORT);
|
|
|
map.put("printPlanId",printPlanId);
|
|
|
map.put("courseCode",courseCode);
|
|
@@ -157,6 +164,7 @@ public class ExamDetailController {
|
|
|
map.put("examPlace",examPlace);
|
|
|
map.put("examRoom",examRoom);
|
|
|
map.put("packageCode",packageCode);
|
|
|
+ map.put("orgIds",orgIds);
|
|
|
asyncExaminationExportTemplateService
|
|
|
.exportTask(map);
|
|
|
TBTask tbTask = Objects.nonNull(map.get(SystemConstant.TASK)) ? (TBTask) map.get(SystemConstant.TASK) : null;
|