| | |
| | | public ComPanyController() { |
| | | } |
| | | |
| | | @GetMapping({"FindCompany"}) |
| | | public result<List<Company>> FindCompany(Integer page, Integer limit) throws Exception { |
| | | PageInfo<Company> cz = this.companyService.FindCompany(page, limit); |
| | | @PostMapping({"FindCompany"}) |
| | | public result<List<Company>> FindCompany(Integer page, Integer limit,String entry) throws Exception { |
| | | PageInfo<Company> cz = this.companyService.FindCompany(page, limit,entry); |
| | | List<Company> companyList = new ArrayList(); |
| | | |
| | | for(int i = 0; i < cz.getSize(); ++i) { |
| | |
| | | c.setShuinum(DESUtil.decrypt(((Company)cz.getList().get(i)).getShuinum(), DESUtil.key)); |
| | | c.setAccount(DESUtil.decrypt(((Company)cz.getList().get(i)).getAccount(), DESUtil.key)); |
| | | c.setCompanyid(((Company)cz.getList().get(i)).getCompanyid()); |
| | | c.setPassword(((Company)cz.getList().get(i)).getPassword()); |
| | | companyList.add(c); |
| | | } |
| | | |
| | |
| | | c.setShuinum(DESUtil.decrypt(((Company)cz.getList().get(i)).getShuinum(), DESUtil.key)); |
| | | c.setAccount(DESUtil.decrypt(((Company)cz.getList().get(i)).getAccount(), DESUtil.key)); |
| | | c.setCompanyid(((Company)cz.getList().get(i)).getCompanyid()); |
| | | c.setPassword(((Company)cz.getList().get(i)).getPassword()); |
| | | companyList.add(c); |
| | | } |
| | | |
| | |
| | | company1.setPhone(DESUtil.decrypt(((Company)cz.getList().get(i)).getPhone(), DESUtil.key)); |
| | | company1.setAccountbank(DESUtil.decrypt(((Company)cz.getList().get(i)).getAccountbank(), DESUtil.key)); |
| | | company1.setAccount(DESUtil.decrypt(((Company)cz.getList().get(i)).getAccount(), DESUtil.key)); |
| | | company1.setPassword(((Company)cz.getList().get(i)).getPassword()); |
| | | companyList.add(company1); |
| | | } |
| | | |
| | |
| | | public int bcHxg(Company company) throws Exception { |
| | | return this.companyService.bcHxg(company); |
| | | } |
| | | |
| | | |
| | | @PostMapping({"findcomPnone"}) |
| | | public String findcomPnone(String company) throws Exception { |
| | | return this.companyService.findcomPnone(company); |
| | | } |
| | | |
| | | |
| | | @PostMapping({"findPnone"}) |
| | | public String findPnone(String phone,String companyId) throws Exception { |
| | | return this.companyService.findPnone(phone,companyId); |
| | | } |
| | | |
| | | @PostMapping({"findCompanyname"}) |
| | | public String findCompanyname(String companyname) throws Exception { |
| | | return this.companyService.findCompanyname(companyname); |
| | | } |
| | | } |