Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
D
device-new-platform
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
赵啸非
device-new-platform
Commits
81563edb
Commit
81563edb
authored
Mar 22, 2024
by
赵啸非
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改校验
parent
8b37b6eb
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
device-manager/src/main/java/com/mortals/xhx/module/device/service/impl/DeviceStatServiceImpl.java
...xhx/module/device/service/impl/DeviceStatServiceImpl.java
+2
-2
No files found.
device-manager/src/main/java/com/mortals/xhx/module/device/service/impl/DeviceStatServiceImpl.java
View file @
81563edb
...
@@ -256,13 +256,13 @@ public class DeviceStatServiceImpl extends AbstractCRUDServiceImpl<DeviceStatDao
...
@@ -256,13 +256,13 @@ public class DeviceStatServiceImpl extends AbstractCRUDServiceImpl<DeviceStatDao
.
filter
(
f
->
f
.
getEnabled
()
==
YesNoEnum
.
NO
.
getValue
())
.
filter
(
f
->
f
.
getEnabled
()
==
YesNoEnum
.
NO
.
getValue
())
.
count
();
.
count
();
deviceStatEntity
.
setDeviceStopCount
(
deviceStopCount
.
intValue
());
deviceStatEntity
.
setDeviceStopCount
(
deviceStopCount
.
intValue
());
if
(
device
Stop
Count
>
0
)
{
if
(
device
Active
Count
>
0
)
{
deviceStatEntity
.
setDeviceStopRatio
(
new
BigDecimal
(
deviceStopCount
).
divide
(
new
BigDecimal
(
deviceActiveCount
),
4
,
ROUND_HALF_DOWN
));
deviceStatEntity
.
setDeviceStopRatio
(
new
BigDecimal
(
deviceStopCount
).
divide
(
new
BigDecimal
(
deviceActiveCount
),
4
,
ROUND_HALF_DOWN
));
}
}
deviceStatEntity
.
setDeviceUnActiveCount
(
deviceUnActiveCount
.
intValue
());
deviceStatEntity
.
setDeviceUnActiveCount
(
deviceUnActiveCount
.
intValue
());
if
(
device
Un
ActiveCount
>
0
)
{
if
(
deviceActiveCount
>
0
)
{
deviceStatEntity
.
setDeviceUnActiveRatio
(
new
BigDecimal
(
deviceUnActiveCount
).
divide
(
new
BigDecimal
(
deviceActiveCount
),
4
,
ROUND_HALF_DOWN
));
deviceStatEntity
.
setDeviceUnActiveRatio
(
new
BigDecimal
(
deviceUnActiveCount
).
divide
(
new
BigDecimal
(
deviceActiveCount
),
4
,
ROUND_HALF_DOWN
));
}
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
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 comment