mirror of
https://codeup.aliyun.com/67c68d4e484ca2f0a13ac3c1/ydc/jsowell-charger-web.git
synced 2026-05-08 03:50:13 +08:00
update 充电站通信信息
This commit is contained in:
@@ -93,8 +93,7 @@ public class PileMsgRecordServiceImpl implements IPileMsgRecordService {
|
|||||||
@Override
|
@Override
|
||||||
public String generateDescription(PileMsgRecord pileMsgRecord) {
|
public String generateDescription(PileMsgRecord pileMsgRecord) {
|
||||||
String result = null;
|
String result = null;
|
||||||
|
String frameType = pileMsgRecord.getFrameType();
|
||||||
String frameType = YKCUtils.frameType2Str(pileMsgRecord.getFrameType().getBytes());
|
|
||||||
String jsonMsg = pileMsgRecord.getJsonMsg();
|
String jsonMsg = pileMsgRecord.getJsonMsg();
|
||||||
switch (frameType) {
|
switch (frameType) {
|
||||||
case "0x01" :
|
case "0x01" :
|
||||||
@@ -112,11 +111,35 @@ public class PileMsgRecordServiceImpl implements IPileMsgRecordService {
|
|||||||
|
|
||||||
private String loginMsg(String jsonMsg) {
|
private String loginMsg(String jsonMsg) {
|
||||||
JSONObject jsonObject = JSONObject.parseObject(jsonMsg);
|
JSONObject jsonObject = JSONObject.parseObject(jsonMsg);
|
||||||
|
|
||||||
|
// iccid
|
||||||
String iccid = jsonObject.getString("iccid");
|
String iccid = jsonObject.getString("iccid");
|
||||||
|
|
||||||
|
// 设备程序版本
|
||||||
String programVersion = jsonObject.getString("programVersion");
|
String programVersion = jsonObject.getString("programVersion");
|
||||||
|
|
||||||
|
// 枪口数量
|
||||||
Integer connectorNum = jsonObject.getInteger("connectorNum");
|
Integer connectorNum = jsonObject.getInteger("connectorNum");
|
||||||
|
|
||||||
|
// 网络链接类型
|
||||||
String internetConnection = jsonObject.getString("internetConnection");
|
String internetConnection = jsonObject.getString("internetConnection");
|
||||||
|
if (StringUtils.equals(internetConnection, "00")) {
|
||||||
|
internetConnection = "SIM卡";
|
||||||
|
} else if (StringUtils.equals(internetConnection, "01")) {
|
||||||
|
internetConnection = "LAN";
|
||||||
|
} else if (StringUtils.equals(internetConnection, "02")) {
|
||||||
|
internetConnection = "WAN";
|
||||||
|
} else {
|
||||||
|
internetConnection = "其他";
|
||||||
|
}
|
||||||
|
|
||||||
|
// 桩类型
|
||||||
String pileType = jsonObject.getString("pileType");
|
String pileType = jsonObject.getString("pileType");
|
||||||
|
if (StringUtils.equals(pileType, "1")) {
|
||||||
|
pileType = "运营桩";
|
||||||
|
} else {
|
||||||
|
pileType = "个人桩";
|
||||||
|
}
|
||||||
return "SIM卡号:" + iccid + ", " +
|
return "SIM卡号:" + iccid + ", " +
|
||||||
"设备程序版本:" + programVersion + ", " +
|
"设备程序版本:" + programVersion + ", " +
|
||||||
"桩类型:" + pileType + ", " +
|
"桩类型:" + pileType + ", " +
|
||||||
|
|||||||
@@ -284,19 +284,19 @@
|
|||||||
prop="createTime"
|
prop="createTime"
|
||||||
label="时间"
|
label="时间"
|
||||||
align="center"
|
align="center"
|
||||||
width="200"
|
width="150"
|
||||||
/>
|
/>
|
||||||
<el-table-column
|
<el-table-column
|
||||||
prop="frameTypeStr"
|
prop="frameTypeStr"
|
||||||
label="帧类型名称"
|
label="帧类型名称"
|
||||||
align="center"
|
align="center"
|
||||||
width="200"
|
width="150"
|
||||||
/>
|
/>
|
||||||
<el-table-column
|
<el-table-column
|
||||||
prop="description"
|
prop="description"
|
||||||
label="描述"
|
label="描述"
|
||||||
align="center"
|
align="center"
|
||||||
width="200"
|
width="400"
|
||||||
/>
|
/>
|
||||||
<el-table-column
|
<el-table-column
|
||||||
prop="originalMsg"
|
prop="originalMsg"
|
||||||
|
|||||||
Reference in New Issue
Block a user