Commit df890cde by 陶光胜

门店导出修改

parent 435e4fc6
......@@ -58,6 +58,8 @@ public class StoreInfoDTO implements Serializable {
*/
private String areaId;
private String countyId;
/**
* 经度
*/
......@@ -472,4 +474,12 @@ public class StoreInfoDTO implements Serializable {
public void setLocation(List<Double> location) {
this.location = location;
}
public String getCountyId() {
return countyId;
}
public void setCountyId(String countyId) {
this.countyId = countyId;
}
}
......@@ -408,6 +408,7 @@ public class StoreApiServiceImpl implements StoreApiService {
List<StoreDTO> result = new ArrayList<>();
for(int i=0; i<list.size(); i++){
StoreDTO storeDTO = JSON.toJavaObject(list.get(i), StoreDTO.class);
storeDTO.setAreaId(storeDTO.getCountyId());
if(StringUtils.isNotBlank(storeSearchDTO.getLatitude()) && StringUtils.isNotBlank(storeSearchDTO.getLongitude()) &&
CollectionUtils.isNotEmpty(storeDTO.getLocation())){
double v = GeoUtils.arcDistance(Double.valueOf(storeSearchDTO.getLatitude()), Double.valueOf(storeSearchDTO.getLongitude()),
......
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