Commit 2571e0e4 by 杨林龙

添加下拉选模糊查询接口

1 parent d20b7b28
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);
} }
} }
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!