yonge преди 4 години
родител
ревизия
73d0eabd30
променени са 1 файла, в които са добавени 3 реда и са изтрити 0 реда
  1. 3 0
      cms/src/main/resources/config/mybatis/SysNewsInformationMapper.xml

+ 3 - 0
cms/src/main/resources/config/mybatis/SysNewsInformationMapper.xml

@@ -62,6 +62,9 @@
 			<if test="subjectId != null">
 				and find_in_set(#{subjectId},sni.subject_id_list_)
 			</if>
+			<if test="organId != null">
+				and (find_in_set(#{organId},sni.organ_id_list_) or sni.organ_id_list_ is null)
+			</if>
 			<if test="organIdList != null">
 				and INTE_ARRAY(#{organIdList},sni.organ_id_list_)
 			</if>