yonge 5 jaren geleden
bovenliggende
commit
a1d529e155

+ 7 - 1
mec-biz/src/main/resources/config/mybatis/CooperationOrganMapper.xml

@@ -79,10 +79,13 @@
             parameterType="map">
         SELECT * FROM cooperation_organ
         <where>
-                del_flag_ = 0
+                del_flag_ != 1
             <if test="search != null">
                 AND FIND_IN_SET(organ_id_,#{search})
             </if>
+	        <if test="organId != null">
+	            AND FIND_IN_SET(organ_id_,#{organId})
+	        </if>
         </where>
         ORDER BY update_time_ DESC
         <include refid="global.limit"/>
@@ -96,6 +99,9 @@
             <if test="search != null">
                 AND organ_id_ = #{search}
             </if>
+	        <if test="organId != null">
+	            AND FIND_IN_SET(organ_id_,#{organId})
+	        </if>
         </where>
 	</select>
 

+ 6 - 0
mec-biz/src/main/resources/config/mybatis/SchoolMapper.xml

@@ -96,6 +96,9 @@
         <if test="cooperationOrganId != null">
             AND cooperation_organ_id_ = #{cooperationOrganId}
         </if>
+        <if test="organId != null">
+            AND FIND_IN_SET(organ_id_,#{organId})
+        </if>
         ORDER BY id_
         <include refid="global.limit"/>
     </select>
@@ -106,6 +109,9 @@
         <if test="cooperationOrganId != null">
             AND cooperation_organ_id_ = #{cooperationOrganId}
         </if>
+        <if test="organId != null">
+            AND FIND_IN_SET(organ_id_,#{organId})
+        </if>
 	</select>
     <select id="queryByOrganId" resultMap="School">
         SELECT * FROM school