fix 城市为null

master
luoyang 5 years ago
parent e16597318a
commit a4081b1684

@ -10,7 +10,7 @@
<modelVersion>4.0.0</modelVersion>
<artifactId>manage</artifactId>
<version>1.2.21</version>
<version>1.2.22</version>
<properties>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>

@ -389,7 +389,7 @@ public class CustomersAnalysisServiceImp implements CustomersAnalysisService {
List<JSONObject> mostUseAddressByCustomer = orderAnalysisMapper.mostUseAddressByCustomer(params);
for (JSONObject address : mostUseAddressByCustomer) {
String city = lookupService.getLocation(address.getString("customer_ip")).city;
if (topAddress.size() < 3 && !topAddress.contains(city)) {
if (topAddress.size() < 3 && !topAddress.contains(city) && StringUtils.isNotBlank(city)) {
topAddress.add(city);
}
}

Loading…
Cancel
Save