|
@@ -118,13 +118,11 @@ public class UserExamWrongRecordController extends BaseController {
|
|
|
|
|
|
|
|
|
@ApiOperation("获取用户报告错题数")
|
|
|
- @GetMapping("/wrongNum/{recordId}")
|
|
|
- public AjaxResult<Long> wrongNum(@PathVariable("recordId" ) Long recordId) {
|
|
|
+ @GetMapping("/wrongNum")
|
|
|
+ public AjaxResult<Long> wrongNum(UserExamWrongRecordQueryBo bo) {
|
|
|
ClientLoginUser loginUser = wxTokenService.getLoginUser(ServletUtils.getRequest());
|
|
|
- UserExamWrongRecordQueryBo wBo = new UserExamWrongRecordQueryBo();
|
|
|
- wBo.setRecordId(recordId);
|
|
|
- wBo.setUserId(loginUser.getUser().getUserId());
|
|
|
- return AjaxResult.success(iUserExamWrongRecordService.recordNum(wBo));
|
|
|
+ bo.setUserId(loginUser.getUser().getUserId());
|
|
|
+ return AjaxResult.success(iUserExamWrongRecordService.recordNum(bo));
|
|
|
}
|
|
|
|
|
|
/**
|