Commit b5128ea8 authored by hezhen's avatar hezhen

Merge branch 'hz_master' into dev

parents 6d6f7074 fa953584
...@@ -217,12 +217,6 @@ public class BranchCompanyBiz extends BaseBiz<BranchCompanyMapper, BranchCompany ...@@ -217,12 +217,6 @@ public class BranchCompanyBiz extends BaseBiz<BranchCompanyMapper, BranchCompany
public List<BranchCompany> getAll() { public List<BranchCompany> getAll() {
return mapper.selectAll(); return mapper.selectAll();
} }
public List<BranchCompany> getCompanys() {
Example example=new Example(BranchCompany.class);
example.createCriteria().andEqualTo("state",1).andEqualTo("isShow",1).andEqualTo("isDel",0);
return mapper.selectByExample(example);
}
/** /**
* 增加公司,返回id * 增加公司,返回id
......
...@@ -90,10 +90,6 @@ public class BranchCompanyController extends BaseController<BranchCompanyBiz> { ...@@ -90,10 +90,6 @@ public class BranchCompanyController extends BaseController<BranchCompanyBiz> {
public RestResponse<List<BranchCompany>> findAll(){ public RestResponse<List<BranchCompany>> findAll(){
return RestResponse.data(baseBiz.getAll()); return RestResponse.data(baseBiz.getAll());
} }
@GetMapping("/app/unauth/companyAll")
public RestResponse<List<BranchCompany>> companyAll(){
return RestResponse.data(baseBiz.getCompanys());
}
@RequestMapping(value ="/{id}",method = RequestMethod.GET) @RequestMapping(value ="/{id}",method = RequestMethod.GET)
public RestResponse<BranchCompany> get(@PathVariable Integer id) { public RestResponse<BranchCompany> get(@PathVariable Integer id) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment