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>