|
@@ -131,7 +131,7 @@ public class GameDataServiceImpl implements IGameDataService {
|
|
.rechargeUserCount(Long.valueOf(buyAmountD3[1]))
|
|
.rechargeUserCount(Long.valueOf(buyAmountD3[1]))
|
|
.increase(new BigDecimal(buyAmountD3[2]))
|
|
.increase(new BigDecimal(buyAmountD3[2]))
|
|
.back(new BigDecimal(buyAmountD3[3]))
|
|
.back(new BigDecimal(buyAmountD3[3]))
|
|
- .multiples(new BigDecimal(buyAmountD3[4]).setScale(2,RoundingMode.HALF_UP))
|
|
|
|
|
|
+ .multiples(new BigDecimal(buyAmountD3[4]).setScale(2, RoundingMode.HALF_UP))
|
|
.build());
|
|
.build());
|
|
|
|
|
|
String[] buyAmountD5 = vo.getBuyAmountD5().split("/");
|
|
String[] buyAmountD5 = vo.getBuyAmountD5().split("/");
|
|
@@ -140,7 +140,7 @@ public class GameDataServiceImpl implements IGameDataService {
|
|
.rechargeUserCount(Long.valueOf(buyAmountD5[1]))
|
|
.rechargeUserCount(Long.valueOf(buyAmountD5[1]))
|
|
.increase(new BigDecimal(buyAmountD5[2]))
|
|
.increase(new BigDecimal(buyAmountD5[2]))
|
|
.back(new BigDecimal(buyAmountD5[3]))
|
|
.back(new BigDecimal(buyAmountD5[3]))
|
|
- .multiples(new BigDecimal(buyAmountD5[4]).setScale(2,RoundingMode.HALF_UP))
|
|
|
|
|
|
+ .multiples(new BigDecimal(buyAmountD5[4]).setScale(2, RoundingMode.HALF_UP))
|
|
.build());
|
|
.build());
|
|
|
|
|
|
String[] buyAmountD7 = vo.getBuyAmountD7().split("/");
|
|
String[] buyAmountD7 = vo.getBuyAmountD7().split("/");
|
|
@@ -149,7 +149,7 @@ public class GameDataServiceImpl implements IGameDataService {
|
|
.rechargeUserCount(Long.valueOf(buyAmountD7[1]))
|
|
.rechargeUserCount(Long.valueOf(buyAmountD7[1]))
|
|
.increase(new BigDecimal(buyAmountD7[2]))
|
|
.increase(new BigDecimal(buyAmountD7[2]))
|
|
.back(new BigDecimal(buyAmountD7[3]))
|
|
.back(new BigDecimal(buyAmountD7[3]))
|
|
- .multiples(new BigDecimal(buyAmountD7[4]).setScale(2,RoundingMode.HALF_UP))
|
|
|
|
|
|
+ .multiples(new BigDecimal(buyAmountD7[4]).setScale(2, RoundingMode.HALF_UP))
|
|
.build());
|
|
.build());
|
|
|
|
|
|
String[] buyAmountD15 = vo.getBuyAmountD15().split("/");
|
|
String[] buyAmountD15 = vo.getBuyAmountD15().split("/");
|
|
@@ -158,7 +158,7 @@ public class GameDataServiceImpl implements IGameDataService {
|
|
.rechargeUserCount(Long.valueOf(buyAmountD15[1]))
|
|
.rechargeUserCount(Long.valueOf(buyAmountD15[1]))
|
|
.increase(new BigDecimal(buyAmountD15[2]))
|
|
.increase(new BigDecimal(buyAmountD15[2]))
|
|
.back(new BigDecimal(buyAmountD15[3]))
|
|
.back(new BigDecimal(buyAmountD15[3]))
|
|
- .multiples(new BigDecimal(buyAmountD15[4]).setScale(2,RoundingMode.HALF_UP))
|
|
|
|
|
|
+ .multiples(new BigDecimal(buyAmountD15[4]).setScale(2, RoundingMode.HALF_UP))
|
|
.build());
|
|
.build());
|
|
|
|
|
|
String[] buyAmountM1 = vo.getBuyAmountM1().split("/");
|
|
String[] buyAmountM1 = vo.getBuyAmountM1().split("/");
|
|
@@ -167,7 +167,7 @@ public class GameDataServiceImpl implements IGameDataService {
|
|
.rechargeUserCount(Long.valueOf(buyAmountM1[1]))
|
|
.rechargeUserCount(Long.valueOf(buyAmountM1[1]))
|
|
.increase(new BigDecimal(buyAmountM1[2]))
|
|
.increase(new BigDecimal(buyAmountM1[2]))
|
|
.back(new BigDecimal(buyAmountM1[3]))
|
|
.back(new BigDecimal(buyAmountM1[3]))
|
|
- .multiples(new BigDecimal(buyAmountM1[4]).setScale(2,RoundingMode.HALF_UP).setScale(2,RoundingMode.HALF_UP))
|
|
|
|
|
|
+ .multiples(new BigDecimal(buyAmountM1[4]).setScale(2, RoundingMode.HALF_UP).setScale(2, RoundingMode.HALF_UP))
|
|
.build());
|
|
.build());
|
|
|
|
|
|
String[] buyAmountM2 = vo.getBuyAmountM2().split("/");
|
|
String[] buyAmountM2 = vo.getBuyAmountM2().split("/");
|
|
@@ -176,7 +176,7 @@ public class GameDataServiceImpl implements IGameDataService {
|
|
.rechargeUserCount(Long.valueOf(buyAmountM2[1]))
|
|
.rechargeUserCount(Long.valueOf(buyAmountM2[1]))
|
|
.increase(new BigDecimal(buyAmountM2[2]))
|
|
.increase(new BigDecimal(buyAmountM2[2]))
|
|
.back(new BigDecimal(buyAmountM2[3]))
|
|
.back(new BigDecimal(buyAmountM2[3]))
|
|
- .multiples(new BigDecimal(buyAmountM2[4]).setScale(2,RoundingMode.HALF_UP))
|
|
|
|
|
|
+ .multiples(new BigDecimal(buyAmountM2[4]).setScale(2, RoundingMode.HALF_UP))
|
|
.build());
|
|
.build());
|
|
|
|
|
|
String[] buyAmountM3 = vo.getBuyAmountM3().split("/");
|
|
String[] buyAmountM3 = vo.getBuyAmountM3().split("/");
|
|
@@ -185,7 +185,7 @@ public class GameDataServiceImpl implements IGameDataService {
|
|
.rechargeUserCount(Long.valueOf(buyAmountM3[1]))
|
|
.rechargeUserCount(Long.valueOf(buyAmountM3[1]))
|
|
.increase(new BigDecimal(buyAmountM3[2]))
|
|
.increase(new BigDecimal(buyAmountM3[2]))
|
|
.back(new BigDecimal(buyAmountM3[3]))
|
|
.back(new BigDecimal(buyAmountM3[3]))
|
|
- .multiples(new BigDecimal(buyAmountM3[4]).setScale(2,RoundingMode.HALF_UP))
|
|
|
|
|
|
+ .multiples(new BigDecimal(buyAmountM3[4]).setScale(2, RoundingMode.HALF_UP))
|
|
.build());
|
|
.build());
|
|
|
|
|
|
String[] buyAmountM6 = vo.getBuyAmountM6().split("/");
|
|
String[] buyAmountM6 = vo.getBuyAmountM6().split("/");
|
|
@@ -194,7 +194,7 @@ public class GameDataServiceImpl implements IGameDataService {
|
|
.rechargeUserCount(Long.valueOf(buyAmountM6[1]))
|
|
.rechargeUserCount(Long.valueOf(buyAmountM6[1]))
|
|
.increase(new BigDecimal(buyAmountM6[2]))
|
|
.increase(new BigDecimal(buyAmountM6[2]))
|
|
.back(new BigDecimal(buyAmountM6[3]))
|
|
.back(new BigDecimal(buyAmountM6[3]))
|
|
- .multiples(new BigDecimal(buyAmountM6[4]).setScale(2,RoundingMode.HALF_UP))
|
|
|
|
|
|
+ .multiples(new BigDecimal(buyAmountM6[4]).setScale(2, RoundingMode.HALF_UP))
|
|
.build());
|
|
.build());
|
|
|
|
|
|
String[] buyAmountSum = vo.getBuyAmountSum().split("/");
|
|
String[] buyAmountSum = vo.getBuyAmountSum().split("/");
|
|
@@ -203,7 +203,7 @@ public class GameDataServiceImpl implements IGameDataService {
|
|
.rechargeUserCount(Long.valueOf(buyAmountSum[1]))
|
|
.rechargeUserCount(Long.valueOf(buyAmountSum[1]))
|
|
.increase(new BigDecimal(buyAmountSum[2]))
|
|
.increase(new BigDecimal(buyAmountSum[2]))
|
|
.back(new BigDecimal(buyAmountSum[3]))
|
|
.back(new BigDecimal(buyAmountSum[3]))
|
|
- .multiples(new BigDecimal(buyAmountSum[4]).setScale(2,RoundingMode.HALF_UP))
|
|
|
|
|
|
+ .multiples(new BigDecimal(buyAmountSum[4]).setScale(2, RoundingMode.HALF_UP))
|
|
.build());
|
|
.build());
|
|
|
|
|
|
//自然量数据
|
|
//自然量数据
|
|
@@ -213,7 +213,7 @@ public class GameDataServiceImpl implements IGameDataService {
|
|
.rechargeUserCount(Long.valueOf(natureAmountD1[1]))
|
|
.rechargeUserCount(Long.valueOf(natureAmountD1[1]))
|
|
.increase(new BigDecimal(natureAmountD1[2]))
|
|
.increase(new BigDecimal(natureAmountD1[2]))
|
|
.back(new BigDecimal(natureAmountD1[3]))
|
|
.back(new BigDecimal(natureAmountD1[3]))
|
|
- .multiples(new BigDecimal(natureAmountD1[4]).setScale(2,RoundingMode.HALF_UP))
|
|
|
|
|
|
+ .multiples(new BigDecimal(natureAmountD1[4]).setScale(2, RoundingMode.HALF_UP))
|
|
.build());
|
|
.build());
|
|
|
|
|
|
String[] natureAmountD3 = vo.getNatureAmountD3().split("/");
|
|
String[] natureAmountD3 = vo.getNatureAmountD3().split("/");
|
|
@@ -222,7 +222,7 @@ public class GameDataServiceImpl implements IGameDataService {
|
|
.rechargeUserCount(Long.valueOf(natureAmountD3[1]))
|
|
.rechargeUserCount(Long.valueOf(natureAmountD3[1]))
|
|
.increase(new BigDecimal(natureAmountD3[2]))
|
|
.increase(new BigDecimal(natureAmountD3[2]))
|
|
.back(new BigDecimal(natureAmountD3[3]))
|
|
.back(new BigDecimal(natureAmountD3[3]))
|
|
- .multiples(new BigDecimal(natureAmountD3[4]).setScale(2,RoundingMode.HALF_UP))
|
|
|
|
|
|
+ .multiples(new BigDecimal(natureAmountD3[4]).setScale(2, RoundingMode.HALF_UP))
|
|
.build());
|
|
.build());
|
|
|
|
|
|
String[] natureAmountD5 = vo.getNatureAmountD5().split("/");
|
|
String[] natureAmountD5 = vo.getNatureAmountD5().split("/");
|
|
@@ -231,7 +231,7 @@ public class GameDataServiceImpl implements IGameDataService {
|
|
.rechargeUserCount(Long.valueOf(natureAmountD5[1]))
|
|
.rechargeUserCount(Long.valueOf(natureAmountD5[1]))
|
|
.increase(new BigDecimal(natureAmountD5[2]))
|
|
.increase(new BigDecimal(natureAmountD5[2]))
|
|
.back(new BigDecimal(natureAmountD5[3]))
|
|
.back(new BigDecimal(natureAmountD5[3]))
|
|
- .multiples(new BigDecimal(natureAmountD5[4]).setScale(2,RoundingMode.HALF_UP))
|
|
|
|
|
|
+ .multiples(new BigDecimal(natureAmountD5[4]).setScale(2, RoundingMode.HALF_UP))
|
|
.build());
|
|
.build());
|
|
|
|
|
|
String[] natureAmountD7 = vo.getNatureAmountD7().split("/");
|
|
String[] natureAmountD7 = vo.getNatureAmountD7().split("/");
|
|
@@ -240,7 +240,7 @@ public class GameDataServiceImpl implements IGameDataService {
|
|
.rechargeUserCount(Long.valueOf(natureAmountD7[1]))
|
|
.rechargeUserCount(Long.valueOf(natureAmountD7[1]))
|
|
.increase(new BigDecimal(natureAmountD7[2]))
|
|
.increase(new BigDecimal(natureAmountD7[2]))
|
|
.back(new BigDecimal(natureAmountD7[3]))
|
|
.back(new BigDecimal(natureAmountD7[3]))
|
|
- .multiples(new BigDecimal(natureAmountD7[4]).setScale(2,RoundingMode.HALF_UP))
|
|
|
|
|
|
+ .multiples(new BigDecimal(natureAmountD7[4]).setScale(2, RoundingMode.HALF_UP))
|
|
.build());
|
|
.build());
|
|
|
|
|
|
String[] natureAmountD15 = vo.getNatureAmountD15().split("/");
|
|
String[] natureAmountD15 = vo.getNatureAmountD15().split("/");
|
|
@@ -249,7 +249,7 @@ public class GameDataServiceImpl implements IGameDataService {
|
|
.rechargeUserCount(Long.valueOf(natureAmountD15[1]))
|
|
.rechargeUserCount(Long.valueOf(natureAmountD15[1]))
|
|
.increase(new BigDecimal(natureAmountD15[2]))
|
|
.increase(new BigDecimal(natureAmountD15[2]))
|
|
.back(new BigDecimal(natureAmountD15[3]))
|
|
.back(new BigDecimal(natureAmountD15[3]))
|
|
- .multiples(new BigDecimal(natureAmountD15[4]).setScale(2,RoundingMode.HALF_UP))
|
|
|
|
|
|
+ .multiples(new BigDecimal(natureAmountD15[4]).setScale(2, RoundingMode.HALF_UP))
|
|
.build());
|
|
.build());
|
|
|
|
|
|
String[] natureAmountM1 = vo.getNatureAmountM1().split("/");
|
|
String[] natureAmountM1 = vo.getNatureAmountM1().split("/");
|
|
@@ -258,7 +258,7 @@ public class GameDataServiceImpl implements IGameDataService {
|
|
.rechargeUserCount(Long.valueOf(natureAmountM1[1]))
|
|
.rechargeUserCount(Long.valueOf(natureAmountM1[1]))
|
|
.increase(new BigDecimal(natureAmountM1[2]))
|
|
.increase(new BigDecimal(natureAmountM1[2]))
|
|
.back(new BigDecimal(natureAmountM1[3]))
|
|
.back(new BigDecimal(natureAmountM1[3]))
|
|
- .multiples(new BigDecimal(natureAmountM1[4]).setScale(2,RoundingMode.HALF_UP))
|
|
|
|
|
|
+ .multiples(new BigDecimal(natureAmountM1[4]).setScale(2, RoundingMode.HALF_UP))
|
|
.build());
|
|
.build());
|
|
|
|
|
|
String[] natureAmountM2 = vo.getNatureAmountM2().split("/");
|
|
String[] natureAmountM2 = vo.getNatureAmountM2().split("/");
|
|
@@ -267,7 +267,7 @@ public class GameDataServiceImpl implements IGameDataService {
|
|
.rechargeUserCount(Long.valueOf(natureAmountM2[1]))
|
|
.rechargeUserCount(Long.valueOf(natureAmountM2[1]))
|
|
.increase(new BigDecimal(natureAmountM2[2]))
|
|
.increase(new BigDecimal(natureAmountM2[2]))
|
|
.back(new BigDecimal(natureAmountM2[3]))
|
|
.back(new BigDecimal(natureAmountM2[3]))
|
|
- .multiples(new BigDecimal(natureAmountM2[4]).setScale(2,RoundingMode.HALF_UP))
|
|
|
|
|
|
+ .multiples(new BigDecimal(natureAmountM2[4]).setScale(2, RoundingMode.HALF_UP))
|
|
.build());
|
|
.build());
|
|
|
|
|
|
String[] natureAmountM3 = vo.getNatureAmountM3().split("/");
|
|
String[] natureAmountM3 = vo.getNatureAmountM3().split("/");
|
|
@@ -276,7 +276,7 @@ public class GameDataServiceImpl implements IGameDataService {
|
|
.rechargeUserCount(Long.valueOf(natureAmountM3[1]))
|
|
.rechargeUserCount(Long.valueOf(natureAmountM3[1]))
|
|
.increase(new BigDecimal(natureAmountM3[2]))
|
|
.increase(new BigDecimal(natureAmountM3[2]))
|
|
.back(new BigDecimal(natureAmountM3[3]))
|
|
.back(new BigDecimal(natureAmountM3[3]))
|
|
- .multiples(new BigDecimal(natureAmountM3[4]).setScale(2,RoundingMode.HALF_UP))
|
|
|
|
|
|
+ .multiples(new BigDecimal(natureAmountM3[4]).setScale(2, RoundingMode.HALF_UP))
|
|
.build());
|
|
.build());
|
|
|
|
|
|
String[] natureAmountM6 = vo.getNatureAmountM6().split("/");
|
|
String[] natureAmountM6 = vo.getNatureAmountM6().split("/");
|
|
@@ -285,7 +285,7 @@ public class GameDataServiceImpl implements IGameDataService {
|
|
.rechargeUserCount(Long.valueOf(natureAmountM6[1]))
|
|
.rechargeUserCount(Long.valueOf(natureAmountM6[1]))
|
|
.increase(new BigDecimal(natureAmountM6[2]))
|
|
.increase(new BigDecimal(natureAmountM6[2]))
|
|
.back(new BigDecimal(natureAmountM6[3]))
|
|
.back(new BigDecimal(natureAmountM6[3]))
|
|
- .multiples(new BigDecimal(natureAmountM6[4]).setScale(2,RoundingMode.HALF_UP))
|
|
|
|
|
|
+ .multiples(new BigDecimal(natureAmountM6[4]).setScale(2, RoundingMode.HALF_UP))
|
|
.build());
|
|
.build());
|
|
|
|
|
|
String[] natureAmountSum = vo.getNatureAmountSum().split("/");
|
|
String[] natureAmountSum = vo.getNatureAmountSum().split("/");
|
|
@@ -294,7 +294,7 @@ public class GameDataServiceImpl implements IGameDataService {
|
|
.rechargeUserCount(Long.valueOf(natureAmountSum[1]))
|
|
.rechargeUserCount(Long.valueOf(natureAmountSum[1]))
|
|
.increase(new BigDecimal(natureAmountSum[2]))
|
|
.increase(new BigDecimal(natureAmountSum[2]))
|
|
.back(new BigDecimal(natureAmountSum[3]))
|
|
.back(new BigDecimal(natureAmountSum[3]))
|
|
- .multiples(new BigDecimal(natureAmountSum[4]).setScale(2,RoundingMode.HALF_UP))
|
|
|
|
|
|
+ .multiples(new BigDecimal(natureAmountSum[4]).setScale(2, RoundingMode.HALF_UP))
|
|
.build());
|
|
.build());
|
|
|
|
|
|
//总量数据
|
|
//总量数据
|
|
@@ -315,7 +315,7 @@ public class GameDataServiceImpl implements IGameDataService {
|
|
.rechargeUserCount(Long.valueOf(amountD3[1]))
|
|
.rechargeUserCount(Long.valueOf(amountD3[1]))
|
|
.increase(new BigDecimal(amountD3[2]))
|
|
.increase(new BigDecimal(amountD3[2]))
|
|
.back(new BigDecimal(amountD3[3]))
|
|
.back(new BigDecimal(amountD3[3]))
|
|
- .multiples(new BigDecimal(amountD3[4]).setScale(2,RoundingMode.HALF_UP))
|
|
|
|
|
|
+ .multiples(new BigDecimal(amountD3[4]).setScale(2, RoundingMode.HALF_UP))
|
|
.build());
|
|
.build());
|
|
|
|
|
|
String[] amountD5 = vo.getAmountD5().split("/");
|
|
String[] amountD5 = vo.getAmountD5().split("/");
|
|
@@ -324,7 +324,7 @@ public class GameDataServiceImpl implements IGameDataService {
|
|
.rechargeUserCount(Long.valueOf(amountD5[1]))
|
|
.rechargeUserCount(Long.valueOf(amountD5[1]))
|
|
.increase(new BigDecimal(amountD5[2]))
|
|
.increase(new BigDecimal(amountD5[2]))
|
|
.back(new BigDecimal(amountD5[3]))
|
|
.back(new BigDecimal(amountD5[3]))
|
|
- .multiples(new BigDecimal(amountD5[4]).setScale(2,RoundingMode.HALF_UP))
|
|
|
|
|
|
+ .multiples(new BigDecimal(amountD5[4]).setScale(2, RoundingMode.HALF_UP))
|
|
.build());
|
|
.build());
|
|
|
|
|
|
String[] amountD7 = vo.getAmountD7().split("/");
|
|
String[] amountD7 = vo.getAmountD7().split("/");
|
|
@@ -333,7 +333,7 @@ public class GameDataServiceImpl implements IGameDataService {
|
|
.rechargeUserCount(Long.valueOf(amountD7[1]))
|
|
.rechargeUserCount(Long.valueOf(amountD7[1]))
|
|
.increase(new BigDecimal(amountD7[2]))
|
|
.increase(new BigDecimal(amountD7[2]))
|
|
.back(new BigDecimal(amountD7[3]))
|
|
.back(new BigDecimal(amountD7[3]))
|
|
- .multiples(new BigDecimal(amountD7[4]).setScale(2,RoundingMode.HALF_UP))
|
|
|
|
|
|
+ .multiples(new BigDecimal(amountD7[4]).setScale(2, RoundingMode.HALF_UP))
|
|
.build());
|
|
.build());
|
|
|
|
|
|
String[] amountD15 = vo.getAmountD15().split("/");
|
|
String[] amountD15 = vo.getAmountD15().split("/");
|
|
@@ -342,7 +342,7 @@ public class GameDataServiceImpl implements IGameDataService {
|
|
.rechargeUserCount(Long.valueOf(amountD15[1]))
|
|
.rechargeUserCount(Long.valueOf(amountD15[1]))
|
|
.increase(new BigDecimal(amountD15[2]))
|
|
.increase(new BigDecimal(amountD15[2]))
|
|
.back(new BigDecimal(amountD15[3]))
|
|
.back(new BigDecimal(amountD15[3]))
|
|
- .multiples(new BigDecimal(amountD15[4]).setScale(2,RoundingMode.HALF_UP))
|
|
|
|
|
|
+ .multiples(new BigDecimal(amountD15[4]).setScale(2, RoundingMode.HALF_UP))
|
|
.build());
|
|
.build());
|
|
|
|
|
|
String[] amountM1 = vo.getAmountM1().split("/");
|
|
String[] amountM1 = vo.getAmountM1().split("/");
|
|
@@ -351,7 +351,7 @@ public class GameDataServiceImpl implements IGameDataService {
|
|
.rechargeUserCount(Long.valueOf(amountM1[1]))
|
|
.rechargeUserCount(Long.valueOf(amountM1[1]))
|
|
.increase(new BigDecimal(amountM1[2]))
|
|
.increase(new BigDecimal(amountM1[2]))
|
|
.back(new BigDecimal(amountM1[3]))
|
|
.back(new BigDecimal(amountM1[3]))
|
|
- .multiples(new BigDecimal(amountM1[4]).setScale(2,RoundingMode.HALF_UP))
|
|
|
|
|
|
+ .multiples(new BigDecimal(amountM1[4]).setScale(2, RoundingMode.HALF_UP))
|
|
.build());
|
|
.build());
|
|
|
|
|
|
String[] amountM2 = vo.getAmountM2().split("/");
|
|
String[] amountM2 = vo.getAmountM2().split("/");
|
|
@@ -360,7 +360,7 @@ public class GameDataServiceImpl implements IGameDataService {
|
|
.rechargeUserCount(Long.valueOf(amountM2[1]))
|
|
.rechargeUserCount(Long.valueOf(amountM2[1]))
|
|
.increase(new BigDecimal(amountM2[2]))
|
|
.increase(new BigDecimal(amountM2[2]))
|
|
.back(new BigDecimal(amountM2[3]))
|
|
.back(new BigDecimal(amountM2[3]))
|
|
- .multiples(new BigDecimal(amountM2[4]).setScale(2,RoundingMode.HALF_UP))
|
|
|
|
|
|
+ .multiples(new BigDecimal(amountM2[4]).setScale(2, RoundingMode.HALF_UP))
|
|
.build());
|
|
.build());
|
|
|
|
|
|
String[] amountM3 = vo.getAmountM3().split("/");
|
|
String[] amountM3 = vo.getAmountM3().split("/");
|
|
@@ -369,7 +369,7 @@ public class GameDataServiceImpl implements IGameDataService {
|
|
.rechargeUserCount(Long.valueOf(amountM3[1]))
|
|
.rechargeUserCount(Long.valueOf(amountM3[1]))
|
|
.increase(new BigDecimal(amountM3[2]))
|
|
.increase(new BigDecimal(amountM3[2]))
|
|
.back(new BigDecimal(amountM3[3]))
|
|
.back(new BigDecimal(amountM3[3]))
|
|
- .multiples(new BigDecimal(amountM3[4]).setScale(2,RoundingMode.HALF_UP))
|
|
|
|
|
|
+ .multiples(new BigDecimal(amountM3[4]).setScale(2, RoundingMode.HALF_UP))
|
|
.build());
|
|
.build());
|
|
|
|
|
|
String[] amountM6 = vo.getAmountM6().split("/");
|
|
String[] amountM6 = vo.getAmountM6().split("/");
|
|
@@ -378,7 +378,7 @@ public class GameDataServiceImpl implements IGameDataService {
|
|
.rechargeUserCount(Long.valueOf(amountM6[1]))
|
|
.rechargeUserCount(Long.valueOf(amountM6[1]))
|
|
.increase(new BigDecimal(amountM6[2]))
|
|
.increase(new BigDecimal(amountM6[2]))
|
|
.back(new BigDecimal(amountM6[3]))
|
|
.back(new BigDecimal(amountM6[3]))
|
|
- .multiples(new BigDecimal(amountM6[4]).setScale(2,RoundingMode.HALF_UP))
|
|
|
|
|
|
+ .multiples(new BigDecimal(amountM6[4]).setScale(2, RoundingMode.HALF_UP))
|
|
.build());
|
|
.build());
|
|
|
|
|
|
String[] amountSum = vo.getAmountSum().split("/");
|
|
String[] amountSum = vo.getAmountSum().split("/");
|
|
@@ -387,7 +387,7 @@ public class GameDataServiceImpl implements IGameDataService {
|
|
.rechargeUserCount(Long.valueOf(amountSum[1]))
|
|
.rechargeUserCount(Long.valueOf(amountSum[1]))
|
|
.increase(new BigDecimal(amountSum[2]))
|
|
.increase(new BigDecimal(amountSum[2]))
|
|
.back(new BigDecimal(amountSum[3]))
|
|
.back(new BigDecimal(amountSum[3]))
|
|
- .multiples(new BigDecimal(amountSum[4]).setScale(2,RoundingMode.HALF_UP))
|
|
|
|
|
|
+ .multiples(new BigDecimal(amountSum[4]).setScale(2, RoundingMode.HALF_UP))
|
|
.build());
|
|
.build());
|
|
|
|
|
|
return vo;
|
|
return vo;
|
|
@@ -399,6 +399,7 @@ public class GameDataServiceImpl implements IGameDataService {
|
|
|
|
|
|
/**
|
|
/**
|
|
* 游戏每日数据总计
|
|
* 游戏每日数据总计
|
|
|
|
+ *
|
|
* @param dto 前端传递的查询条件
|
|
* @param dto 前端传递的查询条件
|
|
* @return 返回给前端的总计数据实体
|
|
* @return 返回给前端的总计数据实体
|
|
*/
|
|
*/
|
|
@@ -406,7 +407,7 @@ public class GameDataServiceImpl implements IGameDataService {
|
|
|
|
|
|
//如果没有传入查询时间默认查询当天
|
|
//如果没有传入查询时间默认查询当天
|
|
if (dto.getRegisteredBeginDate() == null || dto.getRegisteredEndDate() == null) {
|
|
if (dto.getRegisteredBeginDate() == null || dto.getRegisteredEndDate() == null) {
|
|
- dto.setRegisteredEndDate(LocalDate.now());
|
|
|
|
|
|
+ dto.setRegisteredBeginDate(LocalDate.now());
|
|
dto.setRegisteredEndDate(LocalDate.now());
|
|
dto.setRegisteredEndDate(LocalDate.now());
|
|
}
|
|
}
|
|
//新增查询条件
|
|
//新增查询条件
|
|
@@ -428,12 +429,15 @@ public class GameDataServiceImpl implements IGameDataService {
|
|
cri.where().andBetween("dt", dto.getRegisteredBeginDate(), dto.getRegisteredEndDate());
|
|
cri.where().andBetween("dt", dto.getRegisteredBeginDate(), dto.getRegisteredEndDate());
|
|
}
|
|
}
|
|
|
|
|
|
- //Sql gameDataDayTotalsql =
|
|
|
|
-
|
|
|
|
-
|
|
|
|
-
|
|
|
|
|
|
+ //创建sql
|
|
|
|
+ Sql gameDataDayTotalsql = Sqls.create(gameDataDayTotalSql() + cri);
|
|
|
|
+ //设置自定义回传对象
|
|
|
|
+ gameDataDayTotalsql.setCallback(Sqls.callback.entity());
|
|
|
|
+ gameDataDayTotalsql.setEntity(dao.getEntity(GameDataDayTotalVO.class));
|
|
|
|
+ //执行sql
|
|
|
|
+ dao.execute(gameDataDayTotalsql);
|
|
|
|
|
|
- return null;
|
|
|
|
|
|
+ return gameDataDayTotalsql.getObject(GameDataDayTotalVO.class);
|
|
}
|
|
}
|
|
|
|
|
|
/**
|
|
/**
|
|
@@ -642,6 +646,15 @@ public class GameDataServiceImpl implements IGameDataService {
|
|
return new Page<>(gameDataTotalVOList, pager);
|
|
return new Page<>(gameDataTotalVOList, pager);
|
|
}
|
|
}
|
|
|
|
|
|
|
|
+ /**
|
|
|
|
+ * 游戏总数据总计
|
|
|
|
+ * @param dto 前端传递的查询参数
|
|
|
|
+ * @return 返回给前端额数据
|
|
|
|
+ */
|
|
|
|
+ public GameDataTotalTotalVO getGameDataTotalTotal(GameDataTotalTotalDTO dto) {
|
|
|
|
+ return null;
|
|
|
|
+ }
|
|
|
|
+
|
|
/**
|
|
/**
|
|
* 每日流水贡献
|
|
* 每日流水贡献
|
|
*
|
|
*
|
|
@@ -988,35 +1001,29 @@ public class GameDataServiceImpl implements IGameDataService {
|
|
* @return DayN数据
|
|
* @return DayN数据
|
|
*/
|
|
*/
|
|
private DayN getDayNByTableName(Map<String, Object> dayNMap, String tableName) {
|
|
private DayN getDayNByTableName(Map<String, Object> dayNMap, String tableName) {
|
|
- Sql dayNSql;
|
|
|
|
|
|
+
|
|
|
|
+ //创建查询条件
|
|
|
|
+ Criteria cri = Cnd.cri();
|
|
|
|
+ if (dayNMap.get("registerBeginDate") != null && dayNMap.get("registerEndDate") != null) {
|
|
|
|
+ //拼接充值时间查询条件
|
|
|
|
+ cri.where().andBetween("dt", dayNMap.get("registerBeginDate"), dayNMap.get("registerEndDate"));
|
|
|
|
+ }
|
|
|
|
+ if (dayNMap.get("gameId") != null) {
|
|
|
|
+ //拼接游戏ID查询条件
|
|
|
|
+ cri.where().andEquals("game_id", dayNMap.get("gameId"));
|
|
|
|
+ }
|
|
if (dayNMap.get("sourceSystem") != null) {
|
|
if (dayNMap.get("sourceSystem") != null) {
|
|
- //构架SQL语句,查询相关DayN表获取相关充值数据
|
|
|
|
- dayNSql = Sqls.create(
|
|
|
|
- """
|
|
|
|
- SELECT
|
|
|
|
- dayN
|
|
|
|
- FROM
|
|
|
|
- $tableName
|
|
|
|
- where
|
|
|
|
- dt between @registerBeginDate and @registerEndDate
|
|
|
|
- and game_id = @gameId
|
|
|
|
- and source_system = @sourceSystem
|
|
|
|
- """
|
|
|
|
- );
|
|
|
|
- } else {
|
|
|
|
- //构架SQL语句,查询相关DayN表获取相关充值数据
|
|
|
|
- dayNSql = Sqls.create(
|
|
|
|
- """
|
|
|
|
- SELECT
|
|
|
|
- dayN
|
|
|
|
- FROM
|
|
|
|
- $tableName
|
|
|
|
- where
|
|
|
|
- dt between @registerBeginDate and @registerEndDate
|
|
|
|
- and game_id = @gameId
|
|
|
|
- """
|
|
|
|
- );
|
|
|
|
|
|
+ //拼接SDK来源查询条件
|
|
|
|
+ cri.where().andEquals("source_system", dayNMap.get("sourceSystem"));
|
|
}
|
|
}
|
|
|
|
+
|
|
|
|
+ Sql dayNSql = Sqls.create("""
|
|
|
|
+ SELECT
|
|
|
|
+ dayN
|
|
|
|
+ FROM
|
|
|
|
+ $tableName
|
|
|
|
+ """ + cri);
|
|
|
|
+
|
|
//sql语句传入参数
|
|
//sql语句传入参数
|
|
dayNSql.setParams(dayNMap);
|
|
dayNSql.setParams(dayNMap);
|
|
//给定查询的表名
|
|
//给定查询的表名
|
|
@@ -1054,11 +1061,11 @@ public class GameDataServiceImpl implements IGameDataService {
|
|
//充值的金额
|
|
//充值的金额
|
|
BigDecimal chargeMoney = new BigDecimal(oldValues[0]).add(new BigDecimal(resValues[0]));
|
|
BigDecimal chargeMoney = new BigDecimal(oldValues[0]).add(new BigDecimal(resValues[0]));
|
|
//充值的次数
|
|
//充值的次数
|
|
- Long count = Long.valueOf(oldValues[1]) + Long.valueOf(resValues[1]);
|
|
|
|
|
|
+ long count = Long.parseLong(oldValues[1]) + Long.parseLong(resValues[1]);
|
|
//充值的人数
|
|
//充值的人数
|
|
- Long num = Long.valueOf(oldValues[2]) + Long.valueOf(resValues[2]);
|
|
|
|
|
|
+ long num = Long.parseLong(oldValues[2]) + Long.parseLong(resValues[2]);
|
|
//新用户复充人数
|
|
//新用户复充人数
|
|
- Long againNum = Long.valueOf(oldValues[3]) + Long.valueOf(resValues[3]);
|
|
|
|
|
|
+ long againNum = Long.parseLong(oldValues[3]) + Long.parseLong(resValues[3]);
|
|
//合并成字符串 更新dayN的值
|
|
//合并成字符串 更新dayN的值
|
|
String newValue = chargeMoney + "-" + count + "-" + num + "-" + againNum;
|
|
String newValue = chargeMoney + "-" + count + "-" + num + "-" + againNum;
|
|
resMap.put("dayN", newValue);
|
|
resMap.put("dayN", newValue);
|
|
@@ -1082,7 +1089,7 @@ public class GameDataServiceImpl implements IGameDataService {
|
|
/**
|
|
/**
|
|
* 通过反射来获取Cn的值
|
|
* 通过反射来获取Cn的值
|
|
*
|
|
*
|
|
- * @param vo 数据库查询出来的原始数据对象实体
|
|
|
|
|
|
+ * @param vo 数据库查询出来的原始数据对象实体
|
|
* @param num 1-9
|
|
* @param num 1-9
|
|
* @return Cn
|
|
* @return Cn
|
|
*/
|
|
*/
|
|
@@ -1140,7 +1147,7 @@ public class GameDataServiceImpl implements IGameDataService {
|
|
.rechargeUserCount(Long.valueOf(strs[1]))
|
|
.rechargeUserCount(Long.valueOf(strs[1]))
|
|
.increase(new BigDecimal(strs[2]))
|
|
.increase(new BigDecimal(strs[2]))
|
|
.back(new BigDecimal(strs[3]))
|
|
.back(new BigDecimal(strs[3]))
|
|
- .multiples(new BigDecimal(strs[4]).setScale(2,RoundingMode.HALF_UP))
|
|
|
|
|
|
+ .multiples(new BigDecimal(strs[4]).setScale(2, RoundingMode.HALF_UP))
|
|
.build());
|
|
.build());
|
|
} catch (Exception e) {
|
|
} catch (Exception e) {
|
|
e.printStackTrace();
|
|
e.printStackTrace();
|
|
@@ -1433,6 +1440,99 @@ public class GameDataServiceImpl implements IGameDataService {
|
|
""";
|
|
""";
|
|
}
|
|
}
|
|
|
|
|
|
|
|
+ /**
|
|
|
|
+ * 游戏每日数据总计sql
|
|
|
|
+ *
|
|
|
|
+ * @return String
|
|
|
|
+ */
|
|
|
|
+ private String gameDataDayTotalSql() {
|
|
|
|
+ return """
|
|
|
|
+ SELECT
|
|
|
|
+ SUM(cost) cost,
|
|
|
|
+
|
|
|
|
+ SUM(buy_reg_num) buy_reg_num,
|
|
|
|
+ SUM(nature_reg_num) nature_reg_num,
|
|
|
|
+ SUM(reg_num) reg_num,
|
|
|
|
+
|
|
|
|
+ SUM(buy_first_new_user_amount_count) buy_first_new_user_amount_count,
|
|
|
|
+ SUM(buy_first_new_user_amount_num) buy_first_new_user_amount_num,
|
|
|
|
+ SUM(buy_first_new_user_amount) buy_first_new_user_amount,
|
|
|
|
+ SUM(buy_old_user_count) buy_old_user_count,
|
|
|
|
+ SUM(buy_old_user_num) buy_old_user_num,
|
|
|
|
+ SUM(buy_old_user_amount) buy_old_user_amount,
|
|
|
|
+ SUM(buy_amount_count) buy_amount_count,
|
|
|
|
+ SUM(buy_amount_num) buy_amount_num,
|
|
|
|
+ SUM(buy_amount) buy_amount,
|
|
|
|
+ SUM(buy_new_user_total_amount_count) buy_new_user_total_amount_count,
|
|
|
|
+ SUM(buy_new_user_total_amount_num) buy_new_user_total_amount_num,
|
|
|
|
+ SUM(buy_new_user_total_amount) buy_new_user_total_amount,
|
|
|
|
+ round(if(SUM(buy_reg_num) > 0 , SUM(buy_first_new_user_amount_num) / SUM(buy_reg_num) ,0), 4) buy_first_roi,
|
|
|
|
+ round(if(SUM(buy_reg_num) > 0, SUM(buy_new_user_total_amount_num) / SUM(buy_reg_num), 0) ,4) buy_today_roi,
|
|
|
|
+ round(if(SUM(buy_amount_num) > 0 , SUM(buy_first_new_user_amount_num) / SUM(buy_amount_num) ,0), 4) buy_new_user_rate,
|
|
|
|
+ round(if(SUM(buy_first_new_user_amount_count) > 0, SUM(buy_first_new_user_amount) / SUM(buy_first_new_user_amount_count), 0), 2) buy_first_avg_amount,
|
|
|
|
+ round(if(SUM(buy_new_user_total_amount_count) > 0, SUM(buy_new_user_total_amount) / SUM(buy_new_user_total_amount_count), 0), 2) buy_today_avg_amount,
|
|
|
|
+ round(if(SUM(buy_amount_count) > 0, SUM(buy_amount) / SUM(buy_amount_count), 0), 2) buy_avg_amount,
|
|
|
|
+ round(if(SUM(buy_new_user_total_amount_num) > 0, SUM(buy_reg_order_user_again) / SUM(buy_new_user_total_amount_num), 0), 4) buy_user_again_rate,
|
|
|
|
+ round(if(SUM(buy_reg_num) > 0, SUM(buy_new_user_total_amount) / SUM(buy_reg_num), 0), 2) buy_reg_user_arpu,
|
|
|
|
+ round(if(SUM(buy_first_new_user_amount_num) > 0 , SUM(buy_first_new_user_amount) / SUM(buy_first_new_user_amount_num), 0), 2) buy_first_amount_arpu,
|
|
|
|
+ round(if(SUM(buy_new_user_total_amount_num) > 0 , SUM(buy_new_user_total_amount) / SUM(buy_new_user_total_amount_num), 0), 2) buy_today_amount_arpu,
|
|
|
|
+ round(if(SUM(buy_amount_num) > 0, SUM(buy_amount) / SUM(buy_amount_num), 0), 2) buy_amount_arpu,
|
|
|
|
+
|
|
|
|
+ SUM(nature_first_new_user_amount_count) nature_first_new_user_amount_count,
|
|
|
|
+ SUM(nature_first_new_user_amount_num) nature_first_new_user_amount_num,
|
|
|
|
+ SUM(nature_first_new_user_amount) nature_first_new_user_amount,
|
|
|
|
+ SUM(nature_old_user_count) nature_old_user_count,
|
|
|
|
+ SUM(nature_old_user_num) nature_old_user_num,
|
|
|
|
+ SUM(nature_old_user_amount) nature_old_user_amount,
|
|
|
|
+ SUM(nature_amount_count) nature_amount_count,
|
|
|
|
+ SUM(nature_amount_num) nature_amount_num,
|
|
|
|
+ SUM(nature_amount) nature_amount,
|
|
|
|
+ SUM(nature_new_user_total_amount_count) nature_new_user_total_amount_count,
|
|
|
|
+ SUM(nature_new_user_total_amount_num) nature_new_user_total_amount_num,
|
|
|
|
+ SUM(nature_new_user_total_amount) nature_new_user_total_amount,
|
|
|
|
+ round(if(SUM(nature_reg_num) > 0 , SUM(nature_first_new_user_amount_num) / SUM(nature_reg_num) ,0), 4) nature_first_roi,
|
|
|
|
+ round(if(SUM(nature_reg_num) > 0, SUM(nature_new_user_total_amount_num) / SUM(nature_reg_num), 0) ,4) nature_today_roi,
|
|
|
|
+ round(if(SUM(nature_amount_num) > 0 , SUM(nature_first_new_user_amount_num) / SUM(nature_amount_num) ,0), 4) nature_new_user_rate,
|
|
|
|
+ round(if(SUM(nature_first_new_user_amount_count) > 0, SUM(nature_first_new_user_amount) / SUM(nature_first_new_user_amount_count), 0), 2) nature_first_avg_amount,
|
|
|
|
+ round(if(SUM(nature_new_user_total_amount_count) > 0, SUM(nature_new_user_total_amount) / SUM(nature_new_user_total_amount_count), 0), 2) nature_today_avg_amount,
|
|
|
|
+ round(if(SUM(nature_amount_count) > 0, SUM(nature_amount) / SUM(nature_amount_count), 0), 2) nature_avg_amount,
|
|
|
|
+ round(if(SUM(nature_new_user_total_amount_num) > 0, SUM(nature_reg_order_user_again) / SUM(nature_new_user_total_amount_num), 0), 4) nature_user_again_rate,
|
|
|
|
+ round(if(SUM(nature_reg_num) > 0, SUM(nature_new_user_total_amount) / SUM(nature_reg_num), 0), 2) nature_reg_user_arpu,
|
|
|
|
+ round(if(SUM(nature_first_new_user_amount_num) > 0 , SUM(nature_first_new_user_amount) / SUM(nature_first_new_user_amount_num), 0), 2) nature_first_amount_arpu,
|
|
|
|
+ round(if(SUM(nature_new_user_total_amount_num) > 0 , SUM(nature_new_user_total_amount) / SUM(nature_new_user_total_amount_num), 0), 2) nature_today_amount_arpu,
|
|
|
|
+ round(if(SUM(nature_amount_num) > 0, SUM(nature_amount) / SUM(nature_amount_num), 0), 2) nature_amount_arpu,
|
|
|
|
+
|
|
|
|
+ SUM(first_new_user_amount_count) first_new_user_amount_count,
|
|
|
|
+ SUM(first_new_user_amount_num) first_new_user_amount_num,
|
|
|
|
+ SUM(first_new_user_amount) first_new_user_amount,
|
|
|
|
+ SUM(old_user_count) old_user_count,
|
|
|
|
+ SUM(old_user_num) old_user_num,
|
|
|
|
+ SUM(old_user_amount) old_user_amount,
|
|
|
|
+ SUM(amount_count) amount_count,
|
|
|
|
+ SUM(amount_num) amount_num,
|
|
|
|
+ SUM(amount) amount,
|
|
|
|
+ SUM(new_user_total_amount_count) new_user_total_amount_count,
|
|
|
|
+ SUM(new_user_total_amount_num) new_user_total_amount_num,
|
|
|
|
+ SUM(new_user_total_amount) new_user_total_amount,
|
|
|
|
+ round(if(SUM(reg_num) > 0 , SUM(first_new_user_amount_num) / SUM(reg_num) ,0), 4) first_roi,
|
|
|
|
+ round(if(SUM(reg_num) > 0, SUM(new_user_total_amount_num) / SUM(reg_num), 0) ,4) today_roi,
|
|
|
|
+ round(if(SUM(amount_num) > 0 , SUM(first_new_user_amount_num) / SUM(amount_num) ,0), 4) new_user_rate,
|
|
|
|
+ round(if(SUM(first_new_user_amount_count) > 0, SUM(first_new_user_amount) / SUM(first_new_user_amount_count), 0), 2) first_avg_amount,
|
|
|
|
+ round(if(SUM(new_user_total_amount_count) > 0, SUM(new_user_total_amount) / SUM(new_user_total_amount_count), 0), 2) today_avg_amount,
|
|
|
|
+ round(if(SUM(amount_count) > 0, SUM(amount) / SUM(amount_count), 0), 2) avg_amount,
|
|
|
|
+ round(if(SUM(new_user_total_amount_num) > 0, SUM(reg_order_user_again) / SUM(new_user_total_amount_num), 0), 4) user_again_rate,
|
|
|
|
+ round(if(SUM(reg_num) > 0, SUM(new_user_total_amount) / SUM(reg_num), 0), 2) reg_user_arpu,
|
|
|
|
+ round(if(SUM(first_new_user_amount_num) > 0 , SUM(first_new_user_amount) / SUM(first_new_user_amount_num), 0), 2) first_amount_arpu,
|
|
|
|
+ round(if(SUM(new_user_total_amount_num) > 0 , SUM(new_user_total_amount) / SUM(new_user_total_amount_num), 0), 2) today_amount_arpu,
|
|
|
|
+ round(if(SUM(amount_num) > 0, SUM(amount) / SUM(amount_num), 0), 2) amount_arpu
|
|
|
|
+
|
|
|
|
+ FROM
|
|
|
|
+ ads_game_day
|
|
|
|
+
|
|
|
|
+
|
|
|
|
+ """;
|
|
|
|
+ }
|
|
|
|
+
|
|
/**
|
|
/**
|
|
* 游戏总数据SQL
|
|
* 游戏总数据SQL
|
|
*
|
|
*
|