소스 검색

补录详情搜索

tags/正式版本
王宁 2 년 전
부모
커밋
bfe9d941a1

+ 0
- 1
sexam/src/main/java/com/xhkjedu/sexam/model/paperstudent/EPsqbatchDetail.java 파일 보기

@@ -26,7 +26,6 @@ public class EPsqbatchDetail extends BaseBean {
26 26
 
27 27
     //试卷id
28 28
     private Integer epid;
29
-    private Integer eptqid;
30 29
 
31 30
     //试卷中试题id
32 31
     private Integer eptqid;

+ 8
- 1
sexam/src/main/resources/mapper/paperstudent/EPsqBatchMapper.xml 파일 보기

@@ -19,7 +19,14 @@
19 19
     <select id="listPsqBatchDetail" resultType="java.util.Map">
20 20
         select d.detailid,d.studentid,d.eptqid,d.qn,d.stuscore,d.newscore,d.createtime,
21 21
         u.username,u.loginname from e_psqbatch_detail d left join t_user u on d.studentid=u.userid
22
-        where d.batchid=#{ed.batchid} order by studentid,d.eptqid
22
+        where d.batchid=#{ed.batchid}
23
+        <if test="ed.eptqid!=null and ed.eptqid!='' and ed.eptqid!='0'.toString()">
24
+            and d.eptqid=#{ed.eptqid}
25
+        </if>
26
+        <if test="ed.username!=null and ed.username!=''">
27
+            and (u.username like concat('%', #{ed.username}, '%') or u.loginname like concat('%', #{ed.username}, '%'))
28
+        </if>
29
+        order by studentid,d.eptqid
23 30
     </select>
24 31
 
25 32
 </mapper>

Loading…
취소
저장