mirror of
https://codeup.aliyun.com/67c68d4e484ca2f0a13ac3c1/ydc/jsowell-charger-web.git
synced 2026-08-16 11:07:36 +08:00
Merge branch 'feature-business-minigram' into dev
This commit is contained in:
@@ -0,0 +1,84 @@
|
||||
package com.jsowell.pile.vo.uniapp.business;
|
||||
|
||||
import lombok.AllArgsConstructor;
|
||||
import lombok.Builder;
|
||||
import lombok.Data;
|
||||
import lombok.NoArgsConstructor;
|
||||
|
||||
import java.math.BigDecimal;
|
||||
|
||||
/**
|
||||
* 效率分析VO(包含单均效率和枪均效率两个维度的数据)
|
||||
*
|
||||
* @author Lemon
|
||||
*/
|
||||
@Data
|
||||
@AllArgsConstructor
|
||||
@NoArgsConstructor
|
||||
@Builder
|
||||
public class BusinessEfficiencyAnalysisVO {
|
||||
|
||||
/**
|
||||
* 开始时间
|
||||
*/
|
||||
private String startTime;
|
||||
|
||||
/**
|
||||
* 结束时间
|
||||
*/
|
||||
private String endTime;
|
||||
|
||||
// ========== 单均效率指标 ==========
|
||||
|
||||
/**
|
||||
* 单均服务费(元)
|
||||
* = 服务费总额 / 订单数量
|
||||
*/
|
||||
private BigDecimal avgServiceFeePerOrder;
|
||||
|
||||
/**
|
||||
* 单均充电量(度)
|
||||
* = 充电电量总量 / 订单数量
|
||||
*/
|
||||
private BigDecimal avgElectricityPerOrder;
|
||||
|
||||
/**
|
||||
* 单均充电时长,格式:xxm
|
||||
* = 总充电时长(分钟) / 订单数量
|
||||
*/
|
||||
private String avgChargeTimePerOrder;
|
||||
|
||||
// ========== 枪均效率指标 ==========
|
||||
|
||||
/**
|
||||
* 枪日均服务费(元)
|
||||
* = 服务费总额 / (枪口数量 × 天数)
|
||||
*/
|
||||
private BigDecimal gunDailyAvgServiceFee;
|
||||
|
||||
/**
|
||||
* 枪日均充电量(度)
|
||||
* = 充电电量总量 / (枪口数量 × 天数)
|
||||
*/
|
||||
private BigDecimal gunDailyAvgElectricity;
|
||||
|
||||
/**
|
||||
* 枪日均充电时长,格式:xxhxxm
|
||||
* = 总充电时长(分钟) / (枪口数量 × 天数)
|
||||
*/
|
||||
private String gunDailyAvgChargeTime;
|
||||
|
||||
// ========== 共用指标 ==========
|
||||
|
||||
/**
|
||||
* 度均服务费(元)
|
||||
* = 服务费总额 / 充电电量总量
|
||||
*/
|
||||
private BigDecimal avgServiceFeePerDegree;
|
||||
|
||||
/**
|
||||
* 平均功率(KW)
|
||||
* = 充电电量总量 × 60 / 总充电时长(分钟)
|
||||
*/
|
||||
private BigDecimal avgPower;
|
||||
}
|
||||
@@ -0,0 +1,51 @@
|
||||
package com.jsowell.pile.vo.uniapp.business;
|
||||
|
||||
import lombok.AllArgsConstructor;
|
||||
import lombok.Builder;
|
||||
import lombok.Data;
|
||||
import lombok.NoArgsConstructor;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* 经营效率VO
|
||||
*
|
||||
* @author zhangziao
|
||||
* @date 2026/4/16
|
||||
*/
|
||||
@Data
|
||||
@AllArgsConstructor
|
||||
@NoArgsConstructor
|
||||
@Builder
|
||||
public class BusinessEfficiencyVO {
|
||||
|
||||
/**
|
||||
* 当前周期开始时间
|
||||
*/
|
||||
private String currentStartTime;
|
||||
|
||||
/**
|
||||
* 当前周期结束时间
|
||||
*/
|
||||
private String currentEndTime;
|
||||
|
||||
/**
|
||||
* 上周期开始时间
|
||||
*/
|
||||
private String previousStartTime;
|
||||
|
||||
/**
|
||||
* 上周期结束时间
|
||||
*/
|
||||
private String previousEndTime;
|
||||
|
||||
/**
|
||||
* 指标卡片列表(度均服务费、时间利用率、枪均电量、功率利用率)
|
||||
*/
|
||||
private List<BusinessScaleMetricVO> metricList;
|
||||
|
||||
/**
|
||||
* 当前选中指标对应的曲线图数据
|
||||
*/
|
||||
private BusinessScaleChartVO chartData;
|
||||
}
|
||||
@@ -0,0 +1,38 @@
|
||||
package com.jsowell.pile.vo.uniapp.business;
|
||||
|
||||
import lombok.AllArgsConstructor;
|
||||
import lombok.Builder;
|
||||
import lombok.Data;
|
||||
import lombok.NoArgsConstructor;
|
||||
|
||||
/**
|
||||
* 场站排行VO
|
||||
*
|
||||
* @author zhangziao
|
||||
*/
|
||||
@Data
|
||||
@AllArgsConstructor
|
||||
@NoArgsConstructor
|
||||
@Builder
|
||||
public class BusinessStationRankVO {
|
||||
|
||||
/**
|
||||
* 排行名次
|
||||
*/
|
||||
private Integer rank;
|
||||
|
||||
/**
|
||||
* 站点ID
|
||||
*/
|
||||
private String stationId;
|
||||
|
||||
/**
|
||||
* 场站名称
|
||||
*/
|
||||
private String stationName;
|
||||
|
||||
/**
|
||||
* 订单总数
|
||||
*/
|
||||
private Integer orderCount;
|
||||
}
|
||||
Reference in New Issue
Block a user