Commit 2571e0e4 by 杨林龙

添加下拉选模糊查询接口

1 parent d20b7b28
package com.glsx.controller;
import java.util.List;
import cn.com.glsx.openplatform.service.UserMgrService;
import cn.com.glsx.openplatform.vo.R;
import cn.com.glsx.openplatform.vo.UserVo;
......@@ -9,10 +7,9 @@ import cn.hutool.db.Page;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.ResponseBody;
import org.springframework.web.bind.annotation.RestController;
import org.springframework.web.bind.annotation.*;
import java.util.List;
//@Api
@RestController
......@@ -34,8 +31,8 @@ public class UserMgrController {
@RequestMapping(value = "/getDropDownOptions", method = RequestMethod.GET)
@ResponseBody
public R getDropDownOptions() {
List<String> customerNameList = userMgrService.getCustomerNameList();
public R getDropDownOptions(@RequestParam String customerName) {
List<String> customerNameList = userMgrService.getCustomerNameList(customerName);
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!