|
@@ -8,9 +8,7 @@ import com.qmth.boot.api.constant.ApiConstant;
|
|
|
import com.qmth.distributed.print.business.bean.dto.*;
|
|
|
import com.qmth.distributed.print.business.bean.params.ClientLoginParam;
|
|
|
import com.qmth.distributed.print.business.service.ClientService;
|
|
|
-import com.qmth.teachcloud.common.bean.auth.AuthBean;
|
|
|
import com.qmth.teachcloud.common.bean.result.LoginResult;
|
|
|
-import com.qmth.teachcloud.common.contant.SystemConstant;
|
|
|
import com.qmth.teachcloud.common.entity.BasicSchool;
|
|
|
import com.qmth.teachcloud.common.entity.SysUser;
|
|
|
import com.qmth.teachcloud.common.enums.AppSourceEnum;
|
|
@@ -23,20 +21,15 @@ import com.qmth.teachcloud.common.util.ResultUtil;
|
|
|
import io.swagger.annotations.*;
|
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
|
import org.springframework.validation.BindingResult;
|
|
|
-import org.springframework.validation.annotation.Validated;
|
|
|
import org.springframework.web.bind.annotation.*;
|
|
|
|
|
|
import javax.annotation.Resource;
|
|
|
import javax.servlet.http.HttpServletResponse;
|
|
|
import javax.validation.Valid;
|
|
|
-import javax.validation.constraints.Max;
|
|
|
-import javax.validation.constraints.Min;
|
|
|
import java.security.NoSuchAlgorithmException;
|
|
|
import java.util.List;
|
|
|
import java.util.Map;
|
|
|
import java.util.Objects;
|
|
|
-import java.util.Set;
|
|
|
-import java.util.stream.Collectors;
|
|
|
|
|
|
/**
|
|
|
* @Date: 2021/4/19.
|
|
@@ -44,7 +37,7 @@ import java.util.stream.Collectors;
|
|
|
@Api(tags = "客户端Controller")
|
|
|
@RestController
|
|
|
@RequestMapping(ApiConstant.DEFAULT_URI_PREFIX + "/${prefix.url.client}")
|
|
|
-@Validated
|
|
|
+//@Validated
|
|
|
public class ClientController {
|
|
|
|
|
|
@Autowired
|
|
@@ -115,8 +108,8 @@ public class ClientController {
|
|
|
@RequestParam(value = "paperNumber", required = false) String paperNumber,
|
|
|
@RequestParam(value = "isTry", required = false) Boolean isTry,
|
|
|
@RequestParam(value = "isPass", required = false) Boolean isPass,
|
|
|
- @RequestParam @Min(SystemConstant.PAGE_NUMBER_MIN) Integer pageNumber,
|
|
|
- @RequestParam @Min(SystemConstant.PAGE_SIZE_MIN) @Max(SystemConstant.PAGE_SIZE_MAX) Integer pageSize) {
|
|
|
+ @RequestParam Integer pageNumber,
|
|
|
+ @RequestParam Integer pageSize) {
|
|
|
IPage<ClientExamTaskDto> examTasks = clientService.listTryTask(machineCode, orgId, printPlanId, courseCode, paperNumber, isTry, isPass, pageNumber, pageSize);
|
|
|
return ResultUtil.ok(examTasks);
|
|
|
}
|
|
@@ -214,8 +207,8 @@ public class ClientController {
|
|
|
@RequestParam(value = "examEndTime", required = false) Long examEndTime,
|
|
|
@RequestParam(value = "isDownload", required = false) Boolean isDownload,
|
|
|
@RequestParam(value = "validate", required = false) Boolean validate,
|
|
|
- @RequestParam @Min(SystemConstant.PAGE_NUMBER_MIN) Integer pageNumber,
|
|
|
- @RequestParam @Min(SystemConstant.PAGE_SIZE_MIN) @Max(SystemConstant.PAGE_SIZE_MAX) Integer pageSize) {
|
|
|
+ @RequestParam Integer pageNumber,
|
|
|
+ @RequestParam Integer pageSize) {
|
|
|
IPage<ClientPrintTaskDto> printTaskDtoIPage = clientService.listClientPrintTask(machineCode, orgId, printPlanId, status, courseCode, paperNumber, examPlace, examRoom, examStartTime, examEndTime, isDownload, validate, pageNumber, pageSize);
|
|
|
return ResultUtil.ok(printTaskDtoIPage);
|
|
|
}
|
|
@@ -414,8 +407,8 @@ public class ClientController {
|
|
|
@RequestParam(value = "ticketNumber", required = false) String ticketNumber,
|
|
|
@RequestParam(value = "studentName", required = false) String studentName,
|
|
|
@RequestParam(value = "courseCode", required = false) String courseCode,
|
|
|
- @RequestParam @Min(SystemConstant.PAGE_NUMBER_MIN) Integer pageNumber,
|
|
|
- @RequestParam @Min(SystemConstant.PAGE_SIZE_MIN) @Max(SystemConstant.PAGE_SIZE_MAX) Integer pageSize) {
|
|
|
+ @RequestParam Integer pageNumber,
|
|
|
+ @RequestParam Integer pageSize) {
|
|
|
IPage<ClientExamStudentDto> examStudentDtoIPage = clientService.listStudent(examDetailId, ticketNumber, studentName, courseCode, pageNumber, pageSize);
|
|
|
return ResultUtil.ok(examStudentDtoIPage);
|
|
|
}
|
|
@@ -460,8 +453,8 @@ public class ClientController {
|
|
|
@RequestParam(value = "examEndTime", required = false) Long examEndTime,
|
|
|
@RequestParam(value = "courseCode", required = false) String courseCode,
|
|
|
@RequestParam(value = "paperNumber", required = false) String paperNumber,
|
|
|
- @RequestParam @Min(SystemConstant.PAGE_NUMBER_MIN) Integer pageNumber,
|
|
|
- @RequestParam @Min(SystemConstant.PAGE_SIZE_MIN) @Max(SystemConstant.PAGE_SIZE_MAX) Integer pageSize) {
|
|
|
+ @RequestParam Integer pageNumber,
|
|
|
+ @RequestParam Integer pageSize) {
|
|
|
IPage<ClientPrintStatisticsDto> statisticsDtoIPage = clientService.listClientPrintStatistics(orgId, printPlanId, examPlace, examStartTime, examEndTime, courseCode, paperNumber, pageNumber, pageSize);
|
|
|
return ResultUtil.ok(statisticsDtoIPage);
|
|
|
}
|