|
|
@@ -590,6 +590,8 @@ public class StatisticsDataServiceImpl implements StatisticsDataService {
|
|
|
Long nf_goodsId = 1l;
|
|
|
Long gpt_goodsId = 18l;
|
|
|
Long mj_goodsId = 26l;
|
|
|
+ //gpt代充
|
|
|
+ Long gptRecharge_goods_id = 40L;
|
|
|
DateTime thisMonth = DateTime.of(startTime);
|
|
|
DateTime nextMonth = DateUtil.offsetMonth(thisMonth, 1);
|
|
|
String lastMonth = DateUtil.offsetMonth(thisMonth, -1).toDateStr();
|
|
|
@@ -630,19 +632,30 @@ public class StatisticsDataServiceImpl implements StatisticsDataService {
|
|
|
//超期购买 中间隔断一个月购买的用户数
|
|
|
Integer overGptPayNumOfUser = statisticsExportMapper.getOverPayByGoodsId(null, gptMonthSkuId, lastMonth, thisMonth, nextMonth);
|
|
|
|
|
|
- //Ai midjourney 月付
|
|
|
- List<Long> midJourneyMonthSkuId = statisticsExportMapper.getAiMonthPlus(26l);
|
|
|
- Integer monthAiMidExNumOfUser = statisticsExportMapper.getMonthAiExNumOfUser(midJourneyMonthSkuId, lastMonth, thisMonth);
|
|
|
- //Ai midjourney月付 A主动续费
|
|
|
- Integer monthAiMidExRenewNumOfUser = statisticsExportMapper.getMonthAiExNumOfUserByType(midJourneyMonthSkuId, 2, lastMonth, thisMonth, nextMonth.toDateStr());
|
|
|
- //Ai midjourney月付 再次购买
|
|
|
- Integer monthAiMidExRePayNumOfUser = statisticsExportMapper.getMonthAiExNumOfUserByType(midJourneyMonthSkuId, 1, lastMonth, thisMonth, nextMonth.toDateStr());
|
|
|
- //Ai midjourney当月续费人数
|
|
|
- Integer monthAiMidRenewNumOfUser = statisticsExportMapper.getMonthAiRenewNumOfUser(midJourneyMonthSkuId, thisMonth, nextMonth);
|
|
|
- //非当月 midjourney续费人数
|
|
|
- Integer monthAiMidNoExRenewNumOfUser = monthAiMidRenewNumOfUser - monthAiMidExRenewNumOfUser;
|
|
|
- //超期购买 中间隔断一个月购买的用户数
|
|
|
- Integer overMjPayNumOfUser = statisticsExportMapper.getOverPayByGoodsId(null, midJourneyMonthSkuId, lastMonth, thisMonth, nextMonth);
|
|
|
+// //Ai midjourney 月付
|
|
|
+// List<Long> midJourneyMonthSkuId = statisticsExportMapper.getAiMonthPlus(26l);
|
|
|
+// Integer monthAiMidExNumOfUser = statisticsExportMapper.getMonthAiExNumOfUser(midJourneyMonthSkuId, lastMonth, thisMonth);
|
|
|
+// //Ai midjourney月付 A主动续费
|
|
|
+// Integer monthAiMidExRenewNumOfUser = statisticsExportMapper.getMonthAiExNumOfUserByType(midJourneyMonthSkuId, 2, lastMonth, thisMonth, nextMonth.toDateStr());
|
|
|
+// //Ai midjourney月付 再次购买
|
|
|
+// Integer monthAiMidExRePayNumOfUser = statisticsExportMapper.getMonthAiExNumOfUserByType(midJourneyMonthSkuId, 1, lastMonth, thisMonth, nextMonth.toDateStr());
|
|
|
+// //Ai midjourney当月续费人数
|
|
|
+// Integer monthAiMidRenewNumOfUser = statisticsExportMapper.getMonthAiRenewNumOfUser(midJourneyMonthSkuId, thisMonth, nextMonth);
|
|
|
+// //非当月 midjourney续费人数
|
|
|
+// Integer monthAiMidNoExRenewNumOfUser = monthAiMidRenewNumOfUser - monthAiMidExRenewNumOfUser;
|
|
|
+// //超期购买 中间隔断一个月购买的用户数
|
|
|
+// Integer overMjPayNumOfUser = statisticsExportMapper.getOverPayByGoodsId(null, midJourneyMonthSkuId, lastMonth, thisMonth, nextMonth);
|
|
|
+
|
|
|
+ //gpt代充
|
|
|
+ //gpt代充月付、季付当月过期人数
|
|
|
+ Integer monthGptRechargeExNumOfUser = statisticsExportMapper.getMonthGptRechargeExNumOfUser(gptRecharge_goods_id, lastYearMonth, lastElevMonth, lastThreeMonth, lastTwoMonth, lastMonth, thisMonth.toDateStr());
|
|
|
+ //gpt代充 当月过期再次购买
|
|
|
+ Integer monthGptRechargeRePayNumOfUser = statisticsExportMapper.getMonthGptRechargeNumOfUserByType(gptRecharge_goods_id, 1, lastYearMonth, lastElevMonth, lastThreeMonth, lastTwoMonth, lastMonth, thisMonth.toDateStr(), nextMonth.toDateStr());
|
|
|
+ //gpt代充 非当月到期当月续费人数
|
|
|
+ Integer monthGptRechargeRenewNoExNumOfUser = statisticsExportMapper.getMonthGptRechargeNoExRenewNumOfUser(gptRecharge_goods_id, lastTwoMonth, thisMonth, nextMonth);
|
|
|
+ //gpt代充超期购买 中间隔断一个月购买的用户数
|
|
|
+ Integer overGptRechargePayNumOfUser = statisticsExportMapper.getOverPayByGoodsId(gptRecharge_goods_id, null, lastMonth, thisMonth, nextMonth);
|
|
|
+
|
|
|
|
|
|
//油管年付
|
|
|
Long ybGoodsId = 5l;
|
|
|
@@ -719,11 +732,15 @@ public class StatisticsDataServiceImpl implements StatisticsDataService {
|
|
|
.setMonthAiGptExRePayNumOfUser(monthAiGptExRePayNumOfUser)
|
|
|
.setMonthAiGptNoExRenewNumOfUser(monthAiGptNoExRenewNumOfUser)
|
|
|
.setOverGptPayNumOfUser(overGptPayNumOfUser)
|
|
|
- .setMonthAiMidExNumOfUser(monthAiMidExNumOfUser)
|
|
|
- .setMonthAiMidExRenewNumOfUser(monthAiMidExRenewNumOfUser)
|
|
|
- .setMonthAiMidExRePayNumOfUser(monthAiMidExRePayNumOfUser)
|
|
|
- .setMonthAiMidNoExRenewNumOfUser(monthAiMidNoExRenewNumOfUser)
|
|
|
- .setOverMidPayNumOfUser(overMjPayNumOfUser)
|
|
|
+// .setMonthAiMidExNumOfUser(monthAiMidExNumOfUser)
|
|
|
+// .setMonthAiMidExRenewNumOfUser(monthAiMidExRenewNumOfUser)
|
|
|
+// .setMonthAiMidExRePayNumOfUser(monthAiMidExRePayNumOfUser)
|
|
|
+// .setMonthAiMidNoExRenewNumOfUser(monthAiMidNoExRenewNumOfUser)
|
|
|
+// .setOverMidPayNumOfUser(overMjPayNumOfUser)
|
|
|
+ .setMonthAiGptRechargeExNumOfUser(monthGptRechargeExNumOfUser)
|
|
|
+ .setMonthAiGptRechargeExRePayNumOfUser(monthGptRechargeRePayNumOfUser)
|
|
|
+ .setMonthAiGptRechargeNoExRenewNumOfUser(monthGptRechargeRenewNoExNumOfUser)
|
|
|
+ .setOverGptRechargePayNumOfUser(overGptRechargePayNumOfUser)
|
|
|
.setMonthStreamingNewNumOfUser(monthStreamingNewNumOfUser)
|
|
|
.setMonthStreamingNewPayOtherNumOfUser(monthStreamingNewPayOtherNumOfUser)
|
|
|
.setMonthStreamingNewPayAiNumOfUser(monthStreamingNewPayAiNumOfUser)
|