Browse Source

Merge remote-tracking branch 'origin/master' into ywx

tags/正式版本
雍文秀 2 years ago
parent
commit
e6ebfb4201

+ 8
- 1
sexam/src/main/resources/mapper/paperstudent/EPsqBatchMapper.xml View File

19
     <select id="listPsqBatchDetail" resultType="java.util.Map">
19
     <select id="listPsqBatchDetail" resultType="java.util.Map">
20
         select d.detailid,d.studentid,d.eptqid,d.qn,d.stuscore,d.newscore,d.createtime,
20
         select d.detailid,d.studentid,d.eptqid,d.qn,d.stuscore,d.newscore,d.createtime,
21
         u.username,u.loginname from e_psqbatch_detail d left join t_user u on d.studentid=u.userid
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
     </select>
30
     </select>
24
 
31
 
25
 </mapper>
32
 </mapper>

Loading…
Cancel
Save