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
217f8e8b
Commit
217f8e8b
authored
Jan 15, 2025
by
hezhuozhi
Browse files
Options
Browse Files
Download
Plain Diff
Merge remote-tracking branch 'origin/develop_tzs_register' into develop_tzs_register
parents
a7e9e738
176615cf
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
4 deletions
+8
-4
IdxBizJgProjectContraptionServiceImpl.java
...z/service/impl/IdxBizJgProjectContraptionServiceImpl.java
+3
-2
JgUseRegistrationServiceImpl.java
...ule/jg/biz/service/impl/JgUseRegistrationServiceImpl.java
+5
-2
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/IdxBizJgProjectContraptionServiceImpl.java
View file @
217f8e8b
...
@@ -469,8 +469,8 @@ public class IdxBizJgProjectContraptionServiceImpl extends BaseService<IdxBizJgP
...
@@ -469,8 +469,8 @@ public class IdxBizJgProjectContraptionServiceImpl extends BaseService<IdxBizJgP
projectContraption
.
setEquCategoryName
(
equCategoryName
);
projectContraption
.
setEquCategoryName
(
equCategoryName
);
projectContraption
.
setEquDefineName
(
equDefineName
);
projectContraption
.
setEquDefineName
(
equDefineName
);
projectContraption
.
setPipelineLength
(
0.0
);
projectContraption
.
setPipelineLength
(
0.0
);
projectContraption
.
setUs
c
UnitName
(
companyInfoMap
.
get
(
"companyName"
).
toString
());
projectContraption
.
setUs
e
UnitName
(
companyInfoMap
.
get
(
"companyName"
).
toString
());
projectContraption
.
setUs
c
UnitCreditCode
(
companyInfoMap
.
get
(
"creditCode"
).
toString
());
projectContraption
.
setUs
e
UnitCreditCode
(
companyInfoMap
.
get
(
"creditCode"
).
toString
());
return
this
.
saveOrUpdateData
(
projectContraption
);
return
this
.
saveOrUpdateData
(
projectContraption
);
}
}
}
}
\ No newline at end of file
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 @
217f8e8b
...
@@ -858,6 +858,7 @@ public class JgUseRegistrationServiceImpl extends BaseService<JgUseRegistrationD
...
@@ -858,6 +858,7 @@ public class JgUseRegistrationServiceImpl extends BaseService<JgUseRegistrationD
List
<
JgUseRegistrationEq
>
equipList
=
equipmentLists
.
stream
()
List
<
JgUseRegistrationEq
>
equipList
=
equipmentLists
.
stream
()
.
map
(
x
->
new
JgUseRegistrationEq
()
.
map
(
x
->
new
JgUseRegistrationEq
()
.
setEquId
(
String
.
valueOf
(
x
.
get
(
"record"
)))
.
setEquId
(
String
.
valueOf
(
x
.
get
(
"record"
)))
.
setOriginProjectContraptionId
(
String
.
valueOf
(
x
.
get
(
"projectContraptionId"
)))
.
setEquipTransferId
(
String
.
valueOf
(
useRegistration
.
getSequenceNbr
())))
.
setEquipTransferId
(
String
.
valueOf
(
useRegistration
.
getSequenceNbr
())))
.
collect
(
Collectors
.
toList
());
.
collect
(
Collectors
.
toList
());
// 保存关联设备信息
// 保存关联设备信息
...
@@ -1025,13 +1026,14 @@ public class JgUseRegistrationServiceImpl extends BaseService<JgUseRegistrationD
...
@@ -1025,13 +1026,14 @@ public class JgUseRegistrationServiceImpl extends BaseService<JgUseRegistrationD
}
}
}
}
//如果是气瓶或工业管道判断之前是否已经做过使用登记
//如果是气瓶或工业管道判断之前是否已经做过使用登记
if
(
CylinderTypeEnum
.
CYLINDER
.
getCode
().
equals
(
equCategoryCode
)
||
PipelineEnum
.
INDUSTRIAL_PIPELINE
.
getCode
().
equals
(
equCategoryCode
)
)
{
if
(
CylinderTypeEnum
.
CYLINDER
.
getCode
().
equals
(
equCategoryCode
))
{
//如果是增补功能
//如果是增补功能
if
(
"1"
.
equals
(
jgUseRegistration
.
getIsAddEquip
()))
{
if
(
"1"
.
equals
(
jgUseRegistration
.
getIsAddEquip
()))
{
useRegistrationCode
=
jgUseRegistration
.
getUseRegistrationCode
();
useRegistrationCode
=
jgUseRegistration
.
getUseRegistrationCode
();
flag
=
Boolean
.
TRUE
;
flag
=
Boolean
.
TRUE
;
}
}
}
}
List
<
Map
<
String
,
Object
>>
equipmentLists
=
(
List
<
Map
<
String
,
Object
>>)
mapData
.
get
(
"equipmentLists"
);
List
<
Map
<
String
,
Object
>>
equipmentLists
=
(
List
<
Map
<
String
,
Object
>>)
mapData
.
get
(
"equipmentLists"
);
String
inspectConclusionName
=
getInspectConclusionName
(
mapData
);
String
inspectConclusionName
=
getInspectConclusionName
(
mapData
);
if
(!
CollectionUtils
.
isEmpty
(
equipmentLists
))
{
if
(!
CollectionUtils
.
isEmpty
(
equipmentLists
))
{
...
@@ -3884,6 +3886,7 @@ public class JgUseRegistrationServiceImpl extends BaseService<JgUseRegistrationD
...
@@ -3884,6 +3886,7 @@ public class JgUseRegistrationServiceImpl extends BaseService<JgUseRegistrationD
LambdaQueryWrapper
<
IdxBizJgProjectContraption
>
wrapper
=
new
LambdaQueryWrapper
<>();
LambdaQueryWrapper
<
IdxBizJgProjectContraption
>
wrapper
=
new
LambdaQueryWrapper
<>();
wrapper
.
eq
(
IdxBizJgProjectContraption:
:
getUseUnitCreditCode
,
useUnitCreditCode
);
wrapper
.
eq
(
IdxBizJgProjectContraption:
:
getUseUnitCreditCode
,
useUnitCreditCode
);
wrapper
.
eq
(
IdxBizJgProjectContraption:
:
getIsIntoManagement
,
true
);
wrapper
.
eq
(
IdxBizJgProjectContraption:
:
getIsIntoManagement
,
true
);
wrapper
.
eq
(
IdxBizJgProjectContraption:
:
getIsFirstMerge
,
false
);
wrapper
.
notIn
(!
proIds
.
isEmpty
(),
BaseEntity:
:
getSequenceNbr
,
proIds
);
wrapper
.
notIn
(!
proIds
.
isEmpty
(),
BaseEntity:
:
getSequenceNbr
,
proIds
);
wrapper
.
isNull
(
IdxBizJgProjectContraption:
:
getProjectContraptionParentId
);
wrapper
.
isNull
(
IdxBizJgProjectContraption:
:
getProjectContraptionParentId
);
wrapper
.
last
(
"and (length(use_registration_code) = 0 or use_registration_code is null)"
);
wrapper
.
last
(
"and (length(use_registration_code) = 0 or use_registration_code is null)"
);
...
@@ -3927,7 +3930,7 @@ public class JgUseRegistrationServiceImpl extends BaseService<JgUseRegistrationD
...
@@ -3927,7 +3930,7 @@ public class JgUseRegistrationServiceImpl extends BaseService<JgUseRegistrationD
double
totalPipelineLength
=
equList
.
stream
()
double
totalPipelineLength
=
equList
.
stream
()
.
map
(
map
->
map
.
get
(
"pipeLength"
))
.
map
(
map
->
map
.
get
(
"pipeLength"
))
.
filter
(
Objects:
:
nonNull
)
.
filter
(
Objects:
:
nonNull
)
.
mapToDouble
(
value
->
(
Double
)
value
)
.
mapToDouble
(
value
->
Double
.
parseDouble
((
String
)
value
)
)
.
sum
();
.
sum
();
return
MapBuilder
.<
String
,
Object
>
create
()
return
MapBuilder
.<
String
,
Object
>
create
()
...
...
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