|
@@ -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>
|