Просмотр исходного кода

状态名称status修正成state

mingfu 1 месяц назад
Родитель
Сommit
d52fd8790b

+ 2 - 2
ie-admin/src/main/java/com/ruoyi/web/controller/front/FrontStudentController.java

@@ -335,11 +335,11 @@ public class FrontStudentController extends BaseController {
 
     @ApiOperation("53 记录-测试卷")
     @GetMapping("record/test")
-    public TableDataInfo getRecordTest(@ApiParam("状态") @RequestParam(required = false) Integer status)
+    public TableDataInfo getRecordTest(@ApiParam("状态") @RequestParam(required = false) Integer state)
     {
         SysUser sysUser = SecurityUtils.getLoginUser().getUser();
         startPage();
-        return getDataTable(studentService.getTestList(sysUser.getUserId(), status));
+        return getDataTable(studentService.getTestList(sysUser.getUserId(), state));
     }
 
     @ApiOperation("54 记录-测试卷结果")

+ 2 - 2
ie-admin/src/main/java/com/ruoyi/web/service/StudentService.java

@@ -112,8 +112,8 @@ public class StudentService {
         return list;
     }
 
-    public List<JSONObject> getTestList(Long studentId, Integer status) {
-        List<JSONObject> list = learnTestStudentMapper.selectExamineeTestList(studentId, status);
+    public List<JSONObject> getTestList(Long studentId, Integer state) {
+        List<JSONObject> list = learnTestStudentMapper.selectExamineeTestList(studentId, state);
         list.forEach(t -> {
             DzSubject dzSubject = dzSubjectService.selectDzSubjectBySubjectId(t.getLong("subjectId"));
             t.put("subjectName", dzSubject.getSubjectName());

+ 1 - 1
ie-system/src/main/java/com/ruoyi/learn/mapper/LearnTestStudentMapper.java

@@ -15,7 +15,7 @@ import org.apache.ibatis.annotations.Param;
  */
 public interface LearnTestStudentMapper 
 {
-    List<JSONObject> selectExamineeTestList(@Param("studentId") Long studentId, @Param("status") Integer status);
+    List<JSONObject> selectExamineeTestList(@Param("studentId") Long studentId, @Param("state") Integer state);
 
     List<LearnTestStudent> selectStatsForStudent(Long studentId);