mirror of
https://codeup.aliyun.com/67c68d4e484ca2f0a13ac3c1/ydc/jsowell-charger-web.git
synced 2026-06-29 11:38:04 +08:00
update 订单实时记录
This commit is contained in:
@@ -197,6 +197,7 @@ public class OrderBasicInfoServiceImpl implements IOrderBasicInfoService {
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* 通过订单状态和支付状态 转换订单状态描述
|
* 通过订单状态和支付状态 转换订单状态描述
|
||||||
|
*
|
||||||
* @param orderStatus
|
* @param orderStatus
|
||||||
* @param payStatus
|
* @param payStatus
|
||||||
* @return
|
* @return
|
||||||
@@ -708,6 +709,24 @@ public class OrderBasicInfoServiceImpl implements IOrderBasicInfoService {
|
|||||||
if (CollectionUtils.isEmpty(chargingRealTimeData)) {
|
if (CollectionUtils.isEmpty(chargingRealTimeData)) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
List<RealTimeMonitorData> list = Lists.newArrayList();
|
||||||
|
for (RealTimeMonitorData data : chargingRealTimeData) {
|
||||||
|
RealTimeMonitorData build = RealTimeMonitorData.builder()
|
||||||
|
.outputCurrent(data.getOutputCurrent())
|
||||||
|
.outputCurrent(data.getOutputCurrent()) // 电流
|
||||||
|
.outputVoltage(data.getOutputVoltage()) // 电压
|
||||||
|
.outputPower(data.getOutputPower()) // 功率
|
||||||
|
.SOC(data.getSOC()) // soc
|
||||||
|
.dateTime(data.getDateTime()) // 时间
|
||||||
|
.batteryMaxTemperature(data.getBatteryMaxTemperature())
|
||||||
|
.chargingAmount(data.getChargingAmount())
|
||||||
|
.chargingDegree(data.getChargingDegree())
|
||||||
|
.sumChargingTime(data.getSumChargingTime())
|
||||||
|
.timeRemaining(data.getTimeRemaining())
|
||||||
|
.gunLineTemperature(data.getGunLineTemperature())
|
||||||
|
.build();
|
||||||
|
list.add(build);
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
// 删除redis中缓存
|
// 删除redis中缓存
|
||||||
@@ -1342,6 +1361,7 @@ public class OrderBasicInfoServiceImpl implements IOrderBasicInfoService {
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* 生成订单 返回交易流水号
|
* 生成订单 返回交易流水号
|
||||||
|
*
|
||||||
* @param dto
|
* @param dto
|
||||||
* @return
|
* @return
|
||||||
*/
|
*/
|
||||||
@@ -1426,6 +1446,7 @@ public class OrderBasicInfoServiceImpl implements IOrderBasicInfoService {
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* 联联平台 获取累计数据用
|
* 联联平台 获取累计数据用
|
||||||
|
*
|
||||||
* @param dto
|
* @param dto
|
||||||
* @return
|
* @return
|
||||||
*/
|
*/
|
||||||
@@ -1436,6 +1457,7 @@ public class OrderBasicInfoServiceImpl implements IOrderBasicInfoService {
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* 联联平台生成订单
|
* 联联平台生成订单
|
||||||
|
*
|
||||||
* @param dto
|
* @param dto
|
||||||
* @return
|
* @return
|
||||||
*/
|
*/
|
||||||
|
|||||||
Reference in New Issue
Block a user