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
da26be78
Commit
da26be78
authored
May 14, 2025
by
suhuiguang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix(大编辑):自测bug修复
1.装置列表管道长度不应该显示为科学计数法
parent
36062b76
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
15 additions
and
8 deletions
+15
-8
ProjectContraptionChangeDataDto.java
...ot/module/jg/api/dto/ProjectContraptionChangeDataDto.java
+2
-2
CommonEquipDataProcessService.java
...biz/edit/process/equip/CommonEquipDataProcessService.java
+13
-6
No files found.
amos-boot-system-tzs/amos-boot-module-jg/amos-boot-module-jg-api/src/main/java/com/yeejoin/amos/boot/module/jg/api/dto/ProjectContraptionChangeDataDto.java
View file @
da26be78
...
...
@@ -24,10 +24,10 @@ public class ProjectContraptionChangeDataDto extends BaseChangeDataDto {
private
static
final
long
serialVersionUID
=
1L
;
@FieldDisplayDefine
(
value
=
"工程
装置
名称"
)
@FieldDisplayDefine
(
value
=
"工程
(装置)名称/项目
名称"
)
private
String
projectContraption
;
@FieldDisplayDefine
(
value
=
"工程
装置
编号"
)
@FieldDisplayDefine
(
value
=
"工程
(装置)编号/项目
编号"
)
private
String
projectContraptionNo
;
@FieldDisplayDefine
(
value
=
"设备品种代码"
)
...
...
amos-boot-system-tzs/amos-boot-module-jg/amos-boot-module-jg-biz/src/main/java/com/yeejoin/amos/boot/module/jg/biz/edit/process/equip/CommonEquipDataProcessService.java
View file @
da26be78
...
...
@@ -848,9 +848,10 @@ public class CommonEquipDataProcessService {
IdxBizJgProjectContraption
projectContraption
=
idxBizJgProjectContraptionServiceImpl
.
getById
(
projectContraptionId
);
Map
<
String
,
Object
>
re
=
BeanUtil
.
beanToMap
(
projectContraption
);
this
.
convertStringToJsonObject
(
re
,
IdxBizJgProjectContraptionServiceImpl
.
getJsonFieldsCamel
());
List
<
Map
<
String
,
Object
>>
equList
=
jgUseRegistrationService
.
getBaseMapper
().
queryForUnitPipelineEquipment
(
new
ArrayList
<>(
records
));
List
<
Map
<
String
,
Object
>>
equList
=
jgUseRegistrationService
.
getBaseMapper
().
queryForUnitPipelineEquipment
ForEdit
(
new
ArrayList
<>(
records
));
// 检验报告数据格式化 转json
equList
.
stream
().
filter
(
e
->
e
.
get
(
"inspectReport"
)
!=
null
).
forEach
(
item
->
item
.
put
(
"inspectReport"
,
JSON
.
parse
(
item
.
get
(
"inspectReport"
).
toString
())));
re
.
put
(
"projectContraptionId"
,
projectContraption
.
getSequenceNbr
());
re
.
put
(
"tableData"
,
equList
);
return
re
;
}
...
...
@@ -891,21 +892,27 @@ public class CommonEquipDataProcessService {
.
in
(
BaseEntity:
:
getSequenceNbr
,
projectContraptionIds
)
.
orderByDesc
(
IdxBizJgProjectContraption:
:
getRecDate
)
.
page
(
page
);
List
<
Map
<
String
,
Object
>>
records
=
new
ArrayList
<>();
if
(!
ValidationUtil
.
isEmpty
(
pageList
.
getRecords
()))
{
pageList
.
getRecords
().
forEach
(
record
->
{
BigDecimal
pipelineLength
=
BigDecimal
.
valueOf
(
record
.
getPipelineLength
());
BigDecimal
roundedValue
=
pipelineLength
.
setScale
(
3
,
RoundingMode
.
HALF_UP
);
BigDecimal
strippedValue
=
roundedValue
.
stripTrailingZeros
();
record
.
setPipelineLength
(
Double
.
valueOf
(
strippedValue
.
toPlainString
()));
Map
<
String
,
Object
>
item
=
new
HashMap
<>();
record
.
setDataSourceName
(
EquipSourceEnum
.
getDataSourceName
(
record
.
getDataSource
()));
record
.
setFullAddress
(
Stream
.
of
(
record
.
getProvinceName
(),
record
.
getCityName
(),
record
.
getCountyName
(),
record
.
getStreetName
(),
record
.
getAddress
())
.
map
(
value
->
value
==
null
?
""
:
value
)
.
collect
(
Collectors
.
joining
())
);
BeanUtil
.
copyProperties
(
record
,
item
);
BigDecimal
pipelineLength
=
BigDecimal
.
valueOf
(
record
.
getPipelineLength
());
BigDecimal
roundedValue
=
pipelineLength
.
setScale
(
2
,
RoundingMode
.
HALF_UP
);
item
.
put
(
"pipelineLength"
,
roundedValue
.
toPlainString
());
records
.
add
(
item
);
});
}
return
pageList
;
Page
<
Map
<
String
,
Object
>>
page1
=
new
Page
<>();
BeanUtil
.
copyProperties
(
pageList
,
page1
);
page1
.
setRecords
(
records
);
return
page1
;
}
public
void
updateEsDataOfEquip
(
String
record
,
IBaseChangeData
changeDataDto
)
{
...
...
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