Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
open-source
/
open-platform-admin
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Settings
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit 2571e0e4
authored
Dec 25, 2020
by
杨林龙
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
添加下拉选模糊查询接口
1 parent
d20b7b28
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
8 deletions
src/main/java/com/glsx/controller/UserMgrController.java
src/main/java/com/glsx/controller/UserMgrController.java
View file @
2571e0e
package
com
.
glsx
.
controller
;
package
com
.
glsx
.
controller
;
import
java.util.List
;
import
cn.com.glsx.openplatform.service.UserMgrService
;
import
cn.com.glsx.openplatform.service.UserMgrService
;
import
cn.com.glsx.openplatform.vo.R
;
import
cn.com.glsx.openplatform.vo.R
;
import
cn.com.glsx.openplatform.vo.UserVo
;
import
cn.com.glsx.openplatform.vo.UserVo
;
...
@@ -9,10 +7,9 @@ import cn.hutool.db.Page;
...
@@ -9,10 +7,9 @@ import cn.hutool.db.Page;
import
org.slf4j.Logger
;
import
org.slf4j.Logger
;
import
org.slf4j.LoggerFactory
;
import
org.slf4j.LoggerFactory
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.web.bind.annotation.RequestMapping
;
import
org.springframework.web.bind.annotation.*
;
import
org.springframework.web.bind.annotation.RequestMethod
;
import
org.springframework.web.bind.annotation.ResponseBody
;
import
java.util.List
;
import
org.springframework.web.bind.annotation.RestController
;
//@Api
//@Api
@RestController
@RestController
...
@@ -34,8 +31,8 @@ public class UserMgrController {
...
@@ -34,8 +31,8 @@ public class UserMgrController {
@RequestMapping
(
value
=
"/getDropDownOptions"
,
method
=
RequestMethod
.
GET
)
@RequestMapping
(
value
=
"/getDropDownOptions"
,
method
=
RequestMethod
.
GET
)
@ResponseBody
@ResponseBody
public
R
getDropDownOptions
()
{
public
R
getDropDownOptions
(
@RequestParam
String
customerName
)
{
List
<
String
>
customerNameList
=
userMgrService
.
getCustomerNameList
();
List
<
String
>
customerNameList
=
userMgrService
.
getCustomerNameList
(
customerName
);
return
R
.
ok
().
data
(
customerNameList
);
return
R
.
ok
().
data
(
customerNameList
);
}
}
}
}
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