|
|
@ -77,6 +77,7 @@ public class HighGasController { |
|
|
|
@ApiOperation(value = "查询加油站列表") |
|
|
|
@ApiOperation(value = "查询加油站列表") |
|
|
|
public ResponseData getGasStoreList(@RequestParam(name = "isTyAgent", required = false) Boolean isTyAgent, |
|
|
|
public ResponseData getGasStoreList(@RequestParam(name = "isTyAgent", required = false) Boolean isTyAgent, |
|
|
|
@RequestParam(name = "storeName", required = false) String storeName, |
|
|
|
@RequestParam(name = "storeName", required = false) String storeName, |
|
|
|
|
|
|
|
@RequestParam(name = "sourceType", required = false) Integer sourceType, |
|
|
|
@RequestParam(name = "distance", required = true) Integer distanceRecent, |
|
|
|
@RequestParam(name = "distance", required = true) Integer distanceRecent, |
|
|
|
@RequestParam(name = "regionId", required = true) Long regionId, |
|
|
|
@RequestParam(name = "regionId", required = true) Long regionId, |
|
|
|
@RequestParam(name = "oilNoName", required = true) String oilNoName, |
|
|
|
@RequestParam(name = "oilNoName", required = true) String oilNoName, |
|
|
@ -86,12 +87,16 @@ public class HighGasController { |
|
|
|
@RequestParam(name = "pageSize", required = true) Integer pageSize |
|
|
|
@RequestParam(name = "pageSize", required = true) Integer pageSize |
|
|
|
) { |
|
|
|
) { |
|
|
|
try { |
|
|
|
try { |
|
|
|
|
|
|
|
String type = "1,2,3,4,5,6"; |
|
|
|
if (StringUtils.isBlank(storeName)) { |
|
|
|
if (StringUtils.isBlank(storeName)) { |
|
|
|
storeName = null; |
|
|
|
storeName = null; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
if (sourceType != null && sourceType.equals(7)) { |
|
|
|
|
|
|
|
type = "7"; |
|
|
|
|
|
|
|
} |
|
|
|
SecRegion region = commonService.getParentByRegion(regionId); |
|
|
|
SecRegion region = commonService.getParentByRegion(regionId); |
|
|
|
if (region != null) { |
|
|
|
if (region != null) { |
|
|
|
List<Map<String, Object>> storeList = highGasOilPriceService.getStoreListByOilNo(storeName,region.getRegionId(), oilNoName); |
|
|
|
List<Map<String, Object>> storeList = highGasOilPriceService.getStoreListByOilNo(storeName,region.getRegionId(), oilNoName , type); |
|
|
|
for (Map<String, Object> store : storeList) { |
|
|
|
for (Map<String, Object> store : storeList) { |
|
|
|
if (MapUtils.getInteger(store, "source_type").equals(1)) { |
|
|
|
if (MapUtils.getInteger(store, "source_type").equals(1)) { |
|
|
|
if (StringUtils.isNotBlank(MapUtils.getString(store, "store_logo"))) { |
|
|
|
if (StringUtils.isNotBlank(MapUtils.getString(store, "store_logo"))) { |
|
|
|