Commit a499b1cb authored by hezhen's avatar hezhen

123

parent 6559efd4
...@@ -217,6 +217,12 @@ public class BranchCompanyBiz extends BaseBiz<BranchCompanyMapper, BranchCompany ...@@ -217,6 +217,12 @@ 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,6 +90,10 @@ public class BranchCompanyController extends BaseController<BranchCompanyBiz> { ...@@ -90,6 +90,10 @@ 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