Commit 5ab14cf6 authored by 周健威's avatar 周健威

Merge remote-tracking branch 'origin/master'

parents e8594b25 83075f63
...@@ -97,7 +97,7 @@ public class BranchCompanyBiz extends BaseBiz<BranchCompanyMapper, BranchCompany ...@@ -97,7 +97,7 @@ public class BranchCompanyBiz extends BaseBiz<BranchCompanyMapper, BranchCompany
if(addrTown!=null) { if(addrTown!=null) {
criteria.andCondition(" addr_town = '" + addrTown + "'"); criteria.andCondition(" addr_town = '" + addrTown + "'");
} }
if(DATA_ALL_FALSE.equals(userDTO.getDataAll())) { if(userDTO != null && DATA_ALL_FALSE.equals(userDTO.getDataAll())) {
if(StringUtils.isNotBlank(userDTO.getDataZone())) { if(StringUtils.isNotBlank(userDTO.getDataZone())) {
criteria.andIn(COMPANY_ZONE_ID, userDTO.dataZone2List()); criteria.andIn(COMPANY_ZONE_ID, userDTO.dataZone2List());
} }
......
...@@ -41,7 +41,7 @@ public class BranchCompanyController extends BaseController<BranchCompanyBiz> { ...@@ -41,7 +41,7 @@ public class BranchCompanyController extends BaseController<BranchCompanyBiz> {
@Autowired @Autowired
private UserAuthConfig userAuthConfig; private UserAuthConfig userAuthConfig;
@IgnoreUserToken
@RequestMapping(value ="/page",method = RequestMethod.GET) @RequestMapping(value ="/page",method = RequestMethod.GET)
public RestResponse<PageDataVo<BranchCompany>> page(@RequestParam Integer page, @RequestParam Integer limit, public RestResponse<PageDataVo<BranchCompany>> page(@RequestParam Integer page, @RequestParam Integer limit,
@RequestParam(required = false) Integer addrProvince, @RequestParam(required = false) Integer addrCity, @RequestParam(required = false) Integer addrProvince, @RequestParam(required = false) Integer addrCity,
...@@ -52,6 +52,14 @@ public class BranchCompanyController extends BaseController<BranchCompanyBiz> { ...@@ -52,6 +52,14 @@ public class BranchCompanyController extends BaseController<BranchCompanyBiz> {
return RestResponse.data(baseBiz.getAll(page,limit,addrProvince, addrCity, addrTown, userDTO)); return RestResponse.data(baseBiz.getAll(page,limit,addrProvince, addrCity, addrTown, userDTO));
} }
@IgnoreUserToken
@RequestMapping(value = "/allPage", method = RequestMethod.GET)
public RestResponse<PageDataVo<BranchCompany>> allPage(@RequestParam Integer page, @RequestParam Integer limit,
@RequestParam(required = false) Integer addrProvince, @RequestParam(required = false) Integer addrCity,
@RequestParam(required = false) Integer addrTown) {
return RestResponse.data(baseBiz.getAll(page,limit,addrProvince, addrCity, addrTown, null));
}
@RequestMapping(value ="",method = RequestMethod.GET) @RequestMapping(value ="",method = RequestMethod.GET)
public RestResponse<List<BranchCompany>> getAll() { public RestResponse<List<BranchCompany>> getAll() {
return RestResponse.data(baseBiz.getAll()); return RestResponse.data(baseBiz.getAll());
......
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