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,7 +49,7 @@ public class EPaperStudentQuestionHistoryController {
49 49
     public ResultVo listHistorys(@RequestBody EPaperStudentQuestionHistory psh) {
50 50
         Integer page = psh.getPage();
51 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 53
         PageHelper.startPage(page, pageSize);
54 54
         List<Map> rtnlst = ePaperStudentQuestionHistoryService.listExamStuQuestionHistory(psh.getExamid(),psh.getSubjectid());
55 55
         PageResult pageResult = PageUtil.getPageResult(new PageInfo<>(rtnlst));

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

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

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

@@ -6,9 +6,9 @@
6 6
     <select id="listExamStuQuestionHistory" resultType="java.util.Map">
7 7
         select h.*,u.username stuname,u.loginname,s.subjectname
8 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 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 12
             and h.subjectid=#{subjectid}
13 13
         </if>
14 14
         order by h.createtime desc

Loading…
Cancel
Save