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
1528e0f8
Commit
1528e0f8
authored
Jan 14, 2023
by
KeYong
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
更新
parent
db12d7e1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
UnitTransformUtil.java
...m/yeejoin/equipmanage/common/utils/UnitTransformUtil.java
+2
-2
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 @
1528e0f8
...
@@ -24,9 +24,9 @@ public class UnitTransformUtil {
...
@@ -24,9 +24,9 @@ public class UnitTransformUtil {
BigDecimal
divide
=
new
BigDecimal
(
100
);
BigDecimal
divide
=
new
BigDecimal
(
100
);
if
(
StringUtil
.
isNotEmpty
(
currentValue
)
&&
!
"--"
.
equals
(
currentValue
)){
if
(
StringUtil
.
isNotEmpty
(
currentValue
)
&&
!
"--"
.
equals
(
currentValue
)){
BigDecimal
nowLevel
=
new
BigDecimal
(
currentValue
);
BigDecimal
nowLevel
=
new
BigDecimal
(
currentValue
);
map
.
put
(
"nowValue"
,
nowLevel
.
divide
(
divide
,
3
,
BigDecimal
.
ROUND_HALF_UP
));
map
.
put
(
"nowValue"
,
nowLevel
.
divide
(
divide
,
2
,
BigDecimal
.
ROUND_HALF_UP
));
BigDecimal
nowVal
=
new
BigDecimal
(
currentValue
).
divide
(
divide
,
3
,
BigDecimal
.
ROUND_HALF_UP
);
BigDecimal
nowVal
=
new
BigDecimal
(
currentValue
).
divide
(
divide
,
2
,
BigDecimal
.
ROUND_HALF_UP
);
// status 中 0 表示过低;1 表示正常;2 表示过高
// status 中 0 表示过低;1 表示正常;2 表示过高
if
(
StringUtil
.
isNotEmpty
(
minValue
)
&&
!
"--"
.
equals
(
minValue
)
&&
StringUtil
.
isNotEmpty
(
maxValue
)
if
(
StringUtil
.
isNotEmpty
(
minValue
)
&&
!
"--"
.
equals
(
minValue
)
&&
StringUtil
.
isNotEmpty
(
maxValue
)
&&
!
"--"
.
equals
(
maxValue
)
&&
!
"null"
.
equalsIgnoreCase
(
minValue
)&&
!
"--"
.
equals
(
maxValue
)
&&
!
"null"
.
equalsIgnoreCase
(
maxValue
))
{
&&
!
"--"
.
equals
(
maxValue
)
&&
!
"null"
.
equalsIgnoreCase
(
minValue
)&&
!
"--"
.
equals
(
maxValue
)
&&
!
"null"
.
equalsIgnoreCase
(
maxValue
))
{
...
...
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