|
@ -317,4 +317,16 @@ public class SysSupplierController extends BaseController |
|
|
} |
|
|
} |
|
|
return new SysSupplierVo(); |
|
|
return new SysSupplierVo(); |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
// 前缀查询供应商列表
|
|
|
|
|
|
@RequestMapping("/matchSupplierList") |
|
|
|
|
|
@ResponseBody |
|
|
|
|
|
public AjaxResult getMatchCustomerList(@RequestParam(value = "q",defaultValue = "") String prefix){ |
|
|
|
|
|
if (prefix == null || prefix.isEmpty()){ |
|
|
|
|
|
List<SysSupplier> list = sysSupplierService.selectSysSupplierBycode(); |
|
|
|
|
|
return success(list); |
|
|
|
|
|
} |
|
|
|
|
|
List<SysSupplier> list = sysSupplierService.selectSupplierByPrefix(prefix); |
|
|
|
|
|
return success(list); |
|
|
|
|
|
} |
|
|
} |
|
|
} |
|
|