|
|
@@ -144,7 +144,7 @@ public class MarketingCampaignServiceImpl
|
|
|
Map<Long, Long> pendingMap = countEmailsByCampaign(marketingCampaignIdList,
|
|
|
"count(*) as cnt", qw -> qw.eq("status", -1));
|
|
|
Map<Long, Long> sentMap = countEmailsByCampaign(marketingCampaignIdList,
|
|
|
- "count(*) as cnt", qw -> qw.eq("status", 1).eq("has_first", 1));
|
|
|
+ "count(*) as cnt", qw -> qw.eq("status", 1));
|
|
|
Map<Long, Long> firstSentMap = countEmailsByCampaign(marketingCampaignIdList,
|
|
|
"count(*) as cnt", qw -> qw.eq("status", 1).eq("has_first", 1));
|
|
|
Map<Long, Long> openedEmailMap = countEmailsByCampaign(marketingCampaignIdList,
|
|
|
@@ -176,7 +176,7 @@ public class MarketingCampaignServiceImpl
|
|
|
int totalEmail = toInt(totalEmailMap.get(id));
|
|
|
|
|
|
int firstTotalEmail = toInt(firstTotalEmailMap.get(id));
|
|
|
- vo.setSentRate(totalEmail > 0 ? (double) firstSent / firstTotalEmail : 0.0);
|
|
|
+ vo.setSentRate(totalEmail > 0 ? (double) sent / totalEmail : 0.0);
|
|
|
vo.setOpenRateText(buildRate(toInt(openedEmailMap.get(id)), sent));
|
|
|
vo.setReplyRateText(buildRate(toInt(repliedEmailMap.get(id)), sent));
|
|
|
}
|
|
|
@@ -272,7 +272,7 @@ public class MarketingCampaignServiceImpl
|
|
|
Map<Long, List<MarketEmailsEntity>> emailsBySopDetail = new HashMap<>();
|
|
|
List<MarketEmailsEntity> campaignEmails = marketEmailsService.lambdaQuery()
|
|
|
.eq(MarketEmailsEntity::getMarketingCampaignId, id)
|
|
|
- .eq(MarketEmailsEntity::getHasFirst, 1)
|
|
|
+// .eq(MarketEmailsEntity::getHasFirst, 1)
|
|
|
.ne(MarketEmailsEntity::getStatus,-3)
|
|
|
.eq(MarketEmailsEntity::getIsDelete, CommonConstant.DEL_FLAG_0)
|
|
|
.list();
|
|
|
@@ -350,7 +350,7 @@ public class MarketingCampaignServiceImpl
|
|
|
Integer sentCountLong = marketEmailsService.lambdaQuery()
|
|
|
.eq(MarketEmailsEntity::getMarketingCampaignId, id)
|
|
|
.eq(MarketEmailsEntity::getIsDelete, CommonConstant.DEL_FLAG_0)
|
|
|
- .eq(MarketEmailsEntity::getHasFirst, 1)
|
|
|
+// .eq(MarketEmailsEntity::getHasFirst, 1)
|
|
|
.eq(MarketEmailsEntity::getStatus, 1)
|
|
|
.count();
|
|
|
Integer sentCount = sentCountLong == null ? 0 : sentCountLong.intValue();
|
|
|
@@ -360,7 +360,7 @@ public class MarketingCampaignServiceImpl
|
|
|
Integer emailCountAllLong = marketEmailsService.lambdaQuery()
|
|
|
.eq(MarketEmailsEntity::getMarketingCampaignId, id)
|
|
|
.eq(MarketEmailsEntity::getIsDelete, CommonConstant.DEL_FLAG_0)
|
|
|
- .eq(MarketEmailsEntity::getHasFirst, 1)
|
|
|
+// .eq(MarketEmailsEntity::getHasFirst, 1)
|
|
|
.count();
|
|
|
int emailCountAll = emailCountAllLong == null ? 0 : emailCountAllLong.intValue();
|
|
|
|
|
|
@@ -369,7 +369,7 @@ public class MarketingCampaignServiceImpl
|
|
|
Integer openCountLong = marketEmailsService.lambdaQuery()
|
|
|
.eq(MarketEmailsEntity::getMarketingCampaignId, id)
|
|
|
.eq(MarketEmailsEntity::getIsDelete, CommonConstant.DEL_FLAG_0)
|
|
|
- .eq(MarketEmailsEntity::getHasFirst, 1)
|
|
|
+// .eq(MarketEmailsEntity::getHasFirst, 1)
|
|
|
.eq(MarketEmailsEntity::getStatus, 1)
|
|
|
.eq(MarketEmailsEntity::getHasReader, 1)
|
|
|
.count();
|