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
1086dccc
Commit
1086dccc
authored
Dec 08, 2023
by
KeYong
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改返回值四舍五入
parent
6832f04c
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
2 deletions
+4
-2
EquipmentSpecificSerivceImpl.java
...quipmanage/service/impl/EquipmentSpecificSerivceImpl.java
+3
-1
EquipmentSpecificMapper.xml
...uip/src/main/resources/mapper/EquipmentSpecificMapper.xml
+1
-1
No files found.
amos-boot-module/amos-boot-module-biz/amos-boot-module-equip-biz/src/main/java/com/yeejoin/equipmanage/service/impl/EquipmentSpecificSerivceImpl.java
View file @
1086dccc
...
@@ -53,6 +53,7 @@ import org.typroject.tyboot.core.restful.exception.instance.BadRequest;
...
@@ -53,6 +53,7 @@ import org.typroject.tyboot.core.restful.exception.instance.BadRequest;
import
org.typroject.tyboot.core.restful.utils.ResponseModel
;
import
org.typroject.tyboot.core.restful.utils.ResponseModel
;
import
java.io.IOException
;
import
java.io.IOException
;
import
java.math.BigDecimal
;
import
java.nio.charset.StandardCharsets
;
import
java.nio.charset.StandardCharsets
;
import
java.text.ParseException
;
import
java.text.ParseException
;
import
java.text.SimpleDateFormat
;
import
java.text.SimpleDateFormat
;
...
@@ -1943,7 +1944,8 @@ public class EquipmentSpecificSerivceImpl extends ServiceImpl<EquipmentSpecificM
...
@@ -1943,7 +1944,8 @@ public class EquipmentSpecificSerivceImpl extends ServiceImpl<EquipmentSpecificM
iotIndexInfoVo
.
setNumber
(
deviceName
);
iotIndexInfoVo
.
setNumber
(
deviceName
);
if
(
equipmentSpecificIndex
.
getIsTrend
()
==
1
)
{
if
(
equipmentSpecificIndex
.
getIsTrend
()
==
1
)
{
iotIndexInfoVo
.
setContent
(
equipmentSpecificIndex
.
getIndexName
()
+
entry
.
getValue
()
+
equipmentSpecificIndex
.
getIndexUnitName
());
BigDecimal
val
=
new
BigDecimal
(
String
.
valueOf
(
entry
.
getValue
()));
iotIndexInfoVo
.
setContent
(
equipmentSpecificIndex
.
getIndexName
()
+
(
val
.
setScale
(
2
,
BigDecimal
.
ROUND_HALF_UP
))
+
equipmentSpecificIndex
.
getIndexUnitName
());
}
else
{
}
else
{
if
(
pressurePumpStart
.
equals
(
equipmentSpecificIndex
.
getNameKey
()))
{
if
(
pressurePumpStart
.
equals
(
equipmentSpecificIndex
.
getNameKey
()))
{
iotIndexInfoVo
.
setContent
(
TrueOrFalseEnum
.
real
.
value
.
equals
(
entry
.
getValue
())
?
equipmentSpecificIndex
.
getEquipmentIndexName
()
:
PressurePumpRelateEnum
.
STOP
.
getDesc
());
iotIndexInfoVo
.
setContent
(
TrueOrFalseEnum
.
real
.
value
.
equals
(
entry
.
getValue
())
?
equipmentSpecificIndex
.
getEquipmentIndexName
()
:
PressurePumpRelateEnum
.
STOP
.
getDesc
());
...
...
amos-boot-system-equip/src/main/resources/mapper/EquipmentSpecificMapper.xml
View file @
1086dccc
...
@@ -1869,7 +1869,7 @@
...
@@ -1869,7 +1869,7 @@
WHEN 'false' THEN
WHEN 'false' THEN
'关'
'关'
ELSE
ELSE
si.`value`
IF(si.`value` IS NOT NULL AND si.`value` != '', ROUND(si.`value`, 2), '')
END
END
)
)
ELSE
ELSE
...
...
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