数据权限的bug修改
This commit is contained in:
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user