Browse Source

科目id搜索不判断0

ywx
雍文秀 1 month ago
parent
commit
c7e8918fbf

+ 1
- 1
smarking/src/main/resources/mapper/exam/MsClassMapper.xml View File

24
         select mc.classid,mc.classname
24
         select mc.classid,mc.classname
25
         from ms_class mc left join t_class c on mc.classid = c.classid
25
         from ms_class mc left join t_class c on mc.classid = c.classid
26
         where examid=#{examid}
26
         where examid=#{examid}
27
-        <if test="subjectid!=null and subjectid!='' and subjectid!='0'">
27
+        <if test="subjectid!=null and subjectid!=''">
28
             and mc.subjectid=#{subjectid}
28
             and mc.subjectid=#{subjectid}
29
         </if>
29
         </if>
30
         group by mc.classid
30
         group by mc.classid

+ 1
- 1
smarking/src/main/resources/mapper/exam/MsClassStudentMapper.xml View File

57
         <if test="cs.classid!=null and cs.classid!=0">
57
         <if test="cs.classid!=null and cs.classid!=0">
58
             and es.classid=#{cs.classid}
58
             and es.classid=#{cs.classid}
59
         </if>
59
         </if>
60
-        <if test="cs.subjectid!=null and cs.subjectid!='' and cs.subjectid!='0'">
60
+        <if test="cs.subjectid!=null and cs.subjectid!=''">
61
             and es.subjectid=#{cs.subjectid}
61
             and es.subjectid=#{cs.subjectid}
62
         </if>
62
         </if>
63
         <if test="cs.studentname!=null and cs.studentname!=''">
63
         <if test="cs.studentname!=null and cs.studentname!=''">

Loading…
Cancel
Save