零售公司店均好友top10

master
wyj2080 6 years ago
parent 3fd4bb1b37
commit 6c9bfe2c72

@ -260,6 +260,10 @@ public class CustomerViewService {
int tmpCount = shopIdCountMap.get(shopId) == null ? 0 : Math.toIntExact(shopIdCountMap.get(shopId));
newCustomerCount.updateAndGet(v -> v + tmpCount);
});
//平均
if(companyShopList.size() > 0){
newCustomerCount.updateAndGet(v -> Math.round(v / (float)companyShopList.size()));
}
orgViewDO.setNewCustomerCount(newCustomerCount.get());
tmpList.add(orgViewDO);
});

Loading…
Cancel
Save