Browse Source

fix 科目

he2802 3 years ago
parent
commit
060f980352

+ 1 - 1
zhongzheng-system/src/main/resources/mapper/modules/course/CourseSubjectMapper.xml

@@ -119,7 +119,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
         WHERE
         cs.`status` != -1 and
         cs.subject_name = #{subjectName}
-        <if test="courseSubjectProjects != null and courseSubjectProjects.size()!=0 ">
+        <if test="courseSubjectProjects != null and courseSubjectProjects.length!=0 ">
             AND csp.project_id in
             <foreach collection="courseSubjectProjects" item="item" index="index" open="(" close=")" separator=",">
                 #{item}

+ 1 - 1
zhongzheng-system/src/main/resources/mapper/modules/course/MajorMapper.xml

@@ -93,7 +93,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
         WHERE
         m.`status` != -1 and
         m.category_name = #{categoryName}
-        <if test="majorProjects != null and majorProjects.size()!=0 ">
+        <if test="majorProjects != null and majorProjects.length!=0 ">
             AND mp.project_id in
             <foreach collection="majorProjects" item="item" index="index" open="(" close=")" separator=",">
                 #{item}