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 cc0af4a0
authored
Dec 25, 2020
by
杨林龙
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
添加下拉选模糊查询接口 yangll
1 parent
0ebd4daf
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
5 additions
and
4 deletions
rpc-openplatform-api/src/main/java/cn/com/glsx/openplatform/service/UserMgrService.java
rpc-openplatform-container/src/main/java/cn/com/glsx/openplatform/mapper/PlatformCustomerMapper.java
rpc-openplatform-container/src/main/java/cn/com/glsx/openplatform/service/UserMgrServiceImpl.java
rpc-openplatform-container/src/main/resources/META-INF/orm/PlatformCustomerMapper.xml
rpc-openplatform-api/src/main/java/cn/com/glsx/openplatform/service/UserMgrService.java
View file @
cc0af4a
...
@@ -22,7 +22,7 @@ public interface UserMgrService {
...
@@ -22,7 +22,7 @@ public interface UserMgrService {
*
*
* @return
* @return
*/
*/
List
<
String
>
getCustomerNameList
();
List
<
String
>
getCustomerNameList
(
String
customerName
);
/**
/**
* 获取用户数量
* 获取用户数量
...
...
rpc-openplatform-container/src/main/java/cn/com/glsx/openplatform/mapper/PlatformCustomerMapper.java
View file @
cc0af4a
...
@@ -20,7 +20,7 @@ public interface PlatformCustomerMapper extends OreMapper<PlatformCustomer> {
...
@@ -20,7 +20,7 @@ public interface PlatformCustomerMapper extends OreMapper<PlatformCustomer> {
List
<
PlatformCustomer
>
getCustomerMgrList
();
List
<
PlatformCustomer
>
getCustomerMgrList
();
List
<
String
>
getCustomerNameList
();
List
<
String
>
getCustomerNameList
(
@Param
(
"customerName"
)
String
customerName
);
int
getCustomerCount
();
int
getCustomerCount
();
...
...
rpc-openplatform-container/src/main/java/cn/com/glsx/openplatform/service/UserMgrServiceImpl.java
View file @
cc0af4a
...
@@ -36,8 +36,8 @@ public class UserMgrServiceImpl implements UserMgrService {
...
@@ -36,8 +36,8 @@ public class UserMgrServiceImpl implements UserMgrService {
}
}
@Override
@Override
public
List
<
String
>
getCustomerNameList
()
{
public
List
<
String
>
getCustomerNameList
(
String
customerName
)
{
return
customerMapper
.
getCustomerNameList
();
return
customerMapper
.
getCustomerNameList
(
customerName
);
}
}
@Override
@Override
...
...
rpc-openplatform-container/src/main/resources/META-INF/orm/PlatformCustomerMapper.xml
View file @
cc0af4a
...
@@ -199,6 +199,7 @@
...
@@ -199,6 +199,7 @@
<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}%'
</select>
</select>
<select
id=
"getCustomerCount"
resultType=
"java.lang.Integer"
>
<select
id=
"getCustomerCount"
resultType=
"java.lang.Integer"
>
...
...
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