11 changed files with 87 additions and 155 deletions
-
17src/main/java/com/example/demo/controller/WorkbenchController.java
-
2src/main/java/com/example/demo/domain/entity/Statistics.java
-
8src/main/java/com/example/demo/domain/entity/UserGoldRecord.java
-
25src/main/java/com/example/demo/domain/vo/Workbench.java
-
61src/main/java/com/example/demo/domain/vo/WorkbenchCard.java
-
32src/main/java/com/example/demo/domain/vo/WorkbenchOne.java
-
33src/main/java/com/example/demo/domain/vo/WorkbenchThree.java
-
31src/main/java/com/example/demo/domain/vo/WorkbenchTwo.java
-
10src/main/java/com/example/demo/mapper/WorkBenchMapper.java
-
11src/main/java/com/example/demo/service/WorkbenchService.java
-
12src/main/java/com/example/demo/serviceImpl/WorkbenchServiceImpl.java
@ -1,25 +0,0 @@ |
|||||
package com.example.demo.domain.vo; |
|
||||
|
|
||||
import lombok.AllArgsConstructor; |
|
||||
import lombok.Data; |
|
||||
import lombok.NoArgsConstructor; |
|
||||
|
|
||||
import java.io.Serializable; |
|
||||
import java.util.List; |
|
||||
|
|
||||
/** |
|
||||
* @program: gold-java |
|
||||
* @ClassName Workbench |
|
||||
* @description: 工作台请求参数 |
|
||||
* @author: Ethan |
|
||||
* @create: 2025−06-17 17:43 |
|
||||
* @Version 1.0 |
|
||||
**/ |
|
||||
|
|
||||
@Data |
|
||||
@NoArgsConstructor |
|
||||
@AllArgsConstructor |
|
||||
public class Workbench implements Serializable { |
|
||||
private String token; //用户token |
|
||||
private List<String> areas; //地区列表 |
|
||||
} |
|
@ -0,0 +1,61 @@ |
|||||
|
package com.example.demo.domain.vo; |
||||
|
|
||||
|
import lombok.AllArgsConstructor; |
||||
|
import lombok.Data; |
||||
|
import lombok.NoArgsConstructor; |
||||
|
|
||||
|
import java.io.Serializable; |
||||
|
import java.util.List; |
||||
|
|
||||
|
/** |
||||
|
* @program: gold-java |
||||
|
* @ClassName Workbench |
||||
|
* @description: 工作台请求参数 |
||||
|
* @author: Ethan |
||||
|
* @create: 2025−06-17 17:43 |
||||
|
* @Version 1.0 |
||||
|
**/ |
||||
|
|
||||
|
@Data |
||||
|
@NoArgsConstructor |
||||
|
@AllArgsConstructor |
||||
|
public class WorkbenchCard implements Serializable { |
||||
|
private String token; //用户token |
||||
|
private List<String> market; // 地区 |
||||
|
// 卡片一:当前金币相关 |
||||
|
private Integer currentGold; // 当前金币余量 |
||||
|
private Integer dailyChange; // 余量较前一天的变化 |
||||
|
private Integer currentPermanent; // 永久金币余量 |
||||
|
private Integer currentFreeJune; // 六月到期免费金币余量 |
||||
|
private Integer currentFreeDecember; // 十二月到期免费金币余量 |
||||
|
private Integer currentTask; // 任务金币余量 |
||||
|
private Integer currentFree; // 免费金币余量(currentFreeJune + currentFreeDecember) |
||||
|
|
||||
|
// 卡片二:充值相关 |
||||
|
private Integer recharge; // 当日充值金币数 |
||||
|
private Integer money; // 当日金额(永久金币) |
||||
|
private Integer yearlyRecharge; // 全年累计充值金币数 |
||||
|
private Integer yearlyMoney; // 全年累计金额 |
||||
|
|
||||
|
// 卡片三:当日消费/退款/消耗相关 |
||||
|
private Integer consumePermanent; // 当日新增消费(永久) |
||||
|
private Integer consumeFreeJune; // 当日新增消费(六月免费) |
||||
|
private Integer consumeFreeDecember; // 当日新增消费(十二月免费) |
||||
|
private Integer consumeTask; // 当日新增消费(任务) |
||||
|
private Integer refundPermanent; // 当日新增退款(永久) |
||||
|
private Integer refundFreeJune; // 当日新增退款(六月免费) |
||||
|
private Integer refundFreeDecember; // 当日新增退款(十二月免费) |
||||
|
private Integer refundTask; // 当日新增退款(任务) |
||||
|
private Integer dailyConsume; // 当日总消耗 = consumePermanent + consumeFreeJune + consumeFreeDecember + consumeTask - (refundPermanent + refundFreeJune + refundFreeDecember + refundTask) |
||||
|
private Integer yearlyConsume; // 全年累计消费 |
||||
|
private Integer yearlyRefund; // 全年累计退款金币数 |
||||
|
private Integer yearlyReduce; // 全年累计消耗金币数 = yearlyConsume - yearlyRefund |
||||
|
|
||||
|
// 卡片四:人头数相关 |
||||
|
private Integer rechargeNum; // 当日充值人数 |
||||
|
private Integer firstRecharge; // 当日首充人数 |
||||
|
private Integer wow; // 周同比(%) |
||||
|
private Integer daily; // 日环比(%) |
||||
|
private Integer yearlyRechargeNum; // 全年累计充值人头数 |
||||
|
|
||||
|
} |
@ -1,32 +0,0 @@ |
|||||
package com.example.demo.domain.vo; |
|
||||
|
|
||||
import lombok.AllArgsConstructor; |
|
||||
import lombok.Data; |
|
||||
import lombok.NoArgsConstructor; |
|
||||
|
|
||||
import java.io.Serializable; |
|
||||
import java.math.BigDecimal; |
|
||||
|
|
||||
/** |
|
||||
* @program: gold-java |
|
||||
* @ClassName Workbench |
|
||||
* @description: 工作台卡片1——当前金币余量 |
|
||||
* @author: Ethan |
|
||||
* @create: 2025−06-17 17:47 |
|
||||
* @Version 1.0 |
|
||||
**/ |
|
||||
@Data |
|
||||
@NoArgsConstructor |
|
||||
@AllArgsConstructor |
|
||||
public class WorkbenchOne implements Serializable { |
|
||||
private static final long serialVersionUID = 1L; |
|
||||
private String token ; |
|
||||
private BigDecimal sumGold ; //当前金币余量 |
|
||||
private BigDecimal differ ; //较前一天的差异量 |
|
||||
private BigDecimal rechargeGold ; //永久金币 |
|
||||
private BigDecimal freeGold ; //免费金币 |
|
||||
private BigDecimal taskGold ; //任务金币 |
|
||||
private BigDecimal junFreeGold; //六月过期的免费金币 |
|
||||
private BigDecimal DecFreeGold; //十二月过期的免费金币 |
|
||||
|
|
||||
} |
|
@ -1,33 +0,0 @@ |
|||||
package com.example.demo.domain.vo; |
|
||||
|
|
||||
import lombok.AllArgsConstructor; |
|
||||
import lombok.Data; |
|
||||
import lombok.NoArgsConstructor; |
|
||||
|
|
||||
import java.io.Serializable; |
|
||||
import java.math.BigDecimal; |
|
||||
|
|
||||
/** |
|
||||
* @program: gold-java |
|
||||
* @ClassName Workbench |
|
||||
* @description: 工作台卡片3——全年累计消耗金币数 |
|
||||
* @author: Ethan |
|
||||
* @create: 2025−06-17 17:52 |
|
||||
* @Version 1.0 |
|
||||
**/ |
|
||||
@Data |
|
||||
@NoArgsConstructor |
|
||||
@AllArgsConstructor |
|
||||
public class WorkbenchThree implements Serializable { |
|
||||
private static final long serialVersionUID = 1L; |
|
||||
private BigDecimal consumeCoin; //全年累计消耗金币数=消费+退款 |
|
||||
private BigDecimal consumeGold; //消费金币数 |
|
||||
private BigDecimal refundCoin; //退款金币数 |
|
||||
private BigDecimal yesterdayCoin; //昨日新增消耗 |
|
||||
private BigDecimal yesterdayGold; //昨日新增消耗——消费 |
|
||||
private BigDecimal yesterdayRefund; //昨日新增消费——退款 |
|
||||
//以下暂时不用 |
|
||||
private BigDecimal rechargeGold ; //其中付费金币 |
|
||||
private BigDecimal freeGold ; //其中免费金币 |
|
||||
private BigDecimal taskGold ; //其中任务金币 |
|
||||
} |
|
@ -1,31 +0,0 @@ |
|||||
package com.example.demo.domain.vo; |
|
||||
|
|
||||
import lombok.AllArgsConstructor; |
|
||||
import lombok.Data; |
|
||||
import lombok.NoArgsConstructor; |
|
||||
|
|
||||
import java.io.Serializable; |
|
||||
import java.math.BigDecimal; |
|
||||
|
|
||||
/** |
|
||||
* @program: gold-java |
|
||||
* @ClassName Workbench |
|
||||
* @description: 工作台卡片2——全年累计金币数 |
|
||||
* @author: Ethan |
|
||||
* @create: 2025−06-17 17:49 |
|
||||
* @Version 1.0 |
|
||||
**/ |
|
||||
@Data |
|
||||
@NoArgsConstructor |
|
||||
@AllArgsConstructor |
|
||||
public class WorkbenchTwo implements Serializable { |
|
||||
private static final long serialVersionUID = 1L; |
|
||||
private BigDecimal totalGold; //全年累计金币数 |
|
||||
private BigDecimal totalCoin; //折合新币数 |
|
||||
private BigDecimal yesterdayTotal; //昨日新增 |
|
||||
private BigDecimal yesterdayRecharge; //昨日新增充值 |
|
||||
//以下暂时不用 |
|
||||
private BigDecimal rechargeGold ; //充值付费金币 |
|
||||
private BigDecimal freeGold ; //免费金币 |
|
||||
private BigDecimal taskGold ; //任务金币 |
|
||||
} |
|
Write
Preview
Loading…
Cancel
Save
Reference in new issue