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
8a0e92d6
Commit
8a0e92d6
authored
Mar 12, 2025
by
刘林
Browse files
Options
Browse Files
Download
Plain Diff
Merge remote-tracking branch 'origin/develop_tzs_register_test' into develop_tzs_register_test
parents
691ca279
a9043176
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
11 additions
and
12 deletions
+11
-12
CommonServiceImpl.java
...os/boot/module/jg/biz/service/impl/CommonServiceImpl.java
+1
-1
JgReformNoticeServiceImpl.java
...module/jg/biz/service/impl/JgReformNoticeServiceImpl.java
+7
-8
JgUseRegistrationServiceImpl.java
...ule/jg/biz/service/impl/JgUseRegistrationServiceImpl.java
+2
-2
JgVehicleInformationServiceImpl.java
.../jg/biz/service/impl/JgVehicleInformationServiceImpl.java
+1
-1
No files found.
amos-boot-system-tzs/amos-boot-module-jg/amos-boot-module-jg-biz/src/main/java/com/yeejoin/amos/boot/module/jg/biz/service/impl/CommonServiceImpl.java
View file @
8a0e92d6
...
...
@@ -2362,7 +2362,7 @@ public class CommonServiceImpl implements ICommonService {
formData
.
put
(
"equDefineName"
,
equips
.
get
(
0
).
get
(
"equDefineName"
));
// 气瓶压力及容积求和 BUG 27524 【现场需求】监管业务-登记管理-使用登记,气瓶特种设备使用登记表气瓶公称压力取最大值
// equips.stream().mapToDouble(e -> Optional.ofNullable(e.get("nominalWorkingPressure")).map(v -> Double.valueOf(v.toString())).orElse(0.0)).sum()
formData
.
put
(
"workPressure"
,
equips
.
stream
().
mapToDouble
(
e
->
Optional
.
ofNullable
(
e
.
get
(
"nominalWorkingPressure"
)).
map
(
v
->
Double
.
valueOf
(
v
.
toString
())).
orElse
(
0.0
)).
max
());
formData
.
put
(
"workPressure"
,
equips
.
stream
().
mapToDouble
(
e
->
Optional
.
ofNullable
(
e
.
get
(
"nominalWorkingPressure"
)).
map
(
v
->
Double
.
valueOf
(
v
.
toString
())).
orElse
(
0.0
)).
max
()
.
getAsDouble
()
);
formData
.
put
(
"volume"
,
equips
.
stream
().
mapToDouble
(
e
->
Optional
.
ofNullable
(
e
.
get
(
"singleBottleVolume"
)).
map
(
v
->
Double
.
valueOf
(
v
.
toString
())).
orElse
(
0.0
)).
sum
());
Set
<
String
>
chargingMedium
=
equips
.
stream
().
map
(
e
->
String
.
valueOf
(
e
.
get
(
"chargingMedium"
))).
collect
(
Collectors
.
toSet
());
if
(
chargingMedium
.
size
()>
1
){
...
...
amos-boot-system-tzs/amos-boot-module-jg/amos-boot-module-jg-biz/src/main/java/com/yeejoin/amos/boot/module/jg/biz/service/impl/JgReformNoticeServiceImpl.java
View file @
8a0e92d6
...
...
@@ -1132,11 +1132,8 @@ public class JgReformNoticeServiceImpl extends BaseService<JgReformNoticeDto, Jg
// 施工信息
IdxBizJgConstructionInfo
constructionInfo
=
JSON
.
parseObject
(
toJSONString
(
pipData
),
IdxBizJgConstructionInfo
.
class
);
CompanyBo
company
=
this
.
getSelectedOrgInfo
().
getCompany
();
constructionInfo
.
setRecord
(
record
);
constructionInfo
.
setRecDate
(
date
);
constructionInfo
.
setUscUnitCreditCode
(
company
.
getCompanyCode
());
constructionInfo
.
setUscUnitName
(
company
.
getCompanyName
());
constructionInfo
.
setSequenceNbr
(
null
);
constructionInfoList
.
add
(
constructionInfo
);
...
...
@@ -1172,11 +1169,13 @@ public class JgReformNoticeServiceImpl extends BaseService<JgReformNoticeDto, Jg
// 检验检测
IdxBizJgInspectionDetectionInfo
inspectionDetectionInfo
=
JSON
.
parseObject
(
toJSONString
(
pipData
),
IdxBizJgInspectionDetectionInfo
.
class
);
inspectionDetectionInfo
.
setRecord
(
record
);
inspectionDetectionInfo
.
setRecDate
(
date
);
Optional
.
ofNullable
(
inspectionDetectionInfo
.
getNextInspectDate
()).
ifPresent
(
x
->
inspectionDetectionInfo
.
setNextInspectDate
(
DateUtil
.
parse
(
DateUtil
.
format
(
inspectionDetectionInfo
.
getNextInspectDate
(),
DatePattern
.
NORM_DATE_PATTERN
))));
inspectionDetectionInfo
.
setSequenceNbr
(
null
);
idxBizJgInspectionDetectionInfoService
.
saveOrUpdateData
(
inspectionDetectionInfo
);
if
(!
BeanUtil
.
isEmpty
(
inspectionDetectionInfo
))
{
inspectionDetectionInfo
.
setRecord
(
record
);
inspectionDetectionInfo
.
setRecDate
(
date
);
Optional
.
ofNullable
(
inspectionDetectionInfo
.
getNextInspectDate
()).
ifPresent
(
x
->
inspectionDetectionInfo
.
setNextInspectDate
(
DateUtil
.
parse
(
DateUtil
.
format
(
inspectionDetectionInfo
.
getNextInspectDate
(),
DatePattern
.
NORM_DATE_PATTERN
))));
inspectionDetectionInfo
.
setSequenceNbr
(
null
);
idxBizJgInspectionDetectionInfoService
.
saveOrUpdateData
(
inspectionDetectionInfo
);
}
// 管道技术参数
IdxBizJgTechParamsPipeline
pipelineInfo
=
JSON
.
parseObject
(
toJSONString
(
pipData
),
IdxBizJgTechParamsPipeline
.
class
);
...
...
amos-boot-system-tzs/amos-boot-module-jg/amos-boot-module-jg-biz/src/main/java/com/yeejoin/amos/boot/module/jg/biz/service/impl/JgUseRegistrationServiceImpl.java
View file @
8a0e92d6
...
...
@@ -1193,8 +1193,8 @@ public class JgUseRegistrationServiceImpl extends BaseService<JgUseRegistrationD
// 更新工程装置信息
if
(
Objects
.
nonNull
(
jgProjectContraption
))
{
jgProjectContraption
.
setUseRegistrationCode
(
jgUseRegistration
.
getUseRegistrationCode
());
jgProjectContraption
.
setUscUnitCreditCode
(
null
);
jgProjectContraption
.
setUscUnitName
(
null
);
jgProjectContraption
.
setUscUnitCreditCode
(
""
);
jgProjectContraption
.
setUscUnitName
(
""
);
jgProjectContraptionService
.
updateById
(
jgProjectContraption
);
}
// 取第一条设备的注册消息--用来获取这一批设备的设备种类/类别/品种
...
...
amos-boot-system-tzs/amos-boot-module-jg/amos-boot-module-jg-biz/src/main/java/com/yeejoin/amos/boot/module/jg/biz/service/impl/JgVehicleInformationServiceImpl.java
View file @
8a0e92d6
...
...
@@ -1273,7 +1273,7 @@ public class JgVehicleInformationServiceImpl extends BaseService<JgVehicleInform
exportParamsMap
.
put
(
"registrationType"
,
"新设备首次启用"
);
exportParamsMap
.
put
(
"equDefineName"
,
CylinderTypeEnum
.
of
(
equDefine
));
exportParamsMap
.
put
(
"equipDefine"
,
"车用气瓶"
);
exportParamsMap
.
put
(
"workPressure"
,
equipBasicInfoList
.
stream
().
mapToDouble
(
EquipBasicInfoDto:
:
getWorkPressure
).
max
());
exportParamsMap
.
put
(
"workPressure"
,
equipBasicInfoList
.
stream
().
mapToDouble
(
EquipBasicInfoDto:
:
getWorkPressure
).
max
()
.
getAsDouble
()
);
exportParamsMap
.
put
(
"gasNum"
,
vehicleInformation
.
getGasNum
());
exportParamsMap
.
put
(
"chargingMedium"
,
vehicleInformation
.
getFillingMedium
());
exportParamsMap
.
put
(
"volume"
,
vehicleInformation
.
getVolume
());
...
...
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