Browse Source

catch打印

tags/正式版本
王宁 2 years ago
parent
commit
738e44445d

+ 3
- 0
sexam/src/main/java/com/xhkjedu/sexam/controller/exam/EBaseController.java View File

21
 import com.xhkjedu.utils.PageUtil;
21
 import com.xhkjedu.utils.PageUtil;
22
 import com.xhkjedu.vo.PageResult;
22
 import com.xhkjedu.vo.PageResult;
23
 import com.xhkjedu.vo.ResultVo;
23
 import com.xhkjedu.vo.ResultVo;
24
+import lombok.extern.slf4j.Slf4j;
24
 import org.springframework.web.bind.annotation.PostMapping;
25
 import org.springframework.web.bind.annotation.PostMapping;
25
 import org.springframework.web.bind.annotation.RequestBody;
26
 import org.springframework.web.bind.annotation.RequestBody;
26
 import org.springframework.web.bind.annotation.RequestMapping;
27
 import org.springframework.web.bind.annotation.RequestMapping;
39
  * @description 考试基础信息
40
  * @description 考试基础信息
40
  * @date 2022/7/18 9:26
41
  * @date 2022/7/18 9:26
41
  **/
42
  **/
43
+@Slf4j
42
 @RestController
44
 @RestController
43
 @RequestMapping("/eb")
45
 @RequestMapping("/eb")
44
 public class EBaseController {
46
 public class EBaseController {
489
             eBaseService.generateExamReport(examid, createid);
491
             eBaseService.generateExamReport(examid, createid);
490
             return new ResultVo(0, "生成成功");
492
             return new ResultVo(0, "生成成功");
491
         } catch (Exception e) {
493
         } catch (Exception e) {
494
+            log.error("生成失败:"+e.getMessage());
492
             return new ResultVo(1, "生成失败");
495
             return new ResultVo(1, "生成失败");
493
         }
496
         }
494
     }
497
     }

Loading…
Cancel
Save