Browse Source

完善修改分值

tags/正式版本
王宁 2 years ago
parent
commit
2457c57d5f

+ 1
- 1
sexam/src/main/java/com/xhkjedu/sexam/controller/paperstudent/EPaperStudentQuestionHistoryController.java View File

49
     public ResultVo listHistorys(@RequestBody EPaperStudentQuestionHistory psh) {
49
     public ResultVo listHistorys(@RequestBody EPaperStudentQuestionHistory psh) {
50
         Integer page = psh.getPage();
50
         Integer page = psh.getPage();
51
         Integer pageSize = psh.getPageSize();
51
         Integer pageSize = psh.getPageSize();
52
-        N_Utils.validation(new Object[]{psh.getExamid(), "考试id", 1});
52
+        N_Utils.validation(new Object[]{psh.getExamid(), "考试id", 1,page,"当前页",1,pageSize,"每页条数",1});
53
         PageHelper.startPage(page, pageSize);
53
         PageHelper.startPage(page, pageSize);
54
         List<Map> rtnlst = ePaperStudentQuestionHistoryService.listExamStuQuestionHistory(psh.getExamid(),psh.getSubjectid());
54
         List<Map> rtnlst = ePaperStudentQuestionHistoryService.listExamStuQuestionHistory(psh.getExamid(),psh.getSubjectid());
55
         PageResult pageResult = PageUtil.getPageResult(new PageInfo<>(rtnlst));
55
         PageResult pageResult = PageUtil.getPageResult(new PageInfo<>(rtnlst));

+ 2
- 0
sexam/src/main/java/com/xhkjedu/sexam/service/paperstudent/EPaperStudentQuestionHistoryService.java View File

55
                 sqh.setSubjectid(psques.getSubjectid());
55
                 sqh.setSubjectid(psques.getSubjectid());
56
                 sqh.setEpid(psques.getEpid());
56
                 sqh.setEpid(psques.getEpid());
57
                 sqh.setClassid(psques.getClassid());
57
                 sqh.setClassid(psques.getClassid());
58
+                sqh.setEpsqid(q.getEpsqid());
58
                 sqh.setStudentid(psques.getStudentid());
59
                 sqh.setStudentid(psques.getStudentid());
59
                 sqh.setCreatetime(N_Utils.getSecondTimestamp());
60
                 sqh.setCreatetime(N_Utils.getSecondTimestamp());
60
                 sqh.setStuscore(psques.getStuscore());
61
                 sqh.setStuscore(psques.getStuscore());
61
                 sqh.setUpscore(q.getStuscore());
62
                 sqh.setUpscore(q.getStuscore());
62
                 sqh.setQn(psques.getQn());
63
                 sqh.setQn(psques.getQn());
64
+                sqh.setTeacherid(psparams.getTeacherid());
63
                 sqhlist.add(sqh);
65
                 sqhlist.add(sqh);
64
             }
66
             }
65
         }
67
         }

+ 2
- 2
sexam/src/main/resources/mapper/paperstudent/EPaperStudentQuestionHistoryMapper.xml View File

6
     <select id="listExamStuQuestionHistory" resultType="java.util.Map">
6
     <select id="listExamStuQuestionHistory" resultType="java.util.Map">
7
         select h.*,u.username stuname,u.loginname,s.subjectname
7
         select h.*,u.username stuname,u.loginname,s.subjectname
8
         from e_paper_student_question_history h left join t_user u on h.studentid=u.userid
8
         from e_paper_student_question_history h left join t_user u on h.studentid=u.userid
9
-                                                left join t_subject s on h.subjectid=s.subjectid
9
+        left join t_subject s on h.subjectid=s.subjectid
10
         where h.examid=#{examid}
10
         where h.examid=#{examid}
11
-        <if test="subjectid!=null and subjectid!='' and subjectid!='0'">
11
+        <if test="subjectid!=null and subjectid!='' and subjectid!='0'.toString()">
12
             and h.subjectid=#{subjectid}
12
             and h.subjectid=#{subjectid}
13
         </if>
13
         </if>
14
         order by h.createtime desc
14
         order by h.createtime desc

Loading…
Cancel
Save