Commit 8d636724 by chenxi

业务端实现表结构关联的model类生成

1 parent 95273885
Showing 35 changed files with 1428 additions and 32 deletions
package cn.com.glsx.evbusiness.modules.entity;
import java.util.Date;
import javax.persistence.*;
@Table(name = "charging_bms_aborting_charging")
public class ChargingBmsAbortingCharging {
/**
* 主键
*/
@Id
@GeneratedValue(strategy = GenerationType.IDENTITY)
private Integer id;
/**
* 交易流水号
*/
@Column(name = "transaction_serial_number")
private String transactionSerialNumber;
/**
* 桩编号
*/
@Column(name = "pile_id")
private String pileId;
/**
* 枪号
*/
@Column(name = "gun_number")
private Boolean gunNumber;
/**
* 创建人
*/
@Column(name = "created_by")
private String createdBy;
/**
* 创建时间
*/
@Column(name = "created_date")
private Date createdDate;
/**
* 修改人
*/
@Column(name = "updated_by")
private String updatedBy;
/**
* 修改时间
*/
@Column(name = "updated_date")
private Date updatedDate;
/**
* 删除标识(D:已删除;N:未删除)
*/
@Column(name = "deleted_flag")
private String deletedFlag;
/**
* 获取主键
*
* @return id - 主键
*/
public Integer getId() {
return id;
}
/**
* 设置主键
*
* @param id 主键
*/
public void setId(Integer id) {
this.id = id;
}
/**
* 获取交易流水号
*
* @return transaction_serial_number - 交易流水号
*/
public String getTransactionSerialNumber() {
return transactionSerialNumber;
}
/**
* 设置交易流水号
*
* @param transactionSerialNumber 交易流水号
*/
public void setTransactionSerialNumber(String transactionSerialNumber) {
this.transactionSerialNumber = transactionSerialNumber == null ? null : transactionSerialNumber.trim();
}
/**
* 获取桩编号
*
* @return pile_id - 桩编号
*/
public String getPileId() {
return pileId;
}
/**
* 设置桩编号
*
* @param pileId 桩编号
*/
public void setPileId(String pileId) {
this.pileId = pileId == null ? null : pileId.trim();
}
/**
* 获取枪号
*
* @return gun_number - 枪号
*/
public Boolean getGunNumber() {
return gunNumber;
}
/**
* 设置枪号
*
* @param gunNumber 枪号
*/
public void setGunNumber(Boolean gunNumber) {
this.gunNumber = gunNumber;
}
/**
* 获取创建人
*
* @return created_by - 创建人
*/
public String getCreatedBy() {
return createdBy;
}
/**
* 设置创建人
*
* @param createdBy 创建人
*/
public void setCreatedBy(String createdBy) {
this.createdBy = createdBy == null ? null : createdBy.trim();
}
/**
* 获取创建时间
*
* @return created_date - 创建时间
*/
public Date getCreatedDate() {
return createdDate;
}
/**
* 设置创建时间
*
* @param createdDate 创建时间
*/
public void setCreatedDate(Date createdDate) {
this.createdDate = createdDate;
}
/**
* 获取修改人
*
* @return updated_by - 修改人
*/
public String getUpdatedBy() {
return updatedBy;
}
/**
* 设置修改人
*
* @param updatedBy 修改人
*/
public void setUpdatedBy(String updatedBy) {
this.updatedBy = updatedBy == null ? null : updatedBy.trim();
}
/**
* 获取修改时间
*
* @return updated_date - 修改时间
*/
public Date getUpdatedDate() {
return updatedDate;
}
/**
* 设置修改时间
*
* @param updatedDate 修改时间
*/
public void setUpdatedDate(Date updatedDate) {
this.updatedDate = updatedDate;
}
/**
* 获取删除标识(D:已删除;N:未删除)
*
* @return deleted_flag - 删除标识(D:已删除;N:未删除)
*/
public String getDeletedFlag() {
return deletedFlag;
}
/**
* 设置删除标识(D:已删除;N:未删除)
*
* @param deletedFlag 删除标识(D:已删除;N:未删除)
*/
public void setDeletedFlag(String deletedFlag) {
this.deletedFlag = deletedFlag == null ? null : deletedFlag.trim();
}
}
\ No newline at end of file \ No newline at end of file
package cn.com.glsx.evbusiness.modules.entity;
import java.math.BigDecimal;
import java.util.Date;
import javax.persistence.*;
@Table(name = "charging_completion")
public class ChargingCompletion {
/**
* 主键
*/
@Id
@GeneratedValue(strategy = GenerationType.IDENTITY)
private Integer id;
/**
* 交易流水号
*/
@Column(name = "transaction_serial_number")
private String transactionSerialNumber;
/**
* 桩编号
*/
@Column(name = "pile_id")
private String pileId;
/**
* 枪号
*/
@Column(name = "gun_number")
private Boolean gunNumber;
/**
* BMS中止荷电状态
*/
@Column(name = "bms_soc")
private Byte bmsSoc;
/**
* BMS动力蓄电池单体最低电压
*/
@Column(name = "bms_battery_lowest_voltage")
private BigDecimal bmsBatteryLowestVoltage;
/**
* BMS动力蓄电池单体最高电压
*/
@Column(name = "bms_battery_highest_voltage")
private BigDecimal bmsBatteryHighestVoltage;
/**
* BMS动力蓄电池最低温度
*/
@Column(name = "bms_battery_lowest_temperature")
private Short bmsBatteryLowestTemperature;
/**
* BMS动力蓄电池最高温度
*/
@Column(name = "bms_battery_highest_temperature")
private Short bmsBatteryHighestTemperature;
/**
* 电桩累计充电时间
*/
@Column(name = "pile_accumulated_charging_time")
private Short pileAccumulatedChargingTime;
/**
* 电桩输出能量
*/
@Column(name = "pile_accumulated_output_energy")
private BigDecimal pileAccumulatedOutputEnergy;
/**
* 电桩充电机编号
*/
@Column(name = "pile_charging_machine_number")
private Integer pileChargingMachineNumber;
/**
* 创建人
*/
@Column(name = "created_by")
private String createdBy;
/**
* 创建时间
*/
@Column(name = "created_date")
private Date createdDate;
/**
* 修改人
*/
@Column(name = "updated_by")
private String updatedBy;
/**
* 修改时间
*/
@Column(name = "updated_date")
private Date updatedDate;
/**
* 删除标识(D:已删除;N:未删除)
*/
@Column(name = "deleted_flag")
private String deletedFlag;
/**
* 获取主键
*
* @return id - 主键
*/
public Integer getId() {
return id;
}
/**
* 设置主键
*
* @param id 主键
*/
public void setId(Integer id) {
this.id = id;
}
/**
* 获取交易流水号
*
* @return transaction_serial_number - 交易流水号
*/
public String getTransactionSerialNumber() {
return transactionSerialNumber;
}
/**
* 设置交易流水号
*
* @param transactionSerialNumber 交易流水号
*/
public void setTransactionSerialNumber(String transactionSerialNumber) {
this.transactionSerialNumber = transactionSerialNumber == null ? null : transactionSerialNumber.trim();
}
/**
* 获取桩编号
*
* @return pile_id - 桩编号
*/
public String getPileId() {
return pileId;
}
/**
* 设置桩编号
*
* @param pileId 桩编号
*/
public void setPileId(String pileId) {
this.pileId = pileId == null ? null : pileId.trim();
}
/**
* 获取枪号
*
* @return gun_number - 枪号
*/
public Boolean getGunNumber() {
return gunNumber;
}
/**
* 设置枪号
*
* @param gunNumber 枪号
*/
public void setGunNumber(Boolean gunNumber) {
this.gunNumber = gunNumber;
}
/**
* 获取BMS中止荷电状态
*
* @return bms_soc - BMS中止荷电状态
*/
public Byte getBmsSoc() {
return bmsSoc;
}
/**
* 设置BMS中止荷电状态
*
* @param bmsSoc BMS中止荷电状态
*/
public void setBmsSoc(Byte bmsSoc) {
this.bmsSoc = bmsSoc;
}
/**
* 获取BMS动力蓄电池单体最低电压
*
* @return bms_battery_lowest_voltage - BMS动力蓄电池单体最低电压
*/
public BigDecimal getBmsBatteryLowestVoltage() {
return bmsBatteryLowestVoltage;
}
/**
* 设置BMS动力蓄电池单体最低电压
*
* @param bmsBatteryLowestVoltage BMS动力蓄电池单体最低电压
*/
public void setBmsBatteryLowestVoltage(BigDecimal bmsBatteryLowestVoltage) {
this.bmsBatteryLowestVoltage = bmsBatteryLowestVoltage;
}
/**
* 获取BMS动力蓄电池单体最高电压
*
* @return bms_battery_highest_voltage - BMS动力蓄电池单体最高电压
*/
public BigDecimal getBmsBatteryHighestVoltage() {
return bmsBatteryHighestVoltage;
}
/**
* 设置BMS动力蓄电池单体最高电压
*
* @param bmsBatteryHighestVoltage BMS动力蓄电池单体最高电压
*/
public void setBmsBatteryHighestVoltage(BigDecimal bmsBatteryHighestVoltage) {
this.bmsBatteryHighestVoltage = bmsBatteryHighestVoltage;
}
/**
* 获取BMS动力蓄电池最低温度
*
* @return bms_battery_lowest_temperature - BMS动力蓄电池最低温度
*/
public Short getBmsBatteryLowestTemperature() {
return bmsBatteryLowestTemperature;
}
/**
* 设置BMS动力蓄电池最低温度
*
* @param bmsBatteryLowestTemperature BMS动力蓄电池最低温度
*/
public void setBmsBatteryLowestTemperature(Short bmsBatteryLowestTemperature) {
this.bmsBatteryLowestTemperature = bmsBatteryLowestTemperature;
}
/**
* 获取BMS动力蓄电池最高温度
*
* @return bms_battery_highest_temperature - BMS动力蓄电池最高温度
*/
public Short getBmsBatteryHighestTemperature() {
return bmsBatteryHighestTemperature;
}
/**
* 设置BMS动力蓄电池最高温度
*
* @param bmsBatteryHighestTemperature BMS动力蓄电池最高温度
*/
public void setBmsBatteryHighestTemperature(Short bmsBatteryHighestTemperature) {
this.bmsBatteryHighestTemperature = bmsBatteryHighestTemperature;
}
/**
* 获取电桩累计充电时间
*
* @return pile_accumulated_charging_time - 电桩累计充电时间
*/
public Short getPileAccumulatedChargingTime() {
return pileAccumulatedChargingTime;
}
/**
* 设置电桩累计充电时间
*
* @param pileAccumulatedChargingTime 电桩累计充电时间
*/
public void setPileAccumulatedChargingTime(Short pileAccumulatedChargingTime) {
this.pileAccumulatedChargingTime = pileAccumulatedChargingTime;
}
/**
* 获取电桩输出能量
*
* @return pile_accumulated_output_energy - 电桩输出能量
*/
public BigDecimal getPileAccumulatedOutputEnergy() {
return pileAccumulatedOutputEnergy;
}
/**
* 设置电桩输出能量
*
* @param pileAccumulatedOutputEnergy 电桩输出能量
*/
public void setPileAccumulatedOutputEnergy(BigDecimal pileAccumulatedOutputEnergy) {
this.pileAccumulatedOutputEnergy = pileAccumulatedOutputEnergy;
}
/**
* 获取电桩充电机编号
*
* @return pile_charging_machine_number - 电桩充电机编号
*/
public Integer getPileChargingMachineNumber() {
return pileChargingMachineNumber;
}
/**
* 设置电桩充电机编号
*
* @param pileChargingMachineNumber 电桩充电机编号
*/
public void setPileChargingMachineNumber(Integer pileChargingMachineNumber) {
this.pileChargingMachineNumber = pileChargingMachineNumber;
}
/**
* 获取创建人
*
* @return created_by - 创建人
*/
public String getCreatedBy() {
return createdBy;
}
/**
* 设置创建人
*
* @param createdBy 创建人
*/
public void setCreatedBy(String createdBy) {
this.createdBy = createdBy == null ? null : createdBy.trim();
}
/**
* 获取创建时间
*
* @return created_date - 创建时间
*/
public Date getCreatedDate() {
return createdDate;
}
/**
* 设置创建时间
*
* @param createdDate 创建时间
*/
public void setCreatedDate(Date createdDate) {
this.createdDate = createdDate;
}
/**
* 获取修改人
*
* @return updated_by - 修改人
*/
public String getUpdatedBy() {
return updatedBy;
}
/**
* 设置修改人
*
* @param updatedBy 修改人
*/
public void setUpdatedBy(String updatedBy) {
this.updatedBy = updatedBy == null ? null : updatedBy.trim();
}
/**
* 获取修改时间
*
* @return updated_date - 修改时间
*/
public Date getUpdatedDate() {
return updatedDate;
}
/**
* 设置修改时间
*
* @param updatedDate 修改时间
*/
public void setUpdatedDate(Date updatedDate) {
this.updatedDate = updatedDate;
}
/**
* 获取删除标识(D:已删除;N:未删除)
*
* @return deleted_flag - 删除标识(D:已删除;N:未删除)
*/
public String getDeletedFlag() {
return deletedFlag;
}
/**
* 设置删除标识(D:已删除;N:未删除)
*
* @param deletedFlag 删除标识(D:已删除;N:未删除)
*/
public void setDeletedFlag(String deletedFlag) {
this.deletedFlag = deletedFlag == null ? null : deletedFlag.trim();
}
}
\ No newline at end of file \ No newline at end of file
package cn.com.glsx.evbusiness.modules.entity;
import java.util.Date;
import javax.persistence.*;
@Table(name = "charging_machine_aborting_charging")
public class ChargingMachineAbortingCharging {
/**
* 主键
*/
@Id
@GeneratedValue(strategy = GenerationType.IDENTITY)
private Integer id;
/**
* 交易流水号
*/
@Column(name = "transaction_serial_number")
private String transactionSerialNumber;
/**
* 桩编号
*/
@Column(name = "pile_id")
private String pileId;
/**
* 枪号
*/
@Column(name = "gun_number")
private Boolean gunNumber;
/**
* 创建人
*/
@Column(name = "created_by")
private String createdBy;
/**
* 创建时间
*/
@Column(name = "created_date")
private Date createdDate;
/**
* 修改人
*/
@Column(name = "updated_by")
private String updatedBy;
/**
* 修改时间
*/
@Column(name = "updated_date")
private Date updatedDate;
/**
* 删除标识(D:已删除;N:未删除)
*/
@Column(name = "deleted_flag")
private String deletedFlag;
/**
* 获取主键
*
* @return id - 主键
*/
public Integer getId() {
return id;
}
/**
* 设置主键
*
* @param id 主键
*/
public void setId(Integer id) {
this.id = id;
}
/**
* 获取交易流水号
*
* @return transaction_serial_number - 交易流水号
*/
public String getTransactionSerialNumber() {
return transactionSerialNumber;
}
/**
* 设置交易流水号
*
* @param transactionSerialNumber 交易流水号
*/
public void setTransactionSerialNumber(String transactionSerialNumber) {
this.transactionSerialNumber = transactionSerialNumber == null ? null : transactionSerialNumber.trim();
}
/**
* 获取桩编号
*
* @return pile_id - 桩编号
*/
public String getPileId() {
return pileId;
}
/**
* 设置桩编号
*
* @param pileId 桩编号
*/
public void setPileId(String pileId) {
this.pileId = pileId == null ? null : pileId.trim();
}
/**
* 获取枪号
*
* @return gun_number - 枪号
*/
public Boolean getGunNumber() {
return gunNumber;
}
/**
* 设置枪号
*
* @param gunNumber 枪号
*/
public void setGunNumber(Boolean gunNumber) {
this.gunNumber = gunNumber;
}
/**
* 获取创建人
*
* @return created_by - 创建人
*/
public String getCreatedBy() {
return createdBy;
}
/**
* 设置创建人
*
* @param createdBy 创建人
*/
public void setCreatedBy(String createdBy) {
this.createdBy = createdBy == null ? null : createdBy.trim();
}
/**
* 获取创建时间
*
* @return created_date - 创建时间
*/
public Date getCreatedDate() {
return createdDate;
}
/**
* 设置创建时间
*
* @param createdDate 创建时间
*/
public void setCreatedDate(Date createdDate) {
this.createdDate = createdDate;
}
/**
* 获取修改人
*
* @return updated_by - 修改人
*/
public String getUpdatedBy() {
return updatedBy;
}
/**
* 设置修改人
*
* @param updatedBy 修改人
*/
public void setUpdatedBy(String updatedBy) {
this.updatedBy = updatedBy == null ? null : updatedBy.trim();
}
/**
* 获取修改时间
*
* @return updated_date - 修改时间
*/
public Date getUpdatedDate() {
return updatedDate;
}
/**
* 设置修改时间
*
* @param updatedDate 修改时间
*/
public void setUpdatedDate(Date updatedDate) {
this.updatedDate = updatedDate;
}
/**
* 获取删除标识(D:已删除;N:未删除)
*
* @return deleted_flag - 删除标识(D:已删除;N:未删除)
*/
public String getDeletedFlag() {
return deletedFlag;
}
/**
* 设置删除标识(D:已删除;N:未删除)
*
* @param deletedFlag 删除标识(D:已删除;N:未删除)
*/
public void setDeletedFlag(String deletedFlag) {
this.deletedFlag = deletedFlag == null ? null : deletedFlag.trim();
}
}
\ No newline at end of file \ No newline at end of file
...@@ -16,19 +16,19 @@ public class ChargingMalfunctionReason { ...@@ -16,19 +16,19 @@ public class ChargingMalfunctionReason {
* 上报数据id * 上报数据id
*/ */
@Column(name = "data_id") @Column(name = "data_id")
private String dataId; private Integer dataId;
/** /**
* 故障类型 * 故障类型 1-实时监测数据硬件故障 2-BMS中止充电原因 3-BMS中止充电故障原因 4-BMS中止充电错误原因 5-充电机中止充电原因 6-充电机中止充电故障原因 7-充电机中止充电错误原因
*/ */
@Column(name = "malfunction_type") @Column(name = "malfunction_type")
private Byte malfunctionType; private Byte malfunctionType;
/** /**
* 故障类型 1-实时监测数据硬件故障 2-BMS中止充电原因 3-BMS中止充电故障原因 4-BMS中止充电错误原因 5-充电机中止充电原因 6-充电机中止充电故障原因 7-充电机中止充电错误原因 * 故障类型
*/ */
@Column(name = "malfunction_reason") @Column(name = "malfunction_reason")
private Byte malfunctionReason; private Short malfunctionReason;
/** /**
* 创建人 * 创建人
...@@ -83,7 +83,7 @@ public class ChargingMalfunctionReason { ...@@ -83,7 +83,7 @@ public class ChargingMalfunctionReason {
* *
* @return data_id - 上报数据id * @return data_id - 上报数据id
*/ */
public String getDataId() { public Integer getDataId() {
return dataId; return dataId;
} }
...@@ -92,8 +92,8 @@ public class ChargingMalfunctionReason { ...@@ -92,8 +92,8 @@ public class ChargingMalfunctionReason {
* *
* @param dataId 上报数据id * @param dataId 上报数据id
*/ */
public void setDataId(String dataId) { public void setDataId(Integer dataId) {
this.dataId = dataId == null ? null : dataId.trim(); this.dataId = dataId;
} }
/** /**
...@@ -115,20 +115,20 @@ public class ChargingMalfunctionReason { ...@@ -115,20 +115,20 @@ public class ChargingMalfunctionReason {
} }
/** /**
* 获取故障类型 1-实时监测数据硬件故障 2-BMS中止充电原因 3-BMS中止充电故障原因 4-BMS中止充电错误原因 5-充电机中止充电原因 6-充电机中止充电故障原因 7-充电机中止充电错误原因 * 获取故障类型
* *
* @return malfunction_reason - 故障类型 1-实时监测数据硬件故障 2-BMS中止充电原因 3-BMS中止充电故障原因 4-BMS中止充电错误原因 5-充电机中止充电原因 6-充电机中止充电故障原因 7-充电机中止充电错误原因 * @return malfunction_reason
*/ */
public Byte getMalfunctionReason() { public Short getMalfunctionReason() {
return malfunctionReason; return malfunctionReason;
} }
/** /**
* 设置故障类型 1-实时监测数据硬件故障 2-BMS中止充电原因 3-BMS中止充电故障原因 4-BMS中止充电错误原因 5-充电机中止充电原因 6-充电机中止充电故障原因 7-充电机中止充电错误原因 * 设置故障类型
* *
* @param malfunctionReason 故障类型 1-实时监测数据硬件故障 2-BMS中止充电原因 3-BMS中止充电故障原因 4-BMS中止充电错误原因 5-充电机中止充电原因 6-充电机中止充电故障原因 7-充电机中止充电错误原因 * @param malfunctionReason 故障类型
*/ */
public void setMalfunctionReason(Byte malfunctionReason) { public void setMalfunctionReason(Short malfunctionReason) {
this.malfunctionReason = malfunctionReason; this.malfunctionReason = malfunctionReason;
} }
......
...@@ -2,6 +2,7 @@ package cn.com.glsx.evbusiness.modules.enums; ...@@ -2,6 +2,7 @@ package cn.com.glsx.evbusiness.modules.enums;
import lombok.AllArgsConstructor; import lombok.AllArgsConstructor;
import lombok.Getter; import lombok.Getter;
import org.apache.ibatis.javassist.CodeConverter;
import java.util.Arrays; import java.util.Arrays;
import java.util.List; import java.util.List;
...@@ -17,21 +18,33 @@ import java.util.stream.Collectors; ...@@ -17,21 +18,33 @@ import java.util.stream.Collectors;
@AllArgsConstructor @AllArgsConstructor
@Getter @Getter
public enum HardwareFaultEnums { public enum HardwareFaultEnums {
BIT1((short)1, "急停按钮动作故障"), BIT1((byte)0, (short)1, "急停按钮动作故障"),
BIT2((short)2, "无可用整流模块"), BIT2((byte)1, (short)2, "无可用整流模块"),
BIT3((short)4, "出风口温度过高"), BIT3((byte)2, (short)4, "出风口温度过高"),
BIT4((short)8, "交流防雷故障"), BIT4((byte)3, (short)8, "交流防雷故障"),
BIT5((short)16, "交直流模块DC20通信中断"), BIT5((byte)4, (short)16, "交直流模块DC20通信中断"),
BIT6((short)32, "绝缘检测模块FC08通信中断"), BIT6((byte)5, (short)32, "绝缘检测模块FC08通信中断"),
BIT7((short)64, "电度表通信中断"), BIT7((byte)6, (short)64, "电度表通信中断"),
BIT8((short)128, "读卡器通信中断"), BIT8((byte)7, (short)128, "读卡器通信中断"),
BIT9((short)256, "RC10通信中断"), BIT9((byte)8, (short)256, "RC10通信中断"),
BIT10((short)512, "风扇调速板故障"), BIT10((byte)9, (short)512, "风扇调速板故障"),
BIT11((short)1024, "直流熔断器故障"), BIT11((byte)10, (short)1024, "直流熔断器故障"),
BIT12((short)2048, "高压接触器故障"), BIT12((byte)11, (short)2048, "高压接触器故障"),
BIT13((short)4096, "门打开"); BIT13((byte)12, (short)4096, "门打开");
/**
* bit位表示数值
*/
private byte offset;
/**
* bit位表示数值
*/
private Short code; private Short code;
/**
* 故障内容
*/
private String msg; private String msg;
public static String getMsgByCode(Short code) { public static String getMsgByCode(Short code) {
......
package cn.com.glsx.evbusiness.modules.mapper;
import cn.com.glsx.evbusiness.modules.entity.ChargingBmsAbortingCharging;
import com.glsx.plat.mybatis.mapper.CommonBaseMapper;
import org.apache.ibatis.annotations.Mapper;
@Mapper
public interface ChargingBmsAbortingChargingMapper extends CommonBaseMapper<ChargingBmsAbortingCharging> {
}
\ No newline at end of file \ No newline at end of file
package cn.com.glsx.evbusiness.modules.mapper;
import cn.com.glsx.evbusiness.modules.entity.ChargingBmsData;
import com.glsx.plat.mybatis.mapper.CommonBaseMapper;
import org.apache.ibatis.annotations.Mapper;
@Mapper
public interface ChargingBmsDataMapper extends CommonBaseMapper<ChargingBmsData> {
}
\ No newline at end of file \ No newline at end of file
package cn.com.glsx.evbusiness.modules.mapper;
import cn.com.glsx.evbusiness.modules.entity.ChargingBmsMachineData;
import com.glsx.plat.mybatis.mapper.CommonBaseMapper;
import org.apache.ibatis.annotations.Mapper;
@Mapper
public interface ChargingBmsMachineDataMapper extends CommonBaseMapper<ChargingBmsMachineData> {
}
\ No newline at end of file \ No newline at end of file
package cn.com.glsx.evbusiness.modules.mapper;
import cn.com.glsx.evbusiness.modules.entity.ChargingBmsMachine;
import com.glsx.plat.mybatis.mapper.CommonBaseMapper;
import org.apache.ibatis.annotations.Mapper;
@Mapper
public interface ChargingBmsMachineMapper extends CommonBaseMapper<ChargingBmsMachine> {
}
\ No newline at end of file \ No newline at end of file
package cn.com.glsx.evbusiness.modules.mapper;
import cn.com.glsx.evbusiness.modules.entity.ChargingCompletion;
import com.glsx.plat.mybatis.mapper.CommonBaseMapper;
import org.apache.ibatis.annotations.Mapper;
@Mapper
public interface ChargingCompletionMapper extends CommonBaseMapper<ChargingCompletion> {
}
\ No newline at end of file \ No newline at end of file
package cn.com.glsx.evbusiness.modules.mapper;
import cn.com.glsx.evbusiness.modules.entity.ChargingErrorMessage;
import com.glsx.plat.mybatis.mapper.CommonBaseMapper;
import org.apache.ibatis.annotations.Mapper;
@Mapper
public interface ChargingErrorMessageMapper extends CommonBaseMapper<ChargingErrorMessage> {
}
\ No newline at end of file \ No newline at end of file
package cn.com.glsx.evbusiness.modules.mapper;
import cn.com.glsx.evbusiness.modules.entity.ChargingHandshake;
import com.glsx.plat.mybatis.mapper.CommonBaseMapper;
import org.apache.ibatis.annotations.Mapper;
@Mapper
public interface ChargingHandshakeMapper extends CommonBaseMapper<ChargingHandshake> {
}
\ No newline at end of file \ No newline at end of file
package cn.com.glsx.evbusiness.modules.mapper;
import cn.com.glsx.evbusiness.modules.entity.ChargingMachineAbortingCharging;
import com.glsx.plat.mybatis.mapper.CommonBaseMapper;
import org.apache.ibatis.annotations.Mapper;
@Mapper
public interface ChargingMachineAbortingChargingMapper extends CommonBaseMapper<ChargingMachineAbortingCharging> {
}
\ No newline at end of file \ No newline at end of file
package cn.com.glsx.evbusiness.modules.mapper;
import cn.com.glsx.evbusiness.modules.entity.ChargingParamConfig;
import com.glsx.plat.mybatis.mapper.CommonBaseMapper;
import org.apache.ibatis.annotations.Mapper;
@Mapper
public interface ChargingParamConfigMapper extends CommonBaseMapper<ChargingParamConfig> {
}
\ No newline at end of file \ No newline at end of file
...@@ -69,7 +69,7 @@ public class ChargingBmsData { ...@@ -69,7 +69,7 @@ public class ChargingBmsData {
private byte lowestTemperatureNumber; private byte lowestTemperatureNumber;
/** /**
* BMS 最低单体动力蓄电池电压所在编号 * BMS 最低动力蓄电池温度检测点编号
* 数据类型:byte (bin码) * 数据类型:byte (bin码)
* 长度(Byte):1 * 长度(Byte):1
* 备注:1/位,1 偏移量;数据范围:1~256 * 备注:1/位,1 偏移量;数据范围:1~256
...@@ -106,7 +106,7 @@ public class ChargingBmsData { ...@@ -106,7 +106,7 @@ public class ChargingBmsData {
* 长度(Byte):2 * 长度(Byte):2
* 备注:(<00>:=正常; <01>:=过流; <10>:=不可信状态) * 备注:(<00>:=正常; <01>:=过流; <10>:=不可信状态)
*/ */
private short bmsBatteryTemperatureStatus; private short bmsBatteryTemperatureTooHigh;
/** /**
* BMS 动力蓄电池绝缘状态 * BMS 动力蓄电池绝缘状态
...@@ -117,6 +117,14 @@ public class ChargingBmsData { ...@@ -117,6 +117,14 @@ public class ChargingBmsData {
private short bmsBatteryInsulationState; private short bmsBatteryInsulationState;
/** /**
* BMS 动力蓄电池组输出连接器连接状态
* 数据类型:byte (bin码)
* 长度(Byte):2
* 备注:(<00>:=正常; <01>:=过流; <10>:=不可信状态)
*/
private short bmsBatteryConnectionState;
/**
* 充电禁止 * 充电禁止
* 数据类型:byte (bin码) * 数据类型:byte (bin码)
* 长度(Byte):2 * 长度(Byte):2
......
package cn.com.glsx.evbusiness.modules.service; package cn.com.glsx.evbusiness.modules.service;
import cn.com.glsx.evbusiness.common.constant.Constants; import cn.com.glsx.evbusiness.common.constant.Constants;
import cn.com.glsx.evbusiness.modules.entity.ChargingMalfunctionReason;
import cn.com.glsx.evbusiness.modules.entity.ChargingRealTimeData; import cn.com.glsx.evbusiness.modules.entity.ChargingRealTimeData;
import cn.com.glsx.evbusiness.modules.enums.HardwareFaultEnums;
import cn.com.glsx.evbusiness.modules.mapper.ChargingRealTimeDataMapper; import cn.com.glsx.evbusiness.modules.mapper.ChargingRealTimeDataMapper;
import cn.com.glsx.evbusiness.modules.model.ocpp16.RealTimeUploadData; import cn.com.glsx.evbusiness.modules.model.ocpp16.RealTimeUploadData;
import cn.com.glsx.evbusiness.utils.CodeConvertUtil;
import cn.com.glsx.framework.core.beans.BaseModel; import cn.com.glsx.framework.core.beans.BaseModel;
import com.google.common.collect.Lists;
import lombok.extern.slf4j.Slf4j; import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired; import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service; import org.springframework.stereotype.Service;
import java.util.List;
import java.util.Objects;
/** /**
* @Author: chenx * @Author: chenx
...@@ -34,8 +41,21 @@ public class RealTimeDataService { ...@@ -34,8 +41,21 @@ public class RealTimeDataService {
ChargingRealTimeData data = setChargingRealTimeData(realTimeUploadData); ChargingRealTimeData data = setChargingRealTimeData(realTimeUploadData);
chargingRealTimeDataMapper.insert(data); chargingRealTimeDataMapper.insert(data);
byte[] hardwareMalfunction = realTimeUploadData.getHardwareMalfunction(); byte[] hardwareMalfunction = realTimeUploadData.getHardwareMalfunction();
String hardwareMalfunctionString = binByteToString(hardwareMalfunction); //从字节数组中按位匹配枚举中的数值
chargingMalfunctionReasonService.insertList(null); List<HardwareFaultEnums> hardwareFaultEnumsByByteArray = getHardwareFaultEnumsByByteArray(hardwareMalfunction);
List<ChargingMalfunctionReason> insertList = buildChargingMalfunctionReasonList(hardwareFaultEnumsByByteArray, data.getId());
chargingMalfunctionReasonService.insertList(insertList);
}
private List<ChargingMalfunctionReason> buildChargingMalfunctionReasonList(List<HardwareFaultEnums> hardwareFaultEnumsList, Integer id) {
List<ChargingMalfunctionReason> insertList = Lists.newArrayList();
for (HardwareFaultEnums hardwareFaultEnums : hardwareFaultEnumsList) {
ChargingMalfunctionReason chargingMalfunctionReason = new ChargingMalfunctionReason();
chargingMalfunctionReason.setDataId(id);
chargingMalfunctionReason.setMalfunctionType((byte) 1);
chargingMalfunctionReason.setMalfunctionReason(hardwareFaultEnums.getCode());
}
return insertList;
} }
public ChargingRealTimeData setChargingRealTimeData(RealTimeUploadData realTimeUploadData) { public ChargingRealTimeData setChargingRealTimeData(RealTimeUploadData realTimeUploadData) {
...@@ -53,6 +73,7 @@ public class RealTimeDataService { ...@@ -53,6 +73,7 @@ public class RealTimeDataService {
chargingRealTimeData.setGunWireNumber(realTimeUploadData.getGunWireNumber()); chargingRealTimeData.setGunWireNumber(realTimeUploadData.getGunWireNumber());
byte batteryHighestTemperature = realTimeUploadData.getBatteryHighestTemperature(); byte batteryHighestTemperature = realTimeUploadData.getBatteryHighestTemperature();
chargingRealTimeData.setBatteryHighestTemperature((byte) (batteryHighestTemperature - 50)); chargingRealTimeData.setBatteryHighestTemperature((byte) (batteryHighestTemperature - 50));
chargingRealTimeData.setAccumulatedChargingTime(realTimeUploadData.getAccumulatedChargingTime());
chargingRealTimeData.setTimeLeft(realTimeUploadData.getTimeLeft()); chargingRealTimeData.setTimeLeft(realTimeUploadData.getTimeLeft());
chargingRealTimeData.setChargingDegree(realTimeUploadData.getChargingDegree()); chargingRealTimeData.setChargingDegree(realTimeUploadData.getChargingDegree());
chargingRealTimeData.setLossChargingDegree(realTimeUploadData.getLossChargingDegree()); chargingRealTimeData.setLossChargingDegree(realTimeUploadData.getLossChargingDegree());
...@@ -66,10 +87,27 @@ public class RealTimeDataService { ...@@ -66,10 +87,27 @@ public class RealTimeDataService {
} }
/**
* 从字节数组中按位匹配枚举中的数值
* @param hardwareMalfunction
* @return
*/
public static List<HardwareFaultEnums> getHardwareFaultEnumsByByteArray(byte[] hardwareMalfunction) {
List<HardwareFaultEnums> result = Lists.newArrayList();
for (HardwareFaultEnums fault : HardwareFaultEnums.values()) {
//取字节数组指定位的数值作为code,从低位到高位开始取
Integer code = CodeConvertUtil.getBitFromByteArray(hardwareMalfunction, fault.getOffset());
if (Objects.equals(code.shortValue(), fault.getCode())) {
result.add(fault);
}
}
return result;
}
public static void main(String[] args) { public static void main(String[] args) {
byte[] byteArray = {(byte) 0b11011010, (byte) 0b00011111}; byte[] byteArray = {(byte) 0b11011010, (byte) 0b00011111};
System.out.println(binByteToString(byteArray)); System.out.println(getHardwareFaultEnumsByByteArray(byteArray));
} }
......
package cn.com.glsx.evbusiness.utils;
import java.math.BigDecimal;
import java.math.BigInteger;
import java.math.RoundingMode;
import java.util.Arrays;
/**
* @Author: chenx
* @Description: 编码转换util
* @Date: 2023/11/20 18:11
* @Version: 1.0
*/
public class CodeConvertUtil { /**
* 协议中【BIN码】字节转换为带指定小数的数值
* @param bytesBin 协议中的BIN码字节
* @param scale 小数位数
* @return
*/
public static BigDecimal bytesBinToBigDecimal(byte[] bytesBin, int scale){
byte[] bytes = Arrays.copyOf(bytesBin,bytesBin.length);
ByteUtils.reverse(bytes);
return hexStrToBigDecimal(ByteUtils.toHex(bytes), scale);
}
public static BigDecimal hexStrToBigDecimal(String hexString, int scale) {
// 将十六进制字符串转换为 BigInteger
BigInteger bigIntegerValue = new BigInteger(hexString, 16);
// 将 BigInteger 转换为 BigDecimal
BigDecimal decimalValue = new BigDecimal(bigIntegerValue);
// 计算缩放因子
BigDecimal scalingFactor = BigDecimal.TEN.pow(scale);
// 应用缩放因子
decimalValue = decimalValue.divide(scalingFactor, scale, RoundingMode.HALF_UP);
return decimalValue;
}
/**
* 获取字节数组第n个bit位表示的数值 eg: 对于字节数组 {10001000,00010000},offset = 7,返回 10000000=128
* @param offset
* @return
*/
public static Integer getBitFromByteArray(byte[] bytes, int offset) {
BigDecimal bigDecimal = bytesBinToBigDecimal(bytes, 0);
return (bigDecimal.intValue() & (byte)1 << offset);
}
}
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper namespace="cn.com.glsx.evbusiness.modules.mapper.ChargingBmsAbortingChargingMapper">
<resultMap id="BaseResultMap" type="cn.com.glsx.evbusiness.modules.entity.ChargingBmsAbortingCharging">
<!--
WARNING - @mbg.generated
-->
<id column="id" jdbcType="INTEGER" property="id" />
<result column="transaction_serial_number" jdbcType="CHAR" property="transactionSerialNumber" />
<result column="pile_id" jdbcType="CHAR" property="pileId" />
<result column="gun_number" jdbcType="BIT" property="gunNumber" />
<result column="created_by" jdbcType="VARCHAR" property="createdBy" />
<result column="created_date" jdbcType="TIMESTAMP" property="createdDate" />
<result column="updated_by" jdbcType="VARCHAR" property="updatedBy" />
<result column="updated_date" jdbcType="TIMESTAMP" property="updatedDate" />
<result column="deleted_flag" jdbcType="CHAR" property="deletedFlag" />
</resultMap>
<sql id="Base_Column_List">
<!--
WARNING - @mbg.generated
-->
id, transaction_serial_number, pile_id, gun_number, created_by, created_date, updated_by,
updated_date, deleted_flag
</sql>
</mapper>
\ No newline at end of file \ No newline at end of file
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper namespace="cn.com.glsx.evbusiness.modules.mapper.ChargingBmsDataMapper">
<resultMap id="BaseResultMap" type="cn.com.glsx.evbusiness.modules.entity.ChargingBmsData">
<!--
WARNING - @mbg.generated
-->
<id column="id" jdbcType="INTEGER" property="id" />
<result column="transaction_serial_number" jdbcType="CHAR" property="transactionSerialNumber" />
<result column="pile_id" jdbcType="CHAR" property="pileId" />
<result column="gun_number" jdbcType="BIT" property="gunNumber" />
<result column="bms_highest_voltage_number" jdbcType="SMALLINT" property="bmsHighestVoltageNumber" />
<result column="bms_battery_temperature" jdbcType="SMALLINT" property="bmsBatteryTemperature" />
<result column="highest_battery_temperature_number" jdbcType="SMALLINT" property="highestBatteryTemperatureNumber" />
<result column="lowest_temperature_number" jdbcType="SMALLINT" property="lowestTemperatureNumber" />
<result column="lowest_battery_temperature_number" jdbcType="SMALLINT" property="lowestBatteryTemperatureNumber" />
<result column="bms_battery_voltage_status" jdbcType="TINYINT" property="bmsBatteryVoltageStatus" />
<result column="bms_battery_charging_status" jdbcType="TINYINT" property="bmsBatteryChargingStatus" />
<result column="bms_battery_over_current" jdbcType="TINYINT" property="bmsBatteryOverCurrent" />
<result column="bms_battery_temperature_status" jdbcType="TINYINT" property="bmsBatteryTemperatureStatus" />
<result column="bms_battery_insulation_state" jdbcType="TINYINT" property="bmsBatteryInsulationState" />
<result column="bmsBatteryConnectionState" jdbcType="TINYINT" property="bmsbatteryconnectionstate" />
<result column="charging_prohibition" jdbcType="TINYINT" property="chargingProhibition" />
<result column="reserved" jdbcType="SMALLINT" property="reserved" />
<result column="created_by" jdbcType="VARCHAR" property="createdBy" />
<result column="created_date" jdbcType="TIMESTAMP" property="createdDate" />
<result column="updated_by" jdbcType="VARCHAR" property="updatedBy" />
<result column="updated_date" jdbcType="TIMESTAMP" property="updatedDate" />
<result column="deleted_flag" jdbcType="CHAR" property="deletedFlag" />
</resultMap>
<sql id="Base_Column_List">
<!--
WARNING - @mbg.generated
-->
id, transaction_serial_number, pile_id, gun_number, bms_highest_voltage_number, bms_battery_temperature,
highest_battery_temperature_number, lowest_temperature_number, lowest_battery_temperature_number,
bms_battery_voltage_status, bms_battery_charging_status, bms_battery_over_current,
bms_battery_temperature_status, bms_battery_insulation_state, bmsBatteryConnectionState,
charging_prohibition, reserved, created_by, created_date, updated_by, updated_date,
deleted_flag
</sql>
</mapper>
\ No newline at end of file \ No newline at end of file
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper namespace="cn.com.glsx.evbusiness.modules.mapper.ChargingBmsMachineDataMapper">
<resultMap id="BaseResultMap" type="cn.com.glsx.evbusiness.modules.entity.ChargingBmsMachineData">
<!--
WARNING - @mbg.generated
-->
<id column="id" jdbcType="INTEGER" property="id" />
<result column="transaction_serial_number" jdbcType="CHAR" property="transactionSerialNumber" />
<result column="pile_id" jdbcType="CHAR" property="pileId" />
<result column="gun_number" jdbcType="BIT" property="gunNumber" />
<result column="bms_required_voltage" jdbcType="DECIMAL" property="bmsRequiredVoltage" />
<result column="bms_required_current" jdbcType="DECIMAL" property="bmsRequiredCurrent" />
<result column="bms_charging_mode" jdbcType="BIT" property="bmsChargingMode" />
<result column="bms_charging_measured_voltage" jdbcType="DECIMAL" property="bmsChargingMeasuredVoltage" />
<result column="bms_charging_measured_current" jdbcType="TINYINT" property="bmsChargingMeasuredCurrent" />
<result column="bms_highest_battery_voltage" jdbcType="INTEGER" property="bmsHighestBatteryVoltage" />
<result column="bms_highest_battery_number" jdbcType="INTEGER" property="bmsHighestBatteryNumber" />
<result column="bms_charging_soc" jdbcType="TINYINT" property="bmsChargingSoc" />
<result column="bms_left_charging_time" jdbcType="SMALLINT" property="bmsLeftChargingTime" />
<result column="pile_output_voltage" jdbcType="DECIMAL" property="pileOutputVoltage" />
<result column="pile_output_current" jdbcType="DECIMAL" property="pileOutputCurrent" />
<result column="accumulated_charging_time" jdbcType="SMALLINT" property="accumulatedChargingTime" />
<result column="created_by" jdbcType="VARCHAR" property="createdBy" />
<result column="created_date" jdbcType="TIMESTAMP" property="createdDate" />
<result column="updated_by" jdbcType="VARCHAR" property="updatedBy" />
<result column="updated_date" jdbcType="TIMESTAMP" property="updatedDate" />
<result column="deleted_flag" jdbcType="CHAR" property="deletedFlag" />
</resultMap>
<sql id="Base_Column_List">
<!--
WARNING - @mbg.generated
-->
id, transaction_serial_number, pile_id, gun_number, bms_required_voltage, bms_required_current,
bms_charging_mode, bms_charging_measured_voltage, bms_charging_measured_current,
bms_highest_battery_voltage, bms_highest_battery_number, bms_charging_soc, bms_left_charging_time,
pile_output_voltage, pile_output_current, accumulated_charging_time, created_by,
created_date, updated_by, updated_date, deleted_flag
</sql>
</mapper>
\ No newline at end of file \ No newline at end of file
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper namespace="cn.com.glsx.evbusiness.modules.mapper.ChargingBmsMachineMapper">
<resultMap id="BaseResultMap" type="cn.com.glsx.evbusiness.modules.entity.ChargingBmsMachine">
<!--
WARNING - @mbg.generated
-->
<id column="id" jdbcType="INTEGER" property="id" />
<result column="transaction_serial_number" jdbcType="CHAR" property="transactionSerialNumber" />
<result column="pile_id" jdbcType="CHAR" property="pileId" />
<result column="gun_number" jdbcType="BIT" property="gunNumber" />
<result column="bms_required_voltage" jdbcType="DECIMAL" property="bmsRequiredVoltage" />
<result column="bms_required_current" jdbcType="DECIMAL" property="bmsRequiredCurrent" />
<result column="bms_charging_mode" jdbcType="BIT" property="bmsChargingMode" />
<result column="bms_charging_measured_voltage" jdbcType="DECIMAL" property="bmsChargingMeasuredVoltage" />
<result column="bms_charging_measured_current" jdbcType="DECIMAL" property="bmsChargingMeasuredCurrent" />
<result column="bms_highest_battery_voltage" jdbcType="DECIMAL" property="bmsHighestBatteryVoltage" />
<result column="bms_highest_battery_number" jdbcType="TINYINT" property="bmsHighestBatteryNumber" />
<result column="bms_charging_soc" jdbcType="TINYINT" property="bmsChargingSoc" />
<result column="bms_left_charging_time" jdbcType="SMALLINT" property="bmsLeftChargingTime" />
<result column="pile_output_voltage" jdbcType="DECIMAL" property="pileOutputVoltage" />
<result column="pile_output_current" jdbcType="DECIMAL" property="pileOutputCurrent" />
<result column="accumulated_charging_time" jdbcType="SMALLINT" property="accumulatedChargingTime" />
<result column="created_by" jdbcType="VARCHAR" property="createdBy" />
<result column="created_date" jdbcType="TIMESTAMP" property="createdDate" />
<result column="updated_by" jdbcType="VARCHAR" property="updatedBy" />
<result column="updated_date" jdbcType="TIMESTAMP" property="updatedDate" />
<result column="deleted_flag" jdbcType="CHAR" property="deletedFlag" />
</resultMap>
<sql id="Base_Column_List">
<!--
WARNING - @mbg.generated
-->
id, transaction_serial_number, pile_id, gun_number, bms_required_voltage, bms_required_current,
bms_charging_mode, bms_charging_measured_voltage, bms_charging_measured_current,
bms_highest_battery_voltage, bms_highest_battery_number, bms_charging_soc, bms_left_charging_time,
pile_output_voltage, pile_output_current, accumulated_charging_time, created_by,
created_date, updated_by, updated_date, deleted_flag
</sql>
</mapper>
\ No newline at end of file \ No newline at end of file
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper namespace="cn.com.glsx.evbusiness.modules.mapper.ChargingCompletionMapper">
<resultMap id="BaseResultMap" type="cn.com.glsx.evbusiness.modules.entity.ChargingCompletion">
<!--
WARNING - @mbg.generated
-->
<id column="id" jdbcType="INTEGER" property="id" />
<result column="transaction_serial_number" jdbcType="CHAR" property="transactionSerialNumber" />
<result column="pile_id" jdbcType="CHAR" property="pileId" />
<result column="gun_number" jdbcType="BIT" property="gunNumber" />
<result column="bms_soc" jdbcType="TINYINT" property="bmsSoc" />
<result column="bms_battery_lowest_voltage" jdbcType="DECIMAL" property="bmsBatteryLowestVoltage" />
<result column="bms_battery_highest_voltage" jdbcType="DECIMAL" property="bmsBatteryHighestVoltage" />
<result column="bms_battery_lowest_temperature" jdbcType="SMALLINT" property="bmsBatteryLowestTemperature" />
<result column="bms_battery_highest_temperature" jdbcType="SMALLINT" property="bmsBatteryHighestTemperature" />
<result column="pile_accumulated_charging_time" jdbcType="SMALLINT" property="pileAccumulatedChargingTime" />
<result column="pile_accumulated_output_energy" jdbcType="DECIMAL" property="pileAccumulatedOutputEnergy" />
<result column="pile_charging_machine_number" jdbcType="INTEGER" property="pileChargingMachineNumber" />
<result column="created_by" jdbcType="VARCHAR" property="createdBy" />
<result column="created_date" jdbcType="TIMESTAMP" property="createdDate" />
<result column="updated_by" jdbcType="VARCHAR" property="updatedBy" />
<result column="updated_date" jdbcType="TIMESTAMP" property="updatedDate" />
<result column="deleted_flag" jdbcType="CHAR" property="deletedFlag" />
</resultMap>
<sql id="Base_Column_List">
<!--
WARNING - @mbg.generated
-->
id, transaction_serial_number, pile_id, gun_number, bms_soc, bms_battery_lowest_voltage,
bms_battery_highest_voltage, bms_battery_lowest_temperature, bms_battery_highest_temperature,
pile_accumulated_charging_time, pile_accumulated_output_energy, pile_charging_machine_number,
created_by, created_date, updated_by, updated_date, deleted_flag
</sql>
</mapper>
\ No newline at end of file \ No newline at end of file
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper namespace="cn.com.glsx.evbusiness.modules.mapper.ChargingErrorMessageMapper">
<resultMap id="BaseResultMap" type="cn.com.glsx.evbusiness.modules.entity.ChargingErrorMessage">
<!--
WARNING - @mbg.generated
-->
<id column="id" jdbcType="INTEGER" property="id" />
<result column="transaction_serial_number" jdbcType="CHAR" property="transactionSerialNumber" />
<result column="pile_id" jdbcType="CHAR" property="pileId" />
<result column="gun_number" jdbcType="BIT" property="gunNumber" />
<result column="message_time_out1" jdbcType="TINYINT" property="messageTimeOut1" />
<result column="message_time_out2" jdbcType="TINYINT" property="messageTimeOut2" />
<result column="reserved1" jdbcType="INTEGER" property="reserved1" />
<result column="time_sync_machine_max_output_message_timeout" jdbcType="TINYINT" property="timeSyncMachineMaxOutputMessageTimeout" />
<result column="machine_charging_completion_message_timeout" jdbcType="TINYINT" property="machineChargingCompletionMessageTimeout" />
<result column="reserved2" jdbcType="INTEGER" property="reserved2" />
<result column="machine_charging_status_message_timeout" jdbcType="TINYINT" property="machineChargingStatusMessageTimeout" />
<result column="machine_aborting_message_timeout" jdbcType="TINYINT" property="machineAbortingMessageTimeout" />
<result column="reserved3" jdbcType="INTEGER" property="reserved3" />
<result column="machine_charging_statistics_message_timeout" jdbcType="TINYINT" property="machineChargingStatisticsMessageTimeout" />
<result column="bms_other" jdbcType="BIGINT" property="bmsOther" />
<result column="bms_car_recognition_message_timeout" jdbcType="TINYINT" property="bmsCarRecognitionMessageTimeout" />
<result column="reserved4" jdbcType="BIGINT" property="reserved4" />
<result column="battery_charging_param_message_timeout" jdbcType="TINYINT" property="batteryChargingParamMessageTimeout" />
<result column="battery_charging_completion_message_timeout" jdbcType="TINYINT" property="batteryChargingCompletionMessageTimeout" />
<result column="reserved5" jdbcType="INTEGER" property="reserved5" />
<result column="bms_charging_status_message_timeout" jdbcType="TINYINT" property="bmsChargingStatusMessageTimeout" />
<result column="bms_charging_demand_message_timeout" jdbcType="TINYINT" property="bmsChargingDemandMessageTimeout" />
<result column="bms_charging_aborting_message_timeout" jdbcType="TINYINT" property="bmsChargingAbortingMessageTimeout" />
<result column="reserved6" jdbcType="SMALLINT" property="reserved6" />
<result column="bms_charging_statistics_message_timeout" jdbcType="TINYINT" property="bmsChargingStatisticsMessageTimeout" />
<result column="machine_other" jdbcType="BIGINT" property="machineOther" />
<result column="created_by" jdbcType="VARCHAR" property="createdBy" />
<result column="created_date" jdbcType="TIMESTAMP" property="createdDate" />
<result column="updated_by" jdbcType="VARCHAR" property="updatedBy" />
<result column="updated_date" jdbcType="TIMESTAMP" property="updatedDate" />
<result column="deleted_flag" jdbcType="CHAR" property="deletedFlag" />
</resultMap>
<sql id="Base_Column_List">
<!--
WARNING - @mbg.generated
-->
id, transaction_serial_number, pile_id, gun_number, message_time_out1, message_time_out2,
reserved1, time_sync_machine_max_output_message_timeout, machine_charging_completion_message_timeout,
reserved2, machine_charging_status_message_timeout, machine_aborting_message_timeout,
reserved3, machine_charging_statistics_message_timeout, bms_other, bms_car_recognition_message_timeout,
reserved4, battery_charging_param_message_timeout, battery_charging_completion_message_timeout,
reserved5, bms_charging_status_message_timeout, bms_charging_demand_message_timeout,
bms_charging_aborting_message_timeout, reserved6, bms_charging_statistics_message_timeout,
machine_other, created_by, created_date, updated_by, updated_date, deleted_flag
</sql>
</mapper>
\ No newline at end of file \ No newline at end of file
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper namespace="cn.com.glsx.evbusiness.modules.mapper.ChargingHandshakeMapper">
<resultMap id="BaseResultMap" type="cn.com.glsx.evbusiness.modules.entity.ChargingHandshake">
<!--
WARNING - @mbg.generated
-->
<id column="id" jdbcType="INTEGER" property="id" />
<result column="transaction_serial_number" jdbcType="CHAR" property="transactionSerialNumber" />
<result column="pile_id" jdbcType="CHAR" property="pileId" />
<result column="gun_number" jdbcType="BIT" property="gunNumber" />
<result column="bms_protocol_version" jdbcType="VARCHAR" property="bmsProtocolVersion" />
<result column="bms_battery_type" jdbcType="TINYINT" property="bmsBatteryType" />
<result column="bms_battery_rated_capacity" jdbcType="DECIMAL" property="bmsBatteryRatedCapacity" />
<result column="bms_battery_rated_voltage" jdbcType="DECIMAL" property="bmsBatteryRatedVoltage" />
<result column="bms_battery_manufacturer" jdbcType="VARCHAR" property="bmsBatteryManufacturer" />
<result column="bms_battery_number" jdbcType="VARCHAR" property="bmsBatteryNumber" />
<result column="bms_battery_production_date" jdbcType="CHAR" property="bmsBatteryProductionDate" />
<result column="bms_battery_charging_time" jdbcType="INTEGER" property="bmsBatteryChargingTime" />
<result column="bms_battery_property_identification" jdbcType="BIT" property="bmsBatteryPropertyIdentification" />
<result column="reserved" jdbcType="INTEGER" property="reserved" />
<result column="bms_car_vin" jdbcType="CHAR" property="bmsCarVin" />
<result column="bms_software_version" jdbcType="VARCHAR" property="bmsSoftwareVersion" />
<result column="created_by" jdbcType="VARCHAR" property="createdBy" />
<result column="created_date" jdbcType="TIMESTAMP" property="createdDate" />
<result column="updated_by" jdbcType="VARCHAR" property="updatedBy" />
<result column="updated_date" jdbcType="TIMESTAMP" property="updatedDate" />
<result column="deleted_flag" jdbcType="CHAR" property="deletedFlag" />
</resultMap>
<sql id="Base_Column_List">
<!--
WARNING - @mbg.generated
-->
id, transaction_serial_number, pile_id, gun_number, bms_protocol_version, bms_battery_type,
bms_battery_rated_capacity, bms_battery_rated_voltage, bms_battery_manufacturer,
bms_battery_number, bms_battery_production_date, bms_battery_charging_time, bms_battery_property_identification,
reserved, bms_car_vin, bms_software_version, created_by, created_date, updated_by,
updated_date, deleted_flag
</sql>
</mapper>
\ No newline at end of file \ No newline at end of file
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper namespace="cn.com.glsx.evbusiness.modules.mapper.ChargingMachineAbortingChargingMapper">
<resultMap id="BaseResultMap" type="cn.com.glsx.evbusiness.modules.entity.ChargingMachineAbortingCharging">
<!--
WARNING - @mbg.generated
-->
<id column="id" jdbcType="INTEGER" property="id" />
<result column="transaction_serial_number" jdbcType="CHAR" property="transactionSerialNumber" />
<result column="pile_id" jdbcType="CHAR" property="pileId" />
<result column="gun_number" jdbcType="BIT" property="gunNumber" />
<result column="created_by" jdbcType="VARCHAR" property="createdBy" />
<result column="created_date" jdbcType="TIMESTAMP" property="createdDate" />
<result column="updated_by" jdbcType="VARCHAR" property="updatedBy" />
<result column="updated_date" jdbcType="TIMESTAMP" property="updatedDate" />
<result column="deleted_flag" jdbcType="CHAR" property="deletedFlag" />
</resultMap>
<sql id="Base_Column_List">
<!--
WARNING - @mbg.generated
-->
id, transaction_serial_number, pile_id, gun_number, created_by, created_date, updated_by,
updated_date, deleted_flag
</sql>
</mapper>
\ No newline at end of file \ No newline at end of file
...@@ -6,7 +6,7 @@ ...@@ -6,7 +6,7 @@
WARNING - @mbg.generated WARNING - @mbg.generated
--> -->
<id column="id" jdbcType="INTEGER" property="id" /> <id column="id" jdbcType="INTEGER" property="id" />
<result column="data_id" jdbcType="CHAR" property="dataId" /> <result column="data_id" jdbcType="INTEGER" property="dataId" />
<result column="malfunction_type" jdbcType="TINYINT" property="malfunctionType" /> <result column="malfunction_type" jdbcType="TINYINT" property="malfunctionType" />
<result column="malfunction_reason" jdbcType="TINYINT" property="malfunctionReason" /> <result column="malfunction_reason" jdbcType="TINYINT" property="malfunctionReason" />
<result column="created_by" jdbcType="VARCHAR" property="createdBy" /> <result column="created_by" jdbcType="VARCHAR" property="createdBy" />
......
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper namespace="cn.com.glsx.evbusiness.modules.mapper.ChargingParamConfigMapper">
<resultMap id="BaseResultMap" type="cn.com.glsx.evbusiness.modules.entity.ChargingParamConfig">
<!--
WARNING - @mbg.generated
-->
<id column="id" jdbcType="INTEGER" property="id" />
<result column="transaction_serial_number" jdbcType="CHAR" property="transactionSerialNumber" />
<result column="pile_id" jdbcType="CHAR" property="pileId" />
<result column="gun_number" jdbcType="BIT" property="gunNumber" />
<result column="bms_battery_highest_voltage" jdbcType="DECIMAL" property="bmsBatteryHighestVoltage" />
<result column="bms_battery_highest_current" jdbcType="DECIMAL" property="bmsBatteryHighestCurrent" />
<result column="bms_battery_total_energy" jdbcType="DECIMAL" property="bmsBatteryTotalEnergy" />
<result column="bms_battery_highest_total_voltage" jdbcType="DECIMAL" property="bmsBatteryHighestTotalVoltage" />
<result column="bms_battery_highest_temperature" jdbcType="SMALLINT" property="bmsBatteryHighestTemperature" />
<result column="bms_battery_status" jdbcType="DECIMAL" property="bmsBatteryStatus" />
<result column="bms_battery_current_voltage" jdbcType="DECIMAL" property="bmsBatteryCurrentVoltage" />
<result column="pile_highest_output_voltage" jdbcType="DECIMAL" property="pileHighestOutputVoltage" />
<result column="pile_highest_current" jdbcType="DECIMAL" property="pileHighestCurrent" />
<result column="bms_battery_property_identification" jdbcType="DECIMAL" property="bmsBatteryPropertyIdentification" />
<result column="pile_lowest_current" jdbcType="DECIMAL" property="pileLowestCurrent" />
<result column="created_by" jdbcType="VARCHAR" property="createdBy" />
<result column="created_date" jdbcType="TIMESTAMP" property="createdDate" />
<result column="updated_by" jdbcType="VARCHAR" property="updatedBy" />
<result column="updated_date" jdbcType="TIMESTAMP" property="updatedDate" />
<result column="deleted_flag" jdbcType="CHAR" property="deletedFlag" />
</resultMap>
<sql id="Base_Column_List">
<!--
WARNING - @mbg.generated
-->
id, transaction_serial_number, pile_id, gun_number, bms_battery_highest_voltage,
bms_battery_highest_current, bms_battery_total_energy, bms_battery_highest_total_voltage,
bms_battery_highest_temperature, bms_battery_status, bms_battery_current_voltage,
pile_highest_output_voltage, pile_highest_current, bms_battery_property_identification,
pile_lowest_current, created_by, created_date, updated_by, updated_date, deleted_flag
</sql>
</mapper>
\ No newline at end of file \ No newline at end of file
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!