Commit da2c0a20 by zhiwj

添加经纬度的转换

parent e97937fe
......@@ -1133,7 +1133,12 @@ public class StoreApiServiceImpl implements StoreApiService {
if(response.isSuccess() && response.getResult() != null){
List<StoreDTO> result = response.getResult().getResult();
if(CollectionUtils.isNotEmpty(result)){
return ServiceResponse.success(result.get(0));
StoreDTO storeDTO = result.get(0);
if (CollectionUtils.isNotEmpty(storeDTO.getLocation())) {
storeDTO.setLongitude(storeDTO.getLocation().get(0).toString());
storeDTO.setLatitude(storeDTO.getLocation().get(1).toString());
}
return ServiceResponse.success(storeDTO);
}
}
return ServiceResponse.success();
......
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