Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
platform
/
platform-charging-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 910fe0b5
authored
Nov 14, 2023
by
chenxi
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
实现功能:修改读取实时监测数据接口,修复req未setData问题
1 parent
c2f37e6a
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
1 deletions
platform-charging/src/main/java/cn/com/glsx/charging/modules/controller/GetDataController.java
platform-charging/src/main/java/cn/com/glsx/charging/modules/controller/GetDataController.java
View file @
910fe0b
...
@@ -39,11 +39,12 @@ public class GetDataController extends BaseController {
...
@@ -39,11 +39,12 @@ public class GetDataController extends BaseController {
RealTimeDataReqData
data
=
new
RealTimeDataReqData
();
RealTimeDataReqData
data
=
new
RealTimeDataReqData
();
data
.
setPileId
(
Ocpp16Helper
.
strToBcd
(
pileId
,
data
.
getPileId
()));
data
.
setPileId
(
Ocpp16Helper
.
strToBcd
(
pileId
,
data
.
getPileId
()));
data
.
setGunNumber
((
byte
)
1
);
data
.
setGunNumber
((
byte
)
1
);
req
.
setData
(
data
);
TcpCallback
<
TcpRsp
>
tcpRspTcpCallback
=
ServerMain
.
getServer
().
sendSync
(
req
);
TcpCallback
<
TcpRsp
>
tcpRspTcpCallback
=
ServerMain
.
getServer
().
sendSync
(
req
);
TcpRsp
tcpRsp
=
tcpRspTcpCallback
.
get
();
TcpRsp
tcpRsp
=
tcpRspTcpCallback
.
get
();
return
R
.
ok
().
data
(
tcpRsp
);
return
R
.
ok
().
data
(
tcpRsp
);
}
catch
(
Exception
e
)
{
}
catch
(
Exception
e
)
{
log
.
error
(
"读取实时监测数据error:{}"
,
e
,
e
.
getMessage
()
);
log
.
error
(
"读取实时监测数据error:{}"
,
e
.
getMessage
(),
e
);
return
R
.
error
();
return
R
.
error
();
}
}
}
}
...
...
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