|
@@ -4,9 +4,10 @@ import com.baomidou.mybatisplus.core.metadata.IPage;
|
|
import com.qmth.boot.api.annotation.Aac;
|
|
import com.qmth.boot.api.annotation.Aac;
|
|
import com.qmth.boot.api.annotation.BOOL;
|
|
import com.qmth.boot.api.annotation.BOOL;
|
|
import com.qmth.boot.api.constant.ApiConstant;
|
|
import com.qmth.boot.api.constant.ApiConstant;
|
|
|
|
+import com.qmth.distributed.print.business.bean.dto.ClientExamStudentDto;
|
|
import com.qmth.distributed.print.business.bean.dto.ClientExamTaskDto;
|
|
import com.qmth.distributed.print.business.bean.dto.ClientExamTaskDto;
|
|
import com.qmth.distributed.print.business.entity.SysUser;
|
|
import com.qmth.distributed.print.business.entity.SysUser;
|
|
-import com.qmth.distributed.print.business.service.ExamTaskService;
|
|
|
|
|
|
+import com.qmth.distributed.print.business.service.*;
|
|
import com.qmth.distributed.print.common.util.Result;
|
|
import com.qmth.distributed.print.common.util.Result;
|
|
import com.qmth.distributed.print.common.util.ResultUtil;
|
|
import com.qmth.distributed.print.common.util.ResultUtil;
|
|
import io.swagger.annotations.Api;
|
|
import io.swagger.annotations.Api;
|
|
@@ -14,6 +15,9 @@ import io.swagger.annotations.ApiOperation;
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
import org.springframework.web.bind.annotation.*;
|
|
import org.springframework.web.bind.annotation.*;
|
|
|
|
|
|
|
|
+import java.util.List;
|
|
|
|
+import java.util.Map;
|
|
|
|
+
|
|
/**
|
|
/**
|
|
* @Date: 2021/4/19.
|
|
* @Date: 2021/4/19.
|
|
*/
|
|
*/
|
|
@@ -24,8 +28,7 @@ import org.springframework.web.bind.annotation.*;
|
|
public class ClientController {
|
|
public class ClientController {
|
|
|
|
|
|
@Autowired
|
|
@Autowired
|
|
- private ExamTaskService examTaskService;
|
|
|
|
-
|
|
|
|
|
|
+ private ClientService clientService;
|
|
|
|
|
|
/**
|
|
/**
|
|
* 登录
|
|
* 登录
|
|
@@ -67,7 +70,7 @@ public class ClientController {
|
|
@RequestParam(value = "isPass", required = false) Boolean isPass,
|
|
@RequestParam(value = "isPass", required = false) Boolean isPass,
|
|
@RequestParam("pageNumber") Integer pageNumber,
|
|
@RequestParam("pageNumber") Integer pageNumber,
|
|
@RequestParam("pageSize") Integer pageSize) {
|
|
@RequestParam("pageSize") Integer pageSize) {
|
|
- IPage<ClientExamTaskDto> examTasks = examTaskService.listTryTask(schoolId, machineCode, orgId, printPlanId, courseCode, paperNumber, isTry, isPass, pageNumber, pageSize);
|
|
|
|
|
|
+ IPage<ClientExamTaskDto> examTasks = clientService.listTryTask(schoolId, machineCode, orgId, printPlanId, courseCode, paperNumber, isTry, isPass, pageNumber, pageSize);
|
|
return ResultUtil.ok(examTasks);
|
|
return ResultUtil.ok(examTasks);
|
|
}
|
|
}
|
|
|
|
|
|
@@ -82,8 +85,8 @@ public class ClientController {
|
|
@RequestMapping(value = "/paper_try/print", method = RequestMethod.POST)
|
|
@RequestMapping(value = "/paper_try/print", method = RequestMethod.POST)
|
|
public Result paperTryPrint(@RequestParam("schoolId") Long schoolId,
|
|
public Result paperTryPrint(@RequestParam("schoolId") Long schoolId,
|
|
@RequestParam("examTaskId") Long examTaskId) {
|
|
@RequestParam("examTaskId") Long examTaskId) {
|
|
-
|
|
|
|
- return null;
|
|
|
|
|
|
+ String url = clientService.getUrl(schoolId, examTaskId);
|
|
|
|
+ return ResultUtil.ok(url);
|
|
}
|
|
}
|
|
|
|
|
|
/**
|
|
/**
|
|
@@ -93,8 +96,7 @@ public class ClientController {
|
|
* @param examTaskId
|
|
* @param examTaskId
|
|
* @param machineCode
|
|
* @param machineCode
|
|
* @param isPass
|
|
* @param isPass
|
|
- * @param courseCode
|
|
|
|
- * @param paperNumber
|
|
|
|
|
|
+ * @param userId
|
|
* @return
|
|
* @return
|
|
*/
|
|
*/
|
|
@ApiOperation(value = "试卷打样-标记合格状态")
|
|
@ApiOperation(value = "试卷打样-标记合格状态")
|
|
@@ -103,10 +105,9 @@ public class ClientController {
|
|
@RequestParam("examTaskId") Long examTaskId,
|
|
@RequestParam("examTaskId") Long examTaskId,
|
|
@RequestParam("machineCode") String machineCode,
|
|
@RequestParam("machineCode") String machineCode,
|
|
@RequestParam("isPass") Boolean isPass,
|
|
@RequestParam("isPass") Boolean isPass,
|
|
- @RequestParam("courseCode") String courseCode,
|
|
|
|
- @RequestParam("paperNumber") String paperNumber) {
|
|
|
|
-
|
|
|
|
- return null;
|
|
|
|
|
|
+ @RequestParam("userId") Long userId) {
|
|
|
|
+ Boolean isSuccess = clientService.tagPass(schoolId, examTaskId, machineCode, isPass, userId);
|
|
|
|
+ return ResultUtil.ok(isSuccess);
|
|
}
|
|
}
|
|
|
|
|
|
/**
|
|
/**
|
|
@@ -272,7 +273,6 @@ public class ClientController {
|
|
* 印刷管理-更新打印进度
|
|
* 印刷管理-更新打印进度
|
|
*
|
|
*
|
|
* @param schoolId
|
|
* @param schoolId
|
|
- * @param orgId
|
|
|
|
* @param examDetailId
|
|
* @param examDetailId
|
|
* @param printProgress
|
|
* @param printProgress
|
|
* @return
|
|
* @return
|
|
@@ -280,18 +280,16 @@ public class ClientController {
|
|
@ApiOperation(value = "印刷管理-更新打印进度")
|
|
@ApiOperation(value = "印刷管理-更新打印进度")
|
|
@RequestMapping(value = "/print/update_progress", method = RequestMethod.POST)
|
|
@RequestMapping(value = "/print/update_progress", method = RequestMethod.POST)
|
|
public Result updateProgress(@RequestParam("schoolId") Long schoolId,
|
|
public Result updateProgress(@RequestParam("schoolId") Long schoolId,
|
|
- @RequestParam("orgId") Long orgId,
|
|
|
|
@RequestParam("examDetailId") Long examDetailId,
|
|
@RequestParam("examDetailId") Long examDetailId,
|
|
@RequestParam("printProgress") Integer printProgress) {
|
|
@RequestParam("printProgress") Integer printProgress) {
|
|
-
|
|
|
|
- return null;
|
|
|
|
|
|
+ Boolean isSuccess = clientService.updatePrintProgress(schoolId, examDetailId, printProgress);
|
|
|
|
+ return ResultUtil.ok(isSuccess);
|
|
}
|
|
}
|
|
|
|
|
|
/**
|
|
/**
|
|
* 重打-查询考生列表
|
|
* 重打-查询考生列表
|
|
*
|
|
*
|
|
* @param schoolId
|
|
* @param schoolId
|
|
- * @param orgId
|
|
|
|
* @param examDetailId
|
|
* @param examDetailId
|
|
* @param ticketNumber
|
|
* @param ticketNumber
|
|
* @param studentName
|
|
* @param studentName
|
|
@@ -301,20 +299,20 @@ public class ClientController {
|
|
@ApiOperation(value = "重打-查询考生列表")
|
|
@ApiOperation(value = "重打-查询考生列表")
|
|
@RequestMapping(value = "/print/list_student", method = RequestMethod.POST)
|
|
@RequestMapping(value = "/print/list_student", method = RequestMethod.POST)
|
|
public Result listStudent(@RequestParam("schoolId") Long schoolId,
|
|
public Result listStudent(@RequestParam("schoolId") Long schoolId,
|
|
- @RequestParam("orgId") Long orgId,
|
|
|
|
@RequestParam("examDetailId") Long examDetailId,
|
|
@RequestParam("examDetailId") Long examDetailId,
|
|
@RequestParam(value = "ticketNumber", required = false) String ticketNumber,
|
|
@RequestParam(value = "ticketNumber", required = false) String ticketNumber,
|
|
@RequestParam(value = "studentName", required = false) String studentName,
|
|
@RequestParam(value = "studentName", required = false) String studentName,
|
|
- @RequestParam(value = "courseCode", required = false) String courseCode) {
|
|
|
|
-
|
|
|
|
- return null;
|
|
|
|
|
|
+ @RequestParam(value = "courseCode", required = false) String courseCode,
|
|
|
|
+ @RequestParam("pageNumber") Integer pageNumber,
|
|
|
|
+ @RequestParam("pageSize") Integer pageSize) {
|
|
|
|
+ IPage<ClientExamStudentDto> examStudentDtoIPage = clientService.listStudent(schoolId, examDetailId, ticketNumber, studentName, courseCode, pageNumber, pageSize);
|
|
|
|
+ return ResultUtil.ok(examStudentDtoIPage);
|
|
}
|
|
}
|
|
|
|
|
|
/**
|
|
/**
|
|
* 重打-内容查询
|
|
* 重打-内容查询
|
|
*
|
|
*
|
|
* @param schoolId
|
|
* @param schoolId
|
|
- * @param orgId
|
|
|
|
* @param examDetailId
|
|
* @param examDetailId
|
|
* @param ticketNumber
|
|
* @param ticketNumber
|
|
* @param type
|
|
* @param type
|
|
@@ -323,11 +321,10 @@ public class ClientController {
|
|
@ApiOperation(value = "重打-内容查询")
|
|
@ApiOperation(value = "重打-内容查询")
|
|
@RequestMapping(value = "/print/get_reprint_data", method = RequestMethod.POST)
|
|
@RequestMapping(value = "/print/get_reprint_data", method = RequestMethod.POST)
|
|
public Result getReprintData(@RequestParam("schoolId") Long schoolId,
|
|
public Result getReprintData(@RequestParam("schoolId") Long schoolId,
|
|
- @RequestParam("orgId") Long orgId,
|
|
|
|
@RequestParam("examDetailId") Long examDetailId,
|
|
@RequestParam("examDetailId") Long examDetailId,
|
|
@RequestParam("ticketNumber") String ticketNumber,
|
|
@RequestParam("ticketNumber") String ticketNumber,
|
|
@RequestParam("type") String type) {
|
|
@RequestParam("type") String type) {
|
|
-
|
|
|
|
- return null;
|
|
|
|
|
|
+ Map<String, Object> map = clientService.getReprintData(schoolId, examDetailId, ticketNumber, type);
|
|
|
|
+ return ResultUtil.ok(map);
|
|
}
|
|
}
|
|
}
|
|
}
|