From dc3abbbdb42c1dded9b6bb9eaedf56595e96a16c Mon Sep 17 00:00:00 2001 From: wyj2080 <1603068044@qq.com> Date: Tue, 28 Apr 2020 20:48:51 +0800 Subject: [PATCH] =?UTF-8?q?=E8=AE=A1=E6=97=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../kiisoo/ic/customer/service/CustomerViewService.java | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/src/main/java/com/kiisoo/ic/customer/service/CustomerViewService.java b/src/main/java/com/kiisoo/ic/customer/service/CustomerViewService.java index c2abfe5..b85baf5 100644 --- a/src/main/java/com/kiisoo/ic/customer/service/CustomerViewService.java +++ b/src/main/java/com/kiisoo/ic/customer/service/CustomerViewService.java @@ -110,16 +110,22 @@ public class CustomerViewService { System.out.println("customerList:" + (s3.getTime()-s2.getTime())); //好友总数 Long customerCount = opCustomerDOMapper.selectCustomerCount(shopIds, null, null, null); + Date s33 = new Date(); + System.out.println("好友总数:" + (s33.getTime()-s3.getTime())); //好友总数(去重) Long validCustomerCount = opCustomerDOMapper.selectCustomerCount(shopIds, VALID, null, null); + Date s44 = new Date(); + System.out.println("好友总数去重:" + (s44.getTime()-s33.getTime())); //删除拉黑数 Long validDeleteCustomerCount = poiCustomerContactDataStatMapper.selectDeleteCustomer(shopIds).stream() .filter(contactDO -> contactDO.getNegativeFeedbackCnt() != null) .map(PoiCustomerContactDataStat::getNegativeFeedbackCnt).mapToLong(a -> a).sum(); + Date s55 = new Date(); + System.out.println("好友总数去重:" + (s55.getTime()-s44.getTime())); //会员总数 Long vipCount = opVipDOMapper.selectVipCount(shopIds, null, null); Date s4 = new Date(); - System.out.println("总数:" + (s4.getTime()-s3.getTime())); + System.out.println("会员总数:" + (s4.getTime()-s55.getTime())); //设置柱状图list List validCustomerList = customerList.stream().filter(customerDO -> VALID.equals(customerDO.getValidType())).collect(Collectors.toList());