|
|
@ -3,16 +3,13 @@ package com.ruoyi.system.controller; |
|
|
|
import java.util.List; |
|
|
|
|
|
|
|
import com.ruoyi.system.domain.SysCompanyInformation; |
|
|
|
import com.ruoyi.system.domain.SysCustomer; |
|
|
|
import com.ruoyi.system.service.ISysCompanyInformationService; |
|
|
|
import org.apache.shiro.authz.annotation.RequiresPermissions; |
|
|
|
import org.springframework.beans.factory.annotation.Autowired; |
|
|
|
import org.springframework.stereotype.Controller; |
|
|
|
import org.springframework.ui.ModelMap; |
|
|
|
import org.springframework.web.bind.annotation.GetMapping; |
|
|
|
import org.springframework.web.bind.annotation.PathVariable; |
|
|
|
import org.springframework.web.bind.annotation.PostMapping; |
|
|
|
import org.springframework.web.bind.annotation.RequestMapping; |
|
|
|
import org.springframework.web.bind.annotation.ResponseBody; |
|
|
|
import org.springframework.web.bind.annotation.*; |
|
|
|
import com.ruoyi.common.annotation.Log; |
|
|
|
import com.ruoyi.common.enums.BusinessType; |
|
|
|
import com.ruoyi.system.domain.SysCompanyBankInfo; |
|
|
@ -160,5 +157,17 @@ public class SysCompanyBankInfoController extends BaseController |
|
|
|
return toAjax(sysCompanyBankInfoService.restoreSysCompanyBankInfoById(id)); |
|
|
|
} |
|
|
|
|
|
|
|
// 前缀查询公司银行账户列表
|
|
|
|
@RequestMapping("/matchBankInfoList") |
|
|
|
@ResponseBody |
|
|
|
public AjaxResult getMatchCustomerList(@RequestParam(value = "q",defaultValue = "") String prefix){ |
|
|
|
SysCompanyBankInfo temp = new SysCompanyBankInfo(); |
|
|
|
if (prefix == null || prefix.isEmpty()){ |
|
|
|
List<SysCompanyBankInfo> list = sysCompanyBankInfoService.selectSysCompanyBankInfoList(temp); |
|
|
|
return success(list); |
|
|
|
} |
|
|
|
List<SysCompanyBankInfo> list = sysCompanyBankInfoService.searchBankInfoByPrefix(prefix); |
|
|
|
return success(list); |
|
|
|
} |
|
|
|
|
|
|
|
} |
|
|
|