TASK:优化查询子账号design试用频次,根据管理员身份限定查询范围

This commit is contained in:
2025-08-26 14:10:28 +08:00
parent 45a336ced3
commit 9a650afc7d
3 changed files with 12 additions and 4 deletions

View File

@@ -84,6 +84,9 @@
a.system_user IN (0, 1, 2, 3, 4)
</when>
</choose>
<if test="organizationName != null and organizationName != ''">
AND a.organization_name = #{organizationName}
</if>
<if test="id != null">
AND a.id = #{id}
</if>
@@ -126,6 +129,9 @@
a.system_user IN (0, 1, 2, 3, 4)
</when>
</choose>
<if test="organizationName != null and organizationName != ''">
AND a.organization_name = #{organizationName}
</if>
<if test="userEmail != null and userEmail != ''">
AND a.user_email = #{userEmail}
</if>