Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
open-source
/
rpc-openplatform
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit 4ae2430a
authored
Dec 28, 2020
by
杨林龙
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
添加下拉选模糊查询接口 yangll
1 parent
d70d3ae0
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
6 additions
and
3 deletions
rpc-openplatform-container/src/main/resources/META-INF/orm/PlatformCustomerMapper.xml
rpc-openplatform-container/src/main/resources/META-INF/orm/PlatformDeviceMapper.xml
rpc-openplatform-container/src/main/resources/META-INF/orm/PlatformUserMapper.xml
rpc-openplatform-container/src/main/resources/META-INF/orm/PlatformCustomerMapper.xml
View file @
4ae2430
...
@@ -199,7 +199,10 @@
...
@@ -199,7 +199,10 @@
<select
id=
"getCustomerNameList"
resultType=
"java.lang.String"
>
<select
id=
"getCustomerNameList"
resultType=
"java.lang.String"
>
select distinct customer_name
select distinct customer_name
from t_platform_customer
from t_platform_customer
where customer_name like '%${customerName}%'
where 1 = 1
<if
test=
"customerName != null and customerName != ''"
>
and customer_name like '%${customerName}%'
</if>
</select>
</select>
<select
id=
"getCustomerCount"
resultType=
"java.lang.Integer"
>
<select
id=
"getCustomerCount"
resultType=
"java.lang.Integer"
>
...
...
rpc-openplatform-container/src/main/resources/META-INF/orm/PlatformDeviceMapper.xml
View file @
4ae2430
...
@@ -42,7 +42,7 @@
...
@@ -42,7 +42,7 @@
left join t_platform_customer b on a.customer_id = b.id
left join t_platform_customer b on a.customer_id = b.id
where 1 = 1
where 1 = 1
<if
test=
"customerName != null and customerName != ''"
>
<if
test=
"customerName != null and customerName != ''"
>
and b.customer_name
like '%${customerName}%'
and b.customer_name
= #{customerName,jdbcType=VARCHAR}
</if>
</if>
<if
test=
"customerNameAuth != null and customerNameAuth != ''"
>
<if
test=
"customerNameAuth != null and customerNameAuth != ''"
>
and b.customer_name = #{customerNameAuth,jdbcType=VARCHAR}
and b.customer_name = #{customerNameAuth,jdbcType=VARCHAR}
...
...
rpc-openplatform-container/src/main/resources/META-INF/orm/PlatformUserMapper.xml
View file @
4ae2430
...
@@ -53,7 +53,7 @@
...
@@ -53,7 +53,7 @@
left join t_sys_area d on a.city = d.id
left join t_sys_area d on a.city = d.id
where 1 = 1
where 1 = 1
<if
test=
"customerName != null and customerName != ''"
>
<if
test=
"customerName != null and customerName != ''"
>
and b.customer_name
like '%${customerName}%'
and b.customer_name
= #{customerName,jdbcType=VARCHAR}
</if>
</if>
<if
test=
"customerNameAuth != null and customerNameAuth != ''"
>
<if
test=
"customerNameAuth != null and customerNameAuth != ''"
>
and b.customer_name = #{customerNameAuth,jdbcType=VARCHAR}
and b.customer_name = #{customerNameAuth,jdbcType=VARCHAR}
...
...
Write
Preview
Markdown
is supported
Attach a file
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to post a comment