Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
platform
/
platform-evbusiness-server
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit 9014b7ff
authored
Nov 16, 2023
by
chenxi
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
业务端实现实时数据上报功能
1 parent
cd7895e9
Hide whitespace changes
Inline
Side-by-side
Showing
12 changed files
with
605 additions
and
1 deletions
platform-evbusiness-api/src/main/java/cn/com/glsx/evbusiness/modules/entity/ChargingMalfunctionReason.java
platform-evbusiness-api/src/main/java/cn/com/glsx/evbusiness/modules/entity/ChargingRealTimeData.java
platform-evbusiness-api/src/main/java/cn/com/glsx/evbusiness/modules/mapper/ChargingMalfunctionReasonMapper.java
platform-evbusiness-api/src/main/java/cn/com/glsx/evbusiness/modules/mapper/ChargingRealTimeDataMapper.java
platform-evbusiness-api/src/main/java/cn/com/glsx/evbusiness/modules/model/ocpp16/ChargingHandshakeData.java
platform-evbusiness-api/src/main/java/cn/com/glsx/evbusiness/modules/model/ocpp16/RealTimeUploadData.java
platform-evbusiness/src/main/java/cn/com/glsx/evbusiness/common/constant/Constants.java
platform-evbusiness/src/main/java/cn/com/glsx/evbusiness/modules/api/DataInteractionController.java
platform-evbusiness/src/main/java/cn/com/glsx/evbusiness/modules/service/ChargingMalfunctionReasonService.java
platform-evbusiness/src/main/java/cn/com/glsx/evbusiness/modules/service/RealTimeDataService.java
platform-evbusiness/src/main/resources/mapper/ChargingMalfunctionReasonMapper.xml
platform-evbusiness/src/main/resources/mapper/ChargingRealTimeDataMapper.xml
platform-evbusiness-api/src/main/java/cn/com/glsx/evbusiness/modules/entity/ChargingMalfunctionReason.java
0 → 100644
View file @
9014b7f
package
cn
.
com
.
glsx
.
evbusiness
.
modules
.
entity
;
import
java.util.Date
;
import
javax.persistence.*
;
@Table
(
name
=
"charging_malfunction_reason"
)
public
class
ChargingMalfunctionReason
{
/**
* 主键
*/
@Id
@GeneratedValue
(
strategy
=
GenerationType
.
IDENTITY
)
private
Integer
id
;
/**
* 上报数据id
*/
@Column
(
name
=
"data_id"
)
private
String
dataId
;
/**
* 故障类型
*/
@Column
(
name
=
"malfunction_type"
)
private
Byte
malfunctionType
;
/**
* 故障类型 1-实时监测数据硬件故障 2-BMS中止充电原因 3-BMS中止充电故障原因 4-BMS中止充电错误原因 5-充电机中止充电原因 6-充电机中止充电故障原因 7-充电机中止充电错误原因
*/
@Column
(
name
=
"malfunction_reason"
)
private
Byte
malfunctionReason
;
/**
* 创建人
*/
@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
;
}
/**
* 获取上报数据id
*
* @return data_id - 上报数据id
*/
public
String
getDataId
()
{
return
dataId
;
}
/**
* 设置上报数据id
*
* @param dataId 上报数据id
*/
public
void
setDataId
(
String
dataId
)
{
this
.
dataId
=
dataId
==
null
?
null
:
dataId
.
trim
();
}
/**
* 获取故障类型
*
* @return malfunction_type - 故障类型
*/
public
Byte
getMalfunctionType
()
{
return
malfunctionType
;
}
/**
* 设置故障类型
*
* @param malfunctionType 故障类型
*/
public
void
setMalfunctionType
(
Byte
malfunctionType
)
{
this
.
malfunctionType
=
malfunctionType
;
}
/**
* 获取故障类型 1-实时监测数据硬件故障 2-BMS中止充电原因 3-BMS中止充电故障原因 4-BMS中止充电错误原因 5-充电机中止充电原因 6-充电机中止充电故障原因 7-充电机中止充电错误原因
*
* @return malfunction_reason - 故障类型 1-实时监测数据硬件故障 2-BMS中止充电原因 3-BMS中止充电故障原因 4-BMS中止充电错误原因 5-充电机中止充电原因 6-充电机中止充电故障原因 7-充电机中止充电错误原因
*/
public
Byte
getMalfunctionReason
()
{
return
malfunctionReason
;
}
/**
* 设置故障类型 1-实时监测数据硬件故障 2-BMS中止充电原因 3-BMS中止充电故障原因 4-BMS中止充电错误原因 5-充电机中止充电原因 6-充电机中止充电故障原因 7-充电机中止充电错误原因
*
* @param malfunctionReason 故障类型 1-实时监测数据硬件故障 2-BMS中止充电原因 3-BMS中止充电故障原因 4-BMS中止充电错误原因 5-充电机中止充电原因 6-充电机中止充电故障原因 7-充电机中止充电错误原因
*/
public
void
setMalfunctionReason
(
Byte
malfunctionReason
)
{
this
.
malfunctionReason
=
malfunctionReason
;
}
/**
* 获取创建人
*
* @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
platform-evbusiness-api/src/main/java/cn/com/glsx/evbusiness/modules/entity/ChargingRealTimeData.java
0 → 100644
View file @
9014b7f
package
cn
.
com
.
glsx
.
evbusiness
.
modules
.
entity
;
import
lombok.Data
;
import
java.math.BigDecimal
;
import
java.util.Date
;
import
javax.persistence.*
;
@Table
(
name
=
"charging_real_time_data"
)
@Data
public
class
ChargingRealTimeData
{
/**
* 主键
*/
@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
Byte
gunNumber
;
/**
* 状态
*/
private
Byte
status
;
/**
* 枪是否归位
*/
@Column
(
name
=
"if_return"
)
private
Byte
ifReturn
;
/**
* 是否插枪
*/
@Column
(
name
=
"if_charging"
)
private
Byte
ifCharging
;
/**
* 输出电压
*/
@Column
(
name
=
"output_voltage"
)
private
BigDecimal
outputVoltage
;
/**
* 输出电流
*/
@Column
(
name
=
"output_current"
)
private
BigDecimal
outputCurrent
;
/**
* 枪线温度
*/
@Column
(
name
=
"gun_wire_temperature"
)
private
Short
gunWireTemperature
;
/**
* 枪线编码
*/
@Column
(
name
=
"gun_wire_number"
)
private
String
gunWireNumber
;
/**
* 电池组最高温度
*/
@Column
(
name
=
"battery_highest_temperature"
)
private
Byte
batteryHighestTemperature
;
/**
* 累计充电时间
*/
@Column
(
name
=
"accumulated_charging_time"
)
private
Short
accumulatedChargingTime
;
/**
* 剩余时间
*/
@Column
(
name
=
"time_left"
)
private
Short
timeLeft
;
/**
* 充电度数
*/
@Column
(
name
=
"charging_degree"
)
private
BigDecimal
chargingDegree
;
/**
* 计损度数
*/
@Column
(
name
=
"loss_charging_degree"
)
private
BigDecimal
lossChargingDegree
;
/**
* 已充金额
*/
@Column
(
name
=
"charging_money"
)
private
BigDecimal
chargingMoney
;
/**
* 创建人
*/
@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
;
}
\ No newline at end of file
platform-evbusiness-api/src/main/java/cn/com/glsx/evbusiness/modules/mapper/ChargingMalfunctionReasonMapper.java
0 → 100644
View file @
9014b7f
package
cn
.
com
.
glsx
.
evbusiness
.
modules
.
mapper
;
import
cn.com.glsx.evbusiness.modules.entity.ChargingMalfunctionReason
;
import
com.glsx.plat.mybatis.mapper.CommonBaseMapper
;
import
org.apache.ibatis.annotations.Mapper
;
@Mapper
public
interface
ChargingMalfunctionReasonMapper
extends
CommonBaseMapper
<
ChargingMalfunctionReason
>
{
}
\ No newline at end of file
platform-evbusiness-api/src/main/java/cn/com/glsx/evbusiness/modules/mapper/ChargingRealTimeDataMapper.java
0 → 100644
View file @
9014b7f
package
cn
.
com
.
glsx
.
evbusiness
.
modules
.
mapper
;
import
cn.com.glsx.evbusiness.modules.entity.ChargingRealTimeData
;
import
com.glsx.plat.mybatis.mapper.CommonBaseMapper
;
public
interface
ChargingRealTimeDataMapper
extends
CommonBaseMapper
<
ChargingRealTimeData
>
{
}
\ No newline at end of file
platform-evbusiness-api/src/main/java/cn/com/glsx/evbusiness/modules/model/ocpp16/ChargingHandshakeData.java
View file @
9014b7f
package
cn
.
com
.
glsx
.
evbusiness
.
modules
.
model
.
ocpp16
;
import
lombok.Data
;
import
java.io.Serializable
;
import
java.math.BigDecimal
;
...
...
@@ -9,6 +11,8 @@ import java.math.BigDecimal;
* @Date: 2023/11/15 11:36
* @Version: 1.0
*/
@Data
public
class
ChargingHandshakeData
implements
Serializable
{
/**
...
...
platform-evbusiness-api/src/main/java/cn/com/glsx/evbusiness/modules/model/ocpp16/RealTimeUploadData.java
View file @
9014b7f
...
...
@@ -147,8 +147,10 @@ public class RealTimeUploadData implements Serializable {
* Bit11:直流熔断器故障;
* Bit12:高压接触器故障;
* Bit13:门打开;
* @see cn.com.glsx.evbusiness.modules.enums.HardwareFaultEnums
*/
private
short
hardwareMalfunction
;
private
byte
[]
hardwareMalfunction
=
new
byte
[
2
];
/**
* 消息接收时间
...
...
platform-evbusiness/src/main/java/cn/com/glsx/evbusiness/common/constant/Constants.java
View file @
9014b7f
...
...
@@ -13,4 +13,6 @@ public final class Constants extends BasicConstants {
public
final
static
String
SERVER_NAME
=
"glsx_rest_admin"
;
public
final
static
String
SYSTEM
=
"system"
;
}
platform-evbusiness/src/main/java/cn/com/glsx/evbusiness/modules/api/DataInteractionController.java
View file @
9014b7f
...
...
@@ -11,12 +11,15 @@ import cn.com.glsx.evbusiness.modules.model.ocpp16.MachineAbortingChargingData;
import
cn.com.glsx.evbusiness.modules.model.ocpp16.MachineParamConfigData
;
import
cn.com.glsx.evbusiness.modules.model.ocpp16.RealTimeUploadData
;
import
cn.com.glsx.evbusiness.modules.model.ocpp16.TransactionRecordsData
;
import
cn.com.glsx.evbusiness.modules.service.DataInteractionService
;
import
cn.com.glsx.evbusiness.modules.service.RealTimeDataService
;
import
com.alibaba.fastjson.JSON
;
import
com.glsx.plat.core.annotation.ResponseResultBody
;
import
com.glsx.plat.core.web.Result
;
import
io.swagger.v3.oas.annotations.Operation
;
import
io.swagger.v3.oas.annotations.tags.Tag
;
import
lombok.extern.slf4j.Slf4j
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.web.bind.annotation.*
;
/**
...
...
@@ -32,6 +35,11 @@ import org.springframework.web.bind.annotation.*;
@ResponseResultBody
public
class
DataInteractionController
implements
DataInteractionFeignClient
{
@Autowired
private
DataInteractionService
dataInteractionService
;
@Autowired
private
RealTimeDataService
realTimeDataService
;
/**
* 充电桩上传实时检测数据
* @param uploadData
...
...
@@ -42,6 +50,7 @@ public class DataInteractionController implements DataInteractionFeignClient {
@PostMapping
(
"/upload/real/time/data"
)
public
Result
<
Boolean
>
uploadRealTimeData
(
@RequestBody
RealTimeUploadData
uploadData
)
{
log
.
info
(
"充电桩上传实时检测数据:{}"
,
JSON
.
toJSONString
(
uploadData
));
realTimeDataService
.
insert
(
uploadData
);
return
Result
.
success
(
true
);
}
...
...
platform-evbusiness/src/main/java/cn/com/glsx/evbusiness/modules/service/ChargingMalfunctionReasonService.java
0 → 100644
View file @
9014b7f
package
cn
.
com
.
glsx
.
evbusiness
.
modules
.
service
;
import
cn.com.glsx.evbusiness.common.constant.Constants
;
import
cn.com.glsx.evbusiness.modules.entity.ChargingMalfunctionReason
;
import
cn.com.glsx.evbusiness.modules.mapper.ChargingMalfunctionReasonMapper
;
import
cn.com.glsx.framework.core.beans.BaseModel
;
import
lombok.extern.slf4j.Slf4j
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.stereotype.Service
;
import
java.util.Date
;
import
java.util.List
;
/**
* @Author: chenx
* @Description: 实时监测数据故障原因service
* @Date: 2023/11/16 15:14
* @Version: 1.0
*/
@Service
@Slf4j
public
class
ChargingMalfunctionReasonService
{
@Autowired
private
ChargingMalfunctionReasonMapper
chargingMalfunctionReasonMapper
;
/**
* 插入实时监测数据故障原因
* @param list
*/
public
void
insertList
(
List
<
ChargingMalfunctionReason
>
list
)
{
Date
date
=
new
Date
();
for
(
ChargingMalfunctionReason
chargingMalfunctionReason
:
list
)
{
chargingMalfunctionReason
.
setCreatedBy
(
Constants
.
SYSTEM
);
chargingMalfunctionReason
.
setUpdatedBy
(
Constants
.
SYSTEM
);
chargingMalfunctionReason
.
setCreatedDate
(
date
);
chargingMalfunctionReason
.
setUpdatedDate
(
date
);
chargingMalfunctionReason
.
setDeletedFlag
(
BaseModel
.
DeletedFlagEnum
.
N
.
name
());
}
chargingMalfunctionReasonMapper
.
insertList
(
list
);
}
}
platform-evbusiness/src/main/java/cn/com/glsx/evbusiness/modules/service/RealTimeDataService.java
0 → 100644
View file @
9014b7f
package
cn
.
com
.
glsx
.
evbusiness
.
modules
.
service
;
import
cn.com.glsx.evbusiness.common.constant.Constants
;
import
cn.com.glsx.evbusiness.modules.entity.ChargingRealTimeData
;
import
cn.com.glsx.evbusiness.modules.mapper.ChargingRealTimeDataMapper
;
import
cn.com.glsx.evbusiness.modules.model.ocpp16.RealTimeUploadData
;
import
cn.com.glsx.framework.core.beans.BaseModel
;
import
lombok.extern.slf4j.Slf4j
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.stereotype.Service
;
/**
* @Author: chenx
* @Description: 读取实时监测数据service
* @Date: 2023/11/15 11:36
* @Version: 1.0
*/
@Service
@Slf4j
public
class
RealTimeDataService
{
@Autowired
private
ChargingMalfunctionReasonService
chargingMalfunctionReasonService
;
@Autowired
private
ChargingRealTimeDataMapper
chargingRealTimeDataMapper
;
/**
* 插入实时监测数据
* @param realTimeUploadData
*/
public
void
insert
(
RealTimeUploadData
realTimeUploadData
)
{
ChargingRealTimeData
data
=
setChargingRealTimeData
(
realTimeUploadData
);
chargingRealTimeDataMapper
.
insert
(
data
);
byte
[]
hardwareMalfunction
=
realTimeUploadData
.
getHardwareMalfunction
();
String
hardwareMalfunctionString
=
binByteToString
(
hardwareMalfunction
);
chargingMalfunctionReasonService
.
insertList
(
null
);
}
public
ChargingRealTimeData
setChargingRealTimeData
(
RealTimeUploadData
realTimeUploadData
)
{
ChargingRealTimeData
chargingRealTimeData
=
new
ChargingRealTimeData
();
chargingRealTimeData
.
setTransactionSerialNumber
(
realTimeUploadData
.
getTransactionSerialNumber
());
chargingRealTimeData
.
setPileId
(
realTimeUploadData
.
getPileId
());
chargingRealTimeData
.
setGunNumber
(
realTimeUploadData
.
getGunNumber
());
chargingRealTimeData
.
setStatus
(
realTimeUploadData
.
getStatus
());
chargingRealTimeData
.
setIfReturn
(
realTimeUploadData
.
getIfReturn
());
chargingRealTimeData
.
setIfCharging
(
realTimeUploadData
.
getIfCharging
());
chargingRealTimeData
.
setOutputVoltage
(
realTimeUploadData
.
getOutputVoltage
());
chargingRealTimeData
.
setOutputCurrent
(
realTimeUploadData
.
getOutputCurrent
());
byte
gunWireTemperature
=
realTimeUploadData
.
getGunWireTemperature
();
chargingRealTimeData
.
setGunWireTemperature
((
short
)
(
gunWireTemperature
-
50
));
chargingRealTimeData
.
setGunWireNumber
(
realTimeUploadData
.
getGunWireNumber
());
byte
batteryHighestTemperature
=
realTimeUploadData
.
getBatteryHighestTemperature
();
chargingRealTimeData
.
setBatteryHighestTemperature
((
byte
)
(
batteryHighestTemperature
-
50
));
chargingRealTimeData
.
setTimeLeft
(
realTimeUploadData
.
getTimeLeft
());
chargingRealTimeData
.
setChargingDegree
(
realTimeUploadData
.
getChargingDegree
());
chargingRealTimeData
.
setLossChargingDegree
(
realTimeUploadData
.
getLossChargingDegree
());
chargingRealTimeData
.
setChargingMoney
(
realTimeUploadData
.
getChargingMoney
());
chargingRealTimeData
.
setCreatedBy
(
Constants
.
SYSTEM
);
chargingRealTimeData
.
setCreatedDate
(
realTimeUploadData
.
getTimestamp
());
chargingRealTimeData
.
setUpdatedBy
(
Constants
.
SYSTEM
);
chargingRealTimeData
.
setUpdatedDate
(
realTimeUploadData
.
getTimestamp
());
chargingRealTimeData
.
setDeletedFlag
(
BaseModel
.
DeletedFlagEnum
.
N
.
name
());
return
chargingRealTimeData
;
}
public
static
void
main
(
String
[]
args
)
{
byte
[]
byteArray
=
{(
byte
)
0b11011010
,
(
byte
)
0b00011111
};
System
.
out
.
println
(
binByteToString
(
byteArray
));
}
/**
* bin格式字节数组转字符串,由低位到高位 {(byte) 0b11011010, (byte) 0b00011111} => 1111100001011011
* @param byteArray
* @return
*/
public
static
String
binByteToString
(
byte
[]
byteArray
)
{
StringBuffer
sb
=
new
StringBuffer
();
// 从低位到高位读取每个bit位
for
(
int
i
=
byteArray
.
length
-
1
;
i
>=
0
;
i
--)
{
byte
currentByte
=
byteArray
[
i
];
for
(
int
j
=
0
;
j
<
8
;
j
++)
{
// 通过右移和位与操作获取每个bit的值
int
bitValue
=
(
currentByte
>>
j
)
&
1
;
sb
.
append
(
bitValue
);
// 输出每个bit的值
}
}
return
sb
.
toString
();
}
}
platform-evbusiness/src/main/resources/mapper/ChargingMalfunctionReasonMapper.xml
0 → 100644
View file @
9014b7f
<?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.ChargingMalfunctionReasonMapper"
>
<resultMap
id=
"BaseResultMap"
type=
"cn.com.glsx.evbusiness.modules.entity.ChargingMalfunctionReason"
>
<!--
WARNING - @mbg.generated
-->
<id
column=
"id"
jdbcType=
"INTEGER"
property=
"id"
/>
<result
column=
"data_id"
jdbcType=
"CHAR"
property=
"dataId"
/>
<result
column=
"malfunction_type"
jdbcType=
"TINYINT"
property=
"malfunctionType"
/>
<result
column=
"malfunction_reason"
jdbcType=
"TINYINT"
property=
"malfunctionReason"
/>
<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, data_id, malfunction_type, malfunction_reason, created_by, created_date, updated_by,
updated_date, deleted_flag
</sql>
</mapper>
\ No newline at end of file
platform-evbusiness/src/main/resources/mapper/ChargingRealTimeDataMapper.xml
0 → 100644
View file @
9014b7f
<?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.ChargingRealTimeDataMapper"
>
<resultMap
id=
"BaseResultMap"
type=
"cn.com.glsx.evbusiness.modules.entity.ChargingRealTimeData"
>
<!--
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=
"TINYINT"
property=
"gunNumber"
/>
<result
column=
"status"
jdbcType=
"TINYINT"
property=
"status"
/>
<result
column=
"if_return"
jdbcType=
"TINYINT"
property=
"ifReturn"
/>
<result
column=
"if_charging"
jdbcType=
"TINYINT"
property=
"ifCharging"
/>
<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=
"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"
/>
<result
column=
"time_left"
jdbcType=
"SMALLINT"
property=
"timeLeft"
/>
<result
column=
"charging_degree"
jdbcType=
"DECIMAL"
property=
"chargingDegree"
/>
<result
column=
"loss_charging_degree"
jdbcType=
"DECIMAL"
property=
"lossChargingDegree"
/>
<result
column=
"charging_money"
jdbcType=
"DECIMAL"
property=
"chargingMoney"
/>
<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, status, if_return, if_charging,
output_voltage, output_current, gun_wire_temperature, 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>
</mapper>
\ No newline at end of file
Write
Preview
Markdown
is supported
Attach a file
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to post a comment