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 6b17010f
authored
Nov 14, 2023
by
zhouhaibao
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
[+]修改参数
1 parent
47508824
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
4 deletions
platform-charging/src/main/java/cn/com/glsx/charging/modules/controller/PileControController.java
platform-charging/src/main/java/cn/com/glsx/charging/modules/controller/PileControController.java
View file @
6b17010
...
@@ -96,14 +96,12 @@ public class PileControController extends BaseController {
...
@@ -96,14 +96,12 @@ public class PileControController extends BaseController {
@Operation
(
summary
=
"设置费率"
,
description
=
"设置费率"
)
@Operation
(
summary
=
"设置费率"
,
description
=
"设置费率"
)
@GetMapping
(
"/setModel"
)
@GetMapping
(
"/setModel"
)
public
R
<
Boolean
>
setModel
(
String
pileId
)
{
public
R
<
Boolean
>
setModel
(
String
pileId
,
String
modelcode
)
{
ModelSetReq
req
=
new
ModelSetReq
();
ModelSetReq
req
=
new
ModelSetReq
();
ModelSetReqData
data
=
new
ModelSetReqData
();
ModelSetReqData
data
=
new
ModelSetReqData
();
data
.
setPileId
(
Ocpp16Helper
.
strToBcd
(
pileId
,
data
.
getPileId
()));
data
.
setPileId
(
Ocpp16Helper
.
strToBcd
(
pileId
,
data
.
getPileId
()));
byte
[]
modelcodeByte
=
new
byte
[]{(
byte
)
0x00
,
0x01
};
data
.
setModelCode
(
Ocpp16Helper
.
strToBcd
(
modelcode
,
data
.
getModelCode
()));
BigDecimal
bigDecimal
=
Ocpp16Helper
.
bytesBinToBigDecimal
(
modelcodeByte
,
0
);
data
.
setModelCode
(
modelcodeByte
);
byte
[]
byteArray
=
new
byte
[]{(
byte
)
0x9C
,
0x40
,
0x01
,
0x00
};
byte
[]
byteArray
=
new
byte
[]{(
byte
)
0x9C
,
0x40
,
0x01
,
0x00
};
data
.
setValleyDreRate
(
byteArray
);
data
.
setValleyDreRate
(
byteArray
);
data
.
setValleyEleRate
(
byteArray
);
data
.
setValleyEleRate
(
byteArray
);
...
...
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