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 9ea9c216
authored
Nov 20, 2023
by
林永健
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
修复bug
1 parent
db5f49e0
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 additions
and
1 deletions
platform-evbusiness/src/main/java/cn/com/glsx/evbusiness/modules/service/ChargingGunService.java
platform-evbusiness/src/main/java/cn/com/glsx/evbusiness/modules/service/ChargingGunService.java
View file @
9ea9c21
...
@@ -142,7 +142,7 @@ public class ChargingGunService {
...
@@ -142,7 +142,7 @@ public class ChargingGunService {
entity
.
setUpdatedTime
(
new
Date
());
entity
.
setUpdatedTime
(
new
Date
());
}
}
// 对比旧状态,发送变化才更新
// 对比旧状态,发送变化才更新
if
(!
entity
.
getStatus
().
equals
(
data
.
getStatus
().
byteValue
()))
{
if
(
Objects
.
isNull
(
entity
.
getStatus
())
||
!
entity
.
getStatus
().
equals
(
data
.
getStatus
().
byteValue
()))
{
entity
.
setStatus
(
data
.
getStatus
().
byteValue
());
entity
.
setStatus
(
data
.
getStatus
().
byteValue
());
saveOrUpdate
(
entity
);
saveOrUpdate
(
entity
);
}
}
...
...
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