Commit 13d0976c by chenxi

业务端实现实时数据新增字段

1 parent 2ffce2ff
......@@ -76,6 +76,12 @@ public class ChargingRealTimeData {
private String gunWireNumber;
/**
* soc
*/
@Column(name = "soc")
private String soc;
/**
* 电池组最高温度
*/
@Column(name = "battery_highest_temperature")
......
......@@ -102,4 +102,28 @@ public class ChargingBmsMachineData {
* 1 min/位,0 min 偏移量;数据范围:0~600 min
*/
private short bmsLeftChargingTime;
/**
* 电桩电压输出值
* 数据类型:byte[] (bin码)
* 长度(Byte):2
* 0.1 V/位,0 V 偏移量
*/
private byte[] pileOutputVoltage = new byte[2];
/**
* 电桩电流输出值
* 数据类型:byte[] (bin码)
* 长度(Byte):2
* 0.1 A/位,-400 A 偏移量
*/
private byte[] pileOutputCurrent = new byte[2];
/**
* 累计充电时间
* 数据类型:byte[] (bin码)
* 1 min/位,0 min 偏移量;数据范围:0~600 min
*/
private byte[] accumulatedChargingTime = new byte[2];
}
......@@ -63,7 +63,7 @@ public class ChargingCompletionData {
private byte bmsBatteryLowestTemperature;
/**
* BMS 动力蓄电池最低温度 BIN
* BMS 动力蓄电池最高温度 BIN
* 1ºC/位,-50 ºC 偏移量;数据范围:-50 ºC ~+200 ºC
*/
private byte bmsBatteryHighestTemperature;
......
......@@ -7,7 +7,7 @@ import java.math.BigDecimal;
/**
* @Author: chenx
* @Description: 参数配置上传数据
* @Description: 充电握手上传数据
* @Date: 2023/11/15 11:36
* @Version: 1.0
*/
......
......@@ -55,6 +55,15 @@ public class MachineParamConfigData {
private BigDecimal bmsBatteryHighestCurrent;
/**
* BMS动力蓄电池标称总能量
* 数据类型:byte[] (bin码)
* 长度(Byte):2
* 备注:0.1 kWh/位,0 kWh 偏移量; 数据范围:0~1000 kWh
*/
private BigDecimal bmsBatteryTotalEnergy;
/**
* BMS 最高允许充电总电压
* 数据类型:byte[] (bin码)
* 长度(Byte):2
......
......@@ -63,6 +63,7 @@ public class DataInteractionController implements DataInteractionFeignClient {
@Override
@PostMapping("/upload/charging/handshake")
public Result<Boolean> uploadChargingHandshakeData(@RequestBody ChargingHandshakeData handshakeData) {
log.info("充电握手上传数据:{}", JSON.toJSONString(handshakeData));
return Result.success(true);
}
......
package cn.com.glsx.evbusiness.modules.service;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Service;
/**
* @Author: chenx
* @Description: 参数配置上传数据
* @Date: 2023/11/15 11:36
* @Version: 1.0
*/
@Service
@Slf4j
public class ChargingHandshakeService {
}
......@@ -35,7 +35,6 @@ public class RealTimeDataService {
chargingRealTimeDataMapper.insert(data);
byte[] hardwareMalfunction = realTimeUploadData.getHardwareMalfunction();
String hardwareMalfunctionString = binByteToString(hardwareMalfunction);
chargingMalfunctionReasonService.insertList(null);
}
......
......@@ -15,6 +15,7 @@
<result column="output_voltage" jdbcType="DECIMAL" property="outputVoltage" />
<result column="output_current" jdbcType="DECIMAL" property="outputCurrent" />
<result column="gun_wire_temperature" jdbcType="INTEGER" property="gunWireTemperature" />
<result column="soc" jdbcType="VARCHAR" property="soc" />
<result column="gun_wire_number" jdbcType="VARCHAR" property="gunWireNumber" />
<result column="battery_highest_temperature" jdbcType="TINYINT" property="batteryHighestTemperature" />
<result column="accumulated_charging_time" jdbcType="SMALLINT" property="accumulatedChargingTime" />
......@@ -33,7 +34,7 @@
WARNING - @mbg.generated
-->
id, transaction_serial_number, pile_id, gun_number, status, if_return, if_charging,
output_voltage, output_current, gun_wire_temperature, gun_wire_number, battery_highest_temperature,
output_voltage, output_current, gun_wire_temperature, soc, gun_wire_number, battery_highest_temperature,
accumulated_charging_time, time_left, charging_degree, loss_charging_degree, charging_money,
created_by, created_date, updated_by, updated_date, deleted_flag
</sql>
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!