用户信息查询

hehai
mzh820631607 4 years ago
parent a800fc3da8
commit 888cd055ef
  1. 27
      src/main/java/com/msdw/tms/controller/EvaluationRecordController.java
  2. 2
      src/main/java/com/msdw/tms/controller/UserController.java

@ -65,7 +65,32 @@ public class EvaluationRecordController implements EvaluationRecordControllerApi
EvaluationRecordVO evaluationRecordVO = evaluationRecordService.convertQuestion(evaluationRecordId, currentQuestionSortNo, userAnswer, currentQuestionSortNo - 1);
return R.ok().put("data", evaluationRecordVO);
}
// 备份:上一题/下一题/提交
// @Override
// @GetMapping("/previous")
// public R previousQuestion(@RequestParam("evaluationRecordId") Integer evaluationRecordId,
// @RequestParam("currentQuestionSortNo") Integer currentQuestionSortNo,
// @RequestParam(value = "userAnswer", required = false) String userAnswer) throws ExecutionException, InterruptedException {
// EvaluationRecordVO evaluationRecordVO = evaluationRecordService.convertQuestion(evaluationRecordId, currentQuestionSortNo, userAnswer, currentQuestionSortNo - 1);
// return R.ok().put("data", evaluationRecordVO);
// }
// @Override
// @GetMapping("/next")
// public R nextQuestion(@RequestParam("evaluationRecordId") Integer evaluationRecordId,
// @RequestParam("currentQuestionSortNo") Integer currentQuestionSortNo,
// @RequestParam(value = "userAnswer", required = false) String userAnswer) throws ExecutionException, InterruptedException {
// EvaluationRecordVO evaluationRecordVO = evaluationRecordService.convertQuestion(evaluationRecordId, currentQuestionSortNo, userAnswer, currentQuestionSortNo + 1);
// return R.ok().put("data", evaluationRecordVO);
// }
// @Override
// @GetMapping("/submit")
// public R submitEvaluation(@RequestParam("evaluationRecordId") Integer evaluationRecordId,
// @RequestParam("currentQuestionSortNo") Integer currentQuestionSortNo,
// @RequestParam(value = "userAnswer", required = false) String userAnswer,
// @RequestParam("userId") Integer userId) throws ExecutionException, InterruptedException {
// EvaluationRecordSubmitVO recordSubmitVO = evaluationRecordService.submitEvaluation(evaluationRecordId, currentQuestionSortNo, userAnswer, userId);
// return R.ok().put("data", recordSubmitVO);
// }
@Override
@GetMapping("/next")
public R nextQuestion(@RequestParam("evaluationRecordId") Integer evaluationRecordId,

@ -40,6 +40,7 @@ public class UserController implements UserControllerApi {
return R.ok().put("growthChangeHistory", userEntity);
}
@Override
@GetMapping("/userinfo/{id}")
public R userInfo(@PathVariable("id") Integer id){
UserEntityVo userEntityVo = userService.queryUserId(id);
@ -59,6 +60,7 @@ public class UserController implements UserControllerApi {
/**
* 修改
*/
@Override
@PutMapping("/update")
public R update(@RequestBody UserEntity userEntity){
userService.updateById(userEntity);

Loading…
Cancel
Save