Commit 78df3845 by zhiwj

附近门店返回经纬度

parent 200136ac
......@@ -718,6 +718,10 @@ public class StoreApiServiceImpl implements StoreApiService {
List<StorePhotoDTO> defaultList = Collections.singletonList(storePhotoDTO);
if (CollectionUtils.isNotEmpty(list)) {
for (StoreDTO storeDTO : list) {
if (CollectionUtils.isNotEmpty(storeDTO.getLocation())) {
storeDTO.setLongitude(storeDTO.getLocation().get(0).toString());
storeDTO.setLatitude(storeDTO.getLocation().get(1).toString());
}
if (CollectionUtils.isEmpty(storeDTO.getPhotoList())) {
storeDTO.setPhotoList(defaultList);
}
......
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