mirror of
https://codeup.aliyun.com/67762337eccfc218f6110e0e/per-boe/java-servers.git
synced 2025-12-10 11:26:50 +08:00
查询试题,增加一个日志
This commit is contained in:
@@ -60,8 +60,13 @@ public class ExamQuestionApi extends ApiBaseController {
|
|||||||
@PostMapping("/page")
|
@PostMapping("/page")
|
||||||
public JsonResponse<PageList<ExamQuestion>> page(Pagination pager,
|
public JsonResponse<PageList<ExamQuestion>> page(Pagination pager,
|
||||||
ExamQuestion examQuestion,String orderField,Boolean orderAsc) {
|
ExamQuestion examQuestion,String orderField,Boolean orderAsc) {
|
||||||
PageList<ExamQuestion> list = service.query(pager.getPageIndex(), pager.getPageSize(), examQuestion,orderField,orderAsc);
|
try {
|
||||||
return success(list);
|
PageList<ExamQuestion> list = service.query(pager.getPageIndex(), pager.getPageSize(), examQuestion,orderField,orderAsc);
|
||||||
|
return success(list);
|
||||||
|
}catch(Exception e) {
|
||||||
|
log.error("分页查询试题错误",e);
|
||||||
|
return error("查询试题错误",e.getMessage());
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
Reference in New Issue
Block a user