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
ab3bd93f
Commit
ab3bd93f
authored
Oct 16, 2023
by
tianyiming
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
气瓶追溯修改
parent
6c039149
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
1 deletion
+5
-1
TzCylinderFillingDto.java
...oot/module/cylinder/flc/api/dto/TzCylinderFillingDto.java
+1
-1
TzCylinderServiceImpl.java
.../cylinder/flc/biz/service/impl/TzCylinderServiceImpl.java
+4
-0
No files found.
amos-boot-system-tzs/amos-boot-module-cylinder/amos-boot-module-cylinder-api/src/main/java/com/yeejoin/amos/boot/module/cylinder/flc/api/dto/TzCylinderFillingDto.java
View file @
ab3bd93f
...
...
@@ -70,7 +70,7 @@ public class TzCylinderFillingDto {
/**
* 室温
*/
private
Double
temperature
;
private
String
temperature
;
@ApiModelProperty
(
value
=
"异常情况"
)
/**
* 异常情况
...
...
amos-boot-system-tzs/amos-boot-module-cylinder/amos-boot-module-cylinder-biz/src/main/java/com/yeejoin/amos/boot/module/cylinder/flc/biz/service/impl/TzCylinderServiceImpl.java
View file @
ab3bd93f
...
...
@@ -25,9 +25,11 @@ import com.yeejoin.amos.boot.module.cylinder.flc.api.service.ITzCylinderService;
import
com.yeejoin.amos.feign.privilege.Privilege
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.stereotype.Service
;
import
org.springframework.util.ObjectUtils
;
import
org.typroject.tyboot.core.foundation.utils.ValidationUtil
;
import
org.typroject.tyboot.core.rdbms.service.BaseService
;
import
java.text.DecimalFormat
;
import
java.text.SimpleDateFormat
;
import
java.util.ArrayList
;
import
java.util.HashMap
;
...
...
@@ -123,6 +125,8 @@ public class TzCylinderServiceImpl extends BaseService<TzCylinderInfoDto, Cylind
}
for
(
TzCylinderFillingDto
tzCylinderFillingDto
:
tzCylinderFillingDtoList
)
{
Double
fillingQuantity
=
Double
.
valueOf
(
ObjectUtils
.
isEmpty
(
tzCylinderFillingDto
.
getFillingQuantity
())
?
"0"
:
tzCylinderFillingDto
.
getFillingQuantity
());
tzCylinderFillingDto
.
setFillingQuantity
(
new
DecimalFormat
(
"#.00"
).
format
(
fillingQuantity
));
if
(!
ValidationUtil
.
isEmpty
(
tzCylinderFillingDto
)
&&
!
ValidationUtil
.
isEmpty
(
tzCylinderFillingDto
.
getAbnormal
()))
{
tzCylinderFillingDto
.
setAbnormal
(
CyclinderStatus
.
getName
(
String
.
valueOf
(
tzCylinderFillingDto
.
getAbnormal
())));
}
...
...
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