|
|
@ -137,9 +137,9 @@ public class HighMerchantStoreController { |
|
|
|
@ApiOperation(value = "查询商户列表") |
|
|
|
@ApiOperation(value = "查询商户列表") |
|
|
|
public ResponseData getMerchantList(@RequestParam(name = "regionId", required = true) String regionId) { |
|
|
|
public ResponseData getMerchantList(@RequestParam(name = "regionId", required = true) String regionId) { |
|
|
|
try { |
|
|
|
try { |
|
|
|
SecRegion region = commonService.getRegionsById(Long.parseLong(regionId)); |
|
|
|
SecRegion region = commonService.getParentByRegion(Long.parseLong(regionId)); |
|
|
|
if (region != null && region.getParentId() != null) { |
|
|
|
if (region != null) { |
|
|
|
BsCompany bsCompany = bsCompanyService.selectCompanyByRegion(region.getParentId().toString()); |
|
|
|
BsCompany bsCompany = bsCompanyService.selectCompanyByRegion(region.getRegionId().toString()); |
|
|
|
Map<String, Object> map = new HashMap<>(); |
|
|
|
Map<String, Object> map = new HashMap<>(); |
|
|
|
map.put("companyId", bsCompany.getId()); |
|
|
|
map.put("companyId", bsCompany.getId()); |
|
|
|
map.put("status", 1); |
|
|
|
map.put("status", 1); |
|
|
|