|
@@ -9,6 +9,7 @@ import java.util.Map;
|
|
|
import javax.servlet.http.HttpServletResponse;
|
|
|
|
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
|
+import org.springframework.web.bind.annotation.GetMapping;
|
|
|
import org.springframework.web.bind.annotation.PostMapping;
|
|
|
import org.springframework.web.bind.annotation.RequestBody;
|
|
|
import org.springframework.web.bind.annotation.RequestMapping;
|
|
@@ -40,7 +41,7 @@ import io.swagger.annotations.ApiParam;
|
|
|
@RestController
|
|
|
@Api(tags = "考生预约明细相关接口")
|
|
|
@RequestMapping(ApiConstant.DEFAULT_URI_PREFIX + "/apply")
|
|
|
-@Aac(strict = false, auth = false)
|
|
|
+@Aac(strict = false, auth = true)
|
|
|
public class StudentApplyController extends BaseController {
|
|
|
|
|
|
@Autowired
|
|
@@ -55,6 +56,9 @@ public class StudentApplyController extends BaseController {
|
|
|
@Autowired
|
|
|
private ExamSiteService examSiteService;
|
|
|
|
|
|
+ // @Autowired
|
|
|
+ // private MaterialGenerateService materialService;
|
|
|
+
|
|
|
@ApiOperation(value = "预约任务列表")
|
|
|
@PostMapping(value = "/task/list")
|
|
|
public List<CategoryVO> listTask() {
|
|
@@ -133,9 +137,18 @@ public class StudentApplyController extends BaseController {
|
|
|
}
|
|
|
|
|
|
@ApiOperation(value = "打印签到表")
|
|
|
- @PostMapping(value = "/std/auto/sign/in/print")
|
|
|
+ @GetMapping(value = "/std/auto/sign/in/print")
|
|
|
public void printSignIn(@ApiParam("教学点ID") @RequestParam Long teachingId) {
|
|
|
// TODO 教学点才能打印
|
|
|
+ // LoginUser user = this.curLoginUser();
|
|
|
+ // if (Role.ADMIN.equals(user.getRole()) && teachingId == null) {
|
|
|
+ // throw new StatusException("请选择教学点");
|
|
|
+ // }
|
|
|
+ // if (Role.TEACHING.equals(user.getRole())) {
|
|
|
+ // teachingId = user.getCategoryId();
|
|
|
+ // }
|
|
|
+ // exportFile("测试.pdf", materialService.generateSignInForm(1l));
|
|
|
+
|
|
|
}
|
|
|
|
|
|
@ApiOperation(value = "自动排考")
|