|
@@ -135,6 +135,8 @@ public class MarketingCampaignServiceImpl
|
|
|
"count(distinct customer_id) as cnt", qw -> qw.eq("has_reply", 1));
|
|
"count(distinct customer_id) as cnt", qw -> qw.eq("has_reply", 1));
|
|
|
Map<Long, Long> protectMap = countEmailsByCampaign(marketingCampaignIdList,
|
|
Map<Long, Long> protectMap = countEmailsByCampaign(marketingCampaignIdList,
|
|
|
"count(distinct customer_id) as cnt", qw -> qw.eq("has_protect", 1));
|
|
"count(distinct customer_id) as cnt", qw -> qw.eq("has_protect", 1));
|
|
|
|
|
+ Map<Long, Long> suspendMap = countEmailsByCampaign(marketingCampaignIdList,
|
|
|
|
|
+ "count(distinct customer_id) as cnt", qw -> qw.eq("has_suspended", 1));
|
|
|
Map<Long, Long> pendingMap = countEmailsByCampaign(marketingCampaignIdList,
|
|
Map<Long, Long> pendingMap = countEmailsByCampaign(marketingCampaignIdList,
|
|
|
"count(*) as cnt", qw -> qw.eq("status", -1));
|
|
"count(*) as cnt", qw -> qw.eq("status", -1));
|
|
|
Map<Long, Long> sentMap = countEmailsByCampaign(marketingCampaignIdList,
|
|
Map<Long, Long> sentMap = countEmailsByCampaign(marketingCampaignIdList,
|
|
@@ -157,6 +159,8 @@ public class MarketingCampaignServiceImpl
|
|
|
vo.setOpenedCustomerCount(toInt(openedMap.get(id)));
|
|
vo.setOpenedCustomerCount(toInt(openedMap.get(id)));
|
|
|
vo.setRepliedCustomerCount(toInt(repliedMap.get(id)));
|
|
vo.setRepliedCustomerCount(toInt(repliedMap.get(id)));
|
|
|
vo.setProtectWhitelistCount(toInt(protectMap.get(id)));
|
|
vo.setProtectWhitelistCount(toInt(protectMap.get(id)));
|
|
|
|
|
+ vo.setSuspendlistCount(toInt(suspendMap.get(id)));
|
|
|
|
|
+ vo.setManualInterventionCount(vo.getSuspendlistCount()+vo.getProtectWhitelistCount());
|
|
|
int pending = toInt(pendingMap.get(id));
|
|
int pending = toInt(pendingMap.get(id));
|
|
|
int sent = toInt(sentMap.get(id));
|
|
int sent = toInt(sentMap.get(id));
|
|
|
int firstSent = toInt(firstSentMap.get(id));
|
|
int firstSent = toInt(firstSentMap.get(id));
|