Pārlūkot izejas kodu

科目id搜索不判断0

ywx
雍文秀 pirms 1 mēnesi
vecāks
revīzija
c7e8918fbf

+ 1
- 1
smarking/src/main/resources/mapper/exam/MsClassMapper.xml Parādīt failu

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

+ 1
- 1
smarking/src/main/resources/mapper/exam/MsClassStudentMapper.xml Parādīt failu

@@ -57,7 +57,7 @@
57 57
         <if test="cs.classid!=null and cs.classid!=0">
58 58
             and es.classid=#{cs.classid}
59 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 61
             and es.subjectid=#{cs.subjectid}
62 62
         </if>
63 63
         <if test="cs.studentname!=null and cs.studentname!=''">

Notiek ielāde…
Atcelt
Saglabāt