Joburgess 5 years ago
parent
commit
28ddb004d9

+ 1 - 1
edu-auth/edu-auth-server/src/main/resources/application.yml

@@ -86,7 +86,7 @@ ribbon:
   ConnectTimeout: 60000
 
 message:
-  debugMode: false
+  debugMode: true
 
 logging:
   level:

+ 6 - 4
edu-user/edu-user-server/src/main/resources/config/mybatis/ExamOrganizationRelationMapper.xml

@@ -387,10 +387,12 @@
 		LEFT JOIN organization a ON ear.organ_id_=a.id_
 		WHERE
 		ear.examination_basic_id_=#{examId}
-		AND ear.organ_id_ IN
-		<foreach collection="organIds" item="organId" separator="," open="(" close=")">
-			#{organId}
-		</foreach>
+		<if test="organIds!=null">
+			AND ear.organ_id_ IN
+			<foreach collection="organIds" item="organId" separator="," open="(" close=")">
+				#{organId}
+			</foreach>
+		</if>
 	</select>
 
 </mapper>