|
|
|
@ -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);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|