优化平台配置的查询逻辑

This commit is contained in:
季圣华
2023-06-14 00:01:44 +08:00
parent 9bf3d79348
commit 1b7379fde9

View File

@@ -6,6 +6,7 @@
FROM jsh_platform_config FROM jsh_platform_config
where 1=1 where 1=1
and platform_key!='activation_code' and platform_key!='activation_code'
and platform_key!='app_activation_code'
<if test="platformKey != null and platformKey != ''"> <if test="platformKey != null and platformKey != ''">
<bind name="bindKey" value="'%'+platformKey+'%'"/> <bind name="bindKey" value="'%'+platformKey+'%'"/>
and platform_key like #{bindKey} and platform_key like #{bindKey}
@@ -20,6 +21,7 @@
FROM jsh_platform_config FROM jsh_platform_config
WHERE 1=1 WHERE 1=1
and platform_key!='activation_code' and platform_key!='activation_code'
and platform_key!='app_activation_code'
<if test="platformKey != null and platformKey != ''"> <if test="platformKey != null and platformKey != ''">
<bind name="bindKey" value="'%'+platformKey+'%'"/> <bind name="bindKey" value="'%'+platformKey+'%'"/>
and platform_key like #{bindKey} and platform_key like #{bindKey}