Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
A
amos-boot-biz
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
项目统一框架
amos-boot-biz
Commits
59f330db
Commit
59f330db
authored
Apr 23, 2024
by
李秀明
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix: 监盘总览-cafs水箱液位达到最高的时候,应该展示最大余量
【web端】站端3711-监盘总览-cafs水箱液位最大时,余量应该是100%,但是展示的是“--” Closes
http://113.142.68.105:5080/zentao/bug-view-18196.html
parent
0e78acd4
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
5 deletions
+5
-5
UnitTransformUtil.java
...m/yeejoin/equipmanage/common/utils/UnitTransformUtil.java
+5
-5
No files found.
amos-boot-module/amos-boot-module-api/amos-boot-module-equip-api/src/main/java/com/yeejoin/equipmanage/common/utils/UnitTransformUtil.java
View file @
59f330db
...
@@ -33,12 +33,12 @@ public class UnitTransformUtil {
...
@@ -33,12 +33,12 @@ public class UnitTransformUtil {
if
(
nowVal
.
compareTo
(
new
BigDecimal
(
minValue
))
<
0
)
{
if
(
nowVal
.
compareTo
(
new
BigDecimal
(
minValue
))
<
0
)
{
map
.
put
(
"status"
,
"0"
);
map
.
put
(
"status"
,
"0"
);
map
.
put
(
"abs"
,
nowVal
.
divide
(
new
BigDecimal
(
maxValue
),
2
,
BigDecimal
.
ROUND_HALF_UP
).
movePointRight
(
2
));
map
.
put
(
"abs"
,
nowVal
.
divide
(
new
BigDecimal
(
maxValue
),
2
,
BigDecimal
.
ROUND_HALF_UP
).
movePointRight
(
2
));
}
else
if
(
nowVal
.
compareTo
(
new
BigDecimal
(
maxValue
))
==
1
)
{
}
else
if
(
nowVal
.
compareTo
(
new
BigDecimal
(
maxValue
))
>
0
)
{
// 当前值大于最大值
map
.
put
(
"status"
,
"2"
);
map
.
put
(
"status"
,
"2"
);
map
.
put
(
"abs"
,
100
);
map
.
put
(
"abs"
,
100
);
}
else
if
(
nowVal
.
compareTo
(
new
BigDecimal
(
maxValue
))
==
0
)
{
}
else
if
(
nowVal
.
compareTo
(
new
BigDecimal
(
maxValue
))
==
0
)
{
map
.
put
(
"status"
,
"1"
);
map
.
put
(
"status"
,
"1"
);
map
.
put
(
"abs"
,
"--"
);
map
.
put
(
"abs"
,
100
);
}
else
{
}
else
{
map
.
put
(
"status"
,
"1"
);
map
.
put
(
"status"
,
"1"
);
map
.
put
(
"abs"
,
nowVal
.
divide
(
new
BigDecimal
(
maxValue
),
2
,
BigDecimal
.
ROUND_HALF_UP
).
movePointRight
(
2
));
map
.
put
(
"abs"
,
nowVal
.
divide
(
new
BigDecimal
(
maxValue
),
2
,
BigDecimal
.
ROUND_HALF_UP
).
movePointRight
(
2
));
...
@@ -71,7 +71,7 @@ public class UnitTransformUtil {
...
@@ -71,7 +71,7 @@ public class UnitTransformUtil {
map
.
put
(
"abs"
,
100
);
map
.
put
(
"abs"
,
100
);
}
else
if
(
nowVal
.
compareTo
(
new
BigDecimal
(
maxValue
))
==
0
)
{
}
else
if
(
nowVal
.
compareTo
(
new
BigDecimal
(
maxValue
))
==
0
)
{
map
.
put
(
"status"
,
"1"
);
map
.
put
(
"status"
,
"1"
);
map
.
put
(
"abs"
,
"--"
);
map
.
put
(
"abs"
,
100
);
}
else
{
}
else
{
map
.
put
(
"status"
,
"1"
);
map
.
put
(
"status"
,
"1"
);
map
.
put
(
"abs"
,
nowVal
.
divide
(
new
BigDecimal
(
maxValue
),
2
,
BigDecimal
.
ROUND_HALF_UP
).
movePointRight
(
2
));
map
.
put
(
"abs"
,
nowVal
.
divide
(
new
BigDecimal
(
maxValue
),
2
,
BigDecimal
.
ROUND_HALF_UP
).
movePointRight
(
2
));
...
@@ -104,7 +104,7 @@ public class UnitTransformUtil {
...
@@ -104,7 +104,7 @@ public class UnitTransformUtil {
map
.
put
(
"abs"
,
100
);
map
.
put
(
"abs"
,
100
);
}
else
if
(
nowVal
.
compareTo
(
new
BigDecimal
(
maxValue
))
==
0
)
{
}
else
if
(
nowVal
.
compareTo
(
new
BigDecimal
(
maxValue
))
==
0
)
{
map
.
put
(
"status"
,
"1"
);
map
.
put
(
"status"
,
"1"
);
map
.
put
(
"abs"
,
"--"
);
map
.
put
(
"abs"
,
100
);
}
else
{
}
else
{
map
.
put
(
"status"
,
"1"
);
map
.
put
(
"status"
,
"1"
);
map
.
put
(
"abs"
,
nowVal
.
divide
(
new
BigDecimal
(
maxValue
),
2
,
BigDecimal
.
ROUND_HALF_UP
).
movePointRight
(
2
));
map
.
put
(
"abs"
,
nowVal
.
divide
(
new
BigDecimal
(
maxValue
),
2
,
BigDecimal
.
ROUND_HALF_UP
).
movePointRight
(
2
));
...
@@ -139,7 +139,7 @@ public class UnitTransformUtil {
...
@@ -139,7 +139,7 @@ public class UnitTransformUtil {
map
.
put
(
"abs"
,
100
);
map
.
put
(
"abs"
,
100
);
}
else
if
(
nowVal
.
compareTo
(
new
BigDecimal
(
maxValue
))
==
0
)
{
}
else
if
(
nowVal
.
compareTo
(
new
BigDecimal
(
maxValue
))
==
0
)
{
map
.
put
(
"status"
,
"1"
);
map
.
put
(
"status"
,
"1"
);
map
.
put
(
"abs"
,
"--"
);
map
.
put
(
"abs"
,
100
);
}
else
{
}
else
{
map
.
put
(
"status"
,
"1"
);
map
.
put
(
"status"
,
"1"
);
map
.
put
(
"abs"
,
nowVal
.
divide
(
new
BigDecimal
(
maxValue
),
2
,
BigDecimal
.
ROUND_HALF_UP
).
movePointRight
(
2
));
map
.
put
(
"abs"
,
nowVal
.
divide
(
new
BigDecimal
(
maxValue
),
2
,
BigDecimal
.
ROUND_HALF_UP
).
movePointRight
(
2
));
...
...
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