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 b0900fcb
authored
Nov 21, 2023
by
叶立庆
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
[+] 工具方法优化
1 parent
26d42a9c
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
1 deletions
platform-charging/src/main/java/cn/com/glsx/charging/modules/gbt/ocpp16/Ocpp16Helper.java
platform-charging/src/main/java/cn/com/glsx/charging/modules/gbt/ocpp16/Ocpp16Helper.java
View file @
b0900fc
...
@@ -470,7 +470,6 @@ public class Ocpp16Helper {
...
@@ -470,7 +470,6 @@ public class Ocpp16Helper {
*/
*/
public
static
BigDecimal
bytesBinToBigDecimal
(
byte
[]
bytesBin
,
int
scale
){
public
static
BigDecimal
bytesBinToBigDecimal
(
byte
[]
bytesBin
,
int
scale
){
byte
[]
bytes
=
Arrays
.
copyOf
(
bytesBin
,
bytesBin
.
length
);
byte
[]
bytes
=
Arrays
.
copyOf
(
bytesBin
,
bytesBin
.
length
);
ByteUtils
.
reverse
(
bytes
);
return
hexStrToBigDecimal
(
ByteUtils
.
toHex
(
bytes
),
scale
);
return
hexStrToBigDecimal
(
ByteUtils
.
toHex
(
bytes
),
scale
);
}
}
...
...
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