|
@@ -1,13 +1,11 @@
|
|
|
package com.qmth.cqb.paper.web;
|
|
|
|
|
|
|
|
|
-import java.util.HashMap;
|
|
|
-import java.util.Map;
|
|
|
-
|
|
|
import javax.servlet.http.HttpServletRequest;
|
|
|
|
|
|
import io.swagger.annotations.ApiOperation;
|
|
|
|
|
|
+import org.slf4j.Logger;
|
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
|
import org.springframework.http.HttpStatus;
|
|
|
import org.springframework.http.ResponseEntity;
|
|
@@ -19,10 +17,7 @@ import org.springframework.web.bind.annotation.RequestBody;
|
|
|
import org.springframework.web.bind.annotation.RequestMapping;
|
|
|
|
|
|
import cn.com.qmth.examcloud.common.dto.question.PaperDto;
|
|
|
-import cn.com.qmth.examcloud.common.uac.annotation.Uac;
|
|
|
import cn.com.qmth.examcloud.common.uac.entity.AccessUser;
|
|
|
-import cn.com.qmth.examcloud.common.uac.enums.RoleMeta;
|
|
|
-import cn.com.qmth.examcloud.common.uac.enums.UacPolicy;
|
|
|
|
|
|
import com.qmth.cqb.paper.model.ExtractConfig;
|
|
|
import com.qmth.cqb.paper.service.ExtractConfigService;
|
|
@@ -38,6 +33,7 @@ import com.qmth.cqb.paper.service.ExtractConfigService;
|
|
|
@Controller
|
|
|
@RequestMapping("${api_cqb}/")
|
|
|
public class ExtractConfigController {
|
|
|
+ private static final Logger logger = org.slf4j.LoggerFactory.getLogger(ExtractConfigController.class);
|
|
|
@Autowired
|
|
|
private ExtractConfigService extractConfigService;
|
|
|
|
|
@@ -91,6 +87,7 @@ public class ExtractConfigController {
|
|
|
PaperDto paperDto = extractConfigService.extract(exam_id, course_code, group_code);
|
|
|
return new ResponseEntity<PaperDto>(paperDto, HttpStatus.OK);
|
|
|
}catch(Exception e){
|
|
|
+ logger.error("抽卷失败",e);
|
|
|
return new ResponseEntity(HttpStatus.INTERNAL_SERVER_ERROR);
|
|
|
}
|
|
|
}
|