数据权限的bug修改

This commit is contained in:
1745237360-cloud
2026-01-12 14:30:00 +08:00
parent f7e6f70321
commit c8493dd658
5 changed files with 137 additions and 17 deletions
@@ -254,6 +254,15 @@
<if test="searchExpenseAccountDO.societyStatus != null ">
and a.society_status = #{searchExpenseAccountDO.societyStatus}
</if>
<!-- 数据权限:南光组织(organizationId=2827)查全部,其他组织查自己 -->
<!-- 如果 organizationId 为 null,表示查询所有组织的数据(不添加组织过滤条件) -->
<if test="searchExpenseAccountDO.organizationId != null">
<!-- 如果设置了 organizationId,添加 organization_id 条件 -->
and a.organization_id = #{searchExpenseAccountDO.organizationId}
and a.organization_name IS NOT NULL
and a.organization_name != ''
and LENGTH(TRIM(a.organization_name)) > 0
</if>
and a.del_flag=1
order by show_seq
</select>