Commit a82c1c60 by guojuxing

经纬度调整

parent 50fa1af7
......@@ -723,6 +723,13 @@ public class WmStoreSyncController {
if (CollectionUtils.isNotEmpty(storeDTO.getLocation())) {
weimobPhysicalStoreDTO.setLongitude(new BigDecimal(storeDTO.getLocation().get(0)));
weimobPhysicalStoreDTO.setLatitude(new BigDecimal(storeDTO.getLocation().get(1)));
} else {
if (org.apache.commons.lang.StringUtils.isNotBlank(storeDTO.getLongitude())) {
weimobPhysicalStoreDTO.setLongitude(new BigDecimal(storeDTO.getLongitude()));
}
if (org.apache.commons.lang.StringUtils.isNotBlank(storeDTO.getLatitude())) {
weimobPhysicalStoreDTO.setLatitude(new BigDecimal(storeDTO.getLatitude()));
}
}
//省市区名称
String fullArea = StringUtils.isNotBlank(storeDTO.getProvinces()) ?
......@@ -807,6 +814,13 @@ public class WmStoreSyncController {
if (CollectionUtils.isNotEmpty(storeDTO.getLocation())) {
weimobPhysicalStoreDTO.setLongitude(new BigDecimal(storeDTO.getLocation().get(0)));
weimobPhysicalStoreDTO.setLatitude(new BigDecimal(storeDTO.getLocation().get(1)));
} else {
if (org.apache.commons.lang.StringUtils.isNotBlank(storeDTO.getLongitude())) {
weimobPhysicalStoreDTO.setLongitude(new BigDecimal(storeDTO.getLongitude()));
}
if (org.apache.commons.lang.StringUtils.isNotBlank(storeDTO.getLatitude())) {
weimobPhysicalStoreDTO.setLatitude(new BigDecimal(storeDTO.getLatitude()));
}
}
//省市区名称
String fullArea = StringUtils.isNotBlank(storeDTO.getProvinces()) ?
......
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