Commit fa953584 authored by hezhen's avatar hezhen

123

parent a499b1cb
......@@ -217,12 +217,6 @@ public class BranchCompanyBiz extends BaseBiz<BranchCompanyMapper, BranchCompany
public List<BranchCompany> getAll() {
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
......
......@@ -90,10 +90,6 @@ public class BranchCompanyController extends BaseController<BranchCompanyBiz> {
public RestResponse<List<BranchCompany>> findAll(){
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)
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