zouxuan 5 years ago
parent
commit
c507c00004

+ 2 - 2
edu-user/edu-user-biz/src/main/resources/config/mybatis/ExamReviewMapper.xml

@@ -137,8 +137,8 @@
 			<if test="cardNo!=null">
 				AND ere.card_no_=#{cardNo}
 			</if>
-			<if test="organId!=null">
-				AND ere.organ_id_=#{organId}
+			<if test="organId != null and organId != 0">
+				AND ere.organ_id_ = #{organId}
 			</if>
 			<if test="subjectId!=null">
 				AND ere.subject_id_=#{subjectId}