|
|
@@ -559,6 +559,8 @@ public class StatisticsDataServiceImpl implements StatisticsDataService {
|
|
|
private void exportBusinessMonthlyData(List<ExcelSheetAndData> excelSheetDataList, Long startTime, Long endTime) {
|
|
|
//月付、季付、年付
|
|
|
Long nf_goodsId = 1l;
|
|
|
+ Long gpt_goodsId = 18l;
|
|
|
+ Long mj_goodsId = 26l;
|
|
|
DateTime thisMonth = DateTime.of(startTime);
|
|
|
DateTime nextMonth = DateUtil.offsetMonth(thisMonth, 1);
|
|
|
String lastMonth = DateUtil.offsetMonth(thisMonth, -1).toDateStr();
|
|
|
@@ -581,6 +583,9 @@ public class StatisticsDataServiceImpl implements StatisticsDataService {
|
|
|
Integer monthNfRenewNumOfUser = statisticsExportMapper.getMonthNfRenewNumOfUser(nf_goodsId, thisMonth, nextMonth);
|
|
|
Integer monthNfNoExRenewNumOfUser = monthNfRenewNumOfUser - monthNfExRenewNumOfUser;
|
|
|
|
|
|
+ //奈飞超期购买 中间隔断一个月购买的用户数
|
|
|
+ Integer overNfPayNumOfUser = statisticsExportMapper.getOverPayByGoodsId(nf_goodsId, null, lastMonth, thisMonth, nextMonth);
|
|
|
+
|
|
|
//Ai Gpt月付
|
|
|
List<Long> gptMonthSkuId = statisticsExportMapper.getAiMonthPlus(18l);
|
|
|
//Ai类gptplus当月到期用户数
|
|
|
@@ -593,6 +598,8 @@ public class StatisticsDataServiceImpl implements StatisticsDataService {
|
|
|
Integer monthAiGptRenewNumOfUser = statisticsExportMapper.getMonthAiRenewNumOfUser(gptMonthSkuId, thisMonth, nextMonth);
|
|
|
//非当月 续费人数
|
|
|
Integer monthAiGptNoExRenewNumOfUser = monthAiGptRenewNumOfUser - monthAiGptExRenewNumOfUser;
|
|
|
+ //超期购买 中间隔断一个月购买的用户数
|
|
|
+ Integer overGptPayNumOfUser = statisticsExportMapper.getOverPayByGoodsId(null, gptMonthSkuId, lastMonth, thisMonth, nextMonth);
|
|
|
|
|
|
//Ai midjourney 月付
|
|
|
List<Long> midJourneyMonthSkuId = statisticsExportMapper.getAiMonthPlus(26l);
|
|
|
@@ -605,6 +612,8 @@ public class StatisticsDataServiceImpl implements StatisticsDataService {
|
|
|
Integer monthAiMidRenewNumOfUser = statisticsExportMapper.getMonthAiRenewNumOfUser(midJourneyMonthSkuId, thisMonth, nextMonth);
|
|
|
//非当月 midjourney续费人数
|
|
|
Integer monthAiMidNoExRenewNumOfUser = monthAiMidRenewNumOfUser - monthAiMidExRenewNumOfUser;
|
|
|
+ //超期购买 中间隔断一个月购买的用户数
|
|
|
+ Integer overMjPayNumOfUser = statisticsExportMapper.getOverPayByGoodsId(null, midJourneyMonthSkuId, lastMonth, thisMonth, nextMonth);
|
|
|
|
|
|
//流媒体当月首单
|
|
|
Integer monthStreamingNewNumOfUser = statisticsExportMapper.getMonthStreamingNewNumOfUser(thisMonth, nextMonth);
|
|
|
@@ -659,14 +668,17 @@ public class StatisticsDataServiceImpl implements StatisticsDataService {
|
|
|
.setMonthNfExRenewNumOfUser(monthNfExRenewNumOfUser)
|
|
|
.setMonthNfExRePayNumOfUser(monthNfExRePayNumOfUser)
|
|
|
.setMonthNfNoExRenewNumOfUser(monthNfNoExRenewNumOfUser)
|
|
|
+ .setOverNfPayNumOfUser(overNfPayNumOfUser)
|
|
|
.setMonthAiGptExNumOfUser(monthAiGptExNumOfUser)
|
|
|
.setMonthAiGptExRenewNumOfUser(monthAiGptExRenewNumOfUser)
|
|
|
.setMonthAiGptExRePayNumOfUser(monthAiGptExRePayNumOfUser)
|
|
|
.setMonthAiGptNoExRenewNumOfUser(monthAiGptNoExRenewNumOfUser)
|
|
|
+ .setOverGptPayNumOfUser(overGptPayNumOfUser)
|
|
|
.setMonthAiMidExNumOfUser(monthAiMidExNumOfUser)
|
|
|
.setMonthAiMidExRenewNumOfUser(monthAiMidExRenewNumOfUser)
|
|
|
.setMonthAiMidExRePayNumOfUser(monthAiMidExRePayNumOfUser)
|
|
|
.setMonthAiMidNoExRenewNumOfUser(monthAiMidNoExRenewNumOfUser)
|
|
|
+ .setOverMidPayNumOfUser(overMjPayNumOfUser)
|
|
|
.setMonthStreamingNewNumOfUser(monthStreamingNewNumOfUser)
|
|
|
.setMonthStreamingNewPayOtherNumOfUser(monthStreamingNewPayOtherNumOfUser)
|
|
|
.setMonthStreamingNewPayAiNumOfUser(monthStreamingNewPayAiNumOfUser)
|