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
cabbf60c
Commit
cabbf60c
authored
Feb 26, 2025
by
chenzhao
Browse files
Options
Browse Files
Download
Plain Diff
Merge remote-tracking branch 'origin/develop_tzs_register' into develop_tzs_register
parents
a7deaa0a
cbd39cac
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
15 additions
and
8 deletions
+15
-8
IdxBizJgProjectContraptionServiceImpl.java
...z/service/impl/IdxBizJgProjectContraptionServiceImpl.java
+2
-0
JgChangeRegistrationReformServiceImpl.java
...z/service/impl/JgChangeRegistrationReformServiceImpl.java
+3
-1
JgUseRegistrationServiceImpl.java
...ule/jg/biz/service/impl/JgUseRegistrationServiceImpl.java
+10
-7
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 @
cabbf60c
...
@@ -667,6 +667,7 @@ public class IdxBizJgProjectContraptionServiceImpl extends BaseService<IdxBizJgP
...
@@ -667,6 +667,7 @@ public class IdxBizJgProjectContraptionServiceImpl extends BaseService<IdxBizJgP
result
.
put
(
"inspectConclusionCode"
,
info
.
getInspectConclusion
());
result
.
put
(
"inspectConclusionCode"
,
info
.
getInspectConclusion
());
result
.
put
(
"inspectConclusion"
,
Optional
.
ofNullable
(
dataDictionaryServiceImpl
.
getByCode
(
info
.
getInspectConclusion
(),
"JYJL"
))
result
.
put
(
"inspectConclusion"
,
Optional
.
ofNullable
(
dataDictionaryServiceImpl
.
getByCode
(
info
.
getInspectConclusion
(),
"JYJL"
))
.
map
(
DataDictionary:
:
getName
).
orElse
(
""
));
.
map
(
DataDictionary:
:
getName
).
orElse
(
""
));
result
.
put
(
"jySeq"
,
info
.
getSequenceNbr
());
return
result
;
return
result
;
}
}
}
}
\ 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/JgChangeRegistrationReformServiceImpl.java
View file @
cabbf60c
...
@@ -1623,7 +1623,6 @@ public class JgChangeRegistrationReformServiceImpl extends BaseService<JgChangeR
...
@@ -1623,7 +1623,6 @@ public class JgChangeRegistrationReformServiceImpl extends BaseService<JgChangeR
.
eq
(
InspectionDetectionInfo:
:
getInspectOrgCode
,
inspectionDetectionInfo
.
getInspectOrgCode
());
.
eq
(
InspectionDetectionInfo:
:
getInspectOrgCode
,
inspectionDetectionInfo
.
getInspectOrgCode
());
List
<
InspectionDetectionInfo
>
inspectionDetectionInfos
=
inspectionDetectionInfoMapper
.
selectList
(
wrapper
);
List
<
InspectionDetectionInfo
>
inspectionDetectionInfos
=
inspectionDetectionInfoMapper
.
selectList
(
wrapper
);
List
<
InspectionDetectionInfo
>
oInspectionDetectionInfos
=
new
ArrayList
<>(
inspectionDetectionInfos
);
List
<
InspectionDetectionInfo
>
oInspectionDetectionInfos
=
new
ArrayList
<>(
inspectionDetectionInfos
);
JSONObject
data
=
new
JSONObject
();
String
insertId
=
null
;
String
insertId
=
null
;
if
(
inspectionDetectionInfos
.
isEmpty
()){
if
(
inspectionDetectionInfos
.
isEmpty
()){
insertId
=
sequence
.
nextId
()
+
""
;
insertId
=
sequence
.
nextId
()
+
""
;
...
@@ -1645,6 +1644,7 @@ public class JgChangeRegistrationReformServiceImpl extends BaseService<JgChangeR
...
@@ -1645,6 +1644,7 @@ public class JgChangeRegistrationReformServiceImpl extends BaseService<JgChangeR
this
.
setInsertIds
(
inspectData
,
insertId
);
this
.
setInsertIds
(
inspectData
,
insertId
);
// 被更新的原行数据
// 被更新的原行数据
this
.
setOData
(
inspectData
,
oInspectionDetectionInfos
);
this
.
setOData
(
inspectData
,
oInspectionDetectionInfos
);
oldData
.
put
(
"inspectData"
,
inspectData
);
LambdaUpdateWrapper
<
JgRegistrationHistory
>
updateWrapper
=
new
LambdaUpdateWrapper
<>();
LambdaUpdateWrapper
<
JgRegistrationHistory
>
updateWrapper
=
new
LambdaUpdateWrapper
<>();
updateWrapper
.
eq
(
JgRegistrationHistory:
:
getCurrentDocumentId
,
registrationReform
.
getApplyNo
());
updateWrapper
.
eq
(
JgRegistrationHistory:
:
getCurrentDocumentId
,
registrationReform
.
getApplyNo
());
updateWrapper
.
set
(
JgRegistrationHistory:
:
getOldData
,
JSONObject
.
toJSONString
(
oldData
));
updateWrapper
.
set
(
JgRegistrationHistory:
:
getOldData
,
JSONObject
.
toJSONString
(
oldData
));
...
@@ -1655,6 +1655,7 @@ public class JgChangeRegistrationReformServiceImpl extends BaseService<JgChangeR
...
@@ -1655,6 +1655,7 @@ public class JgChangeRegistrationReformServiceImpl extends BaseService<JgChangeR
JSONArray
oData
=
inspectData
.
getJSONArray
(
"oData"
);
JSONArray
oData
=
inspectData
.
getJSONArray
(
"oData"
);
if
(
oData
==
null
){
if
(
oData
==
null
){
oData
=
new
JSONArray
();
oData
=
new
JSONArray
();
inspectData
.
put
(
"oData"
,
oData
);
}
}
oData
.
addAll
(
oInspectionDetectionInfos
);
oData
.
addAll
(
oInspectionDetectionInfos
);
}
}
...
@@ -1663,6 +1664,7 @@ public class JgChangeRegistrationReformServiceImpl extends BaseService<JgChangeR
...
@@ -1663,6 +1664,7 @@ public class JgChangeRegistrationReformServiceImpl extends BaseService<JgChangeR
JSONArray
existInsertIds
=
inspectData
.
getJSONArray
(
"insertIds"
);
JSONArray
existInsertIds
=
inspectData
.
getJSONArray
(
"insertIds"
);
if
(
existInsertIds
==
null
){
if
(
existInsertIds
==
null
){
existInsertIds
=
new
JSONArray
();
existInsertIds
=
new
JSONArray
();
inspectData
.
put
(
"insertIds"
,
existInsertIds
);
}
}
if
(
insertId
!=
null
){
if
(
insertId
!=
null
){
existInsertIds
.
add
(
insertId
);
existInsertIds
.
add
(
insertId
);
...
...
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 @
cabbf60c
...
@@ -2834,10 +2834,15 @@ public class JgUseRegistrationServiceImpl extends BaseService<JgUseRegistrationD
...
@@ -2834,10 +2834,15 @@ public class JgUseRegistrationServiceImpl extends BaseService<JgUseRegistrationD
// 基本信息 + 制造信息 + 设计信息
// 基本信息 + 制造信息 + 设计信息
fillLastEquipBaseInfo
(
jsonObject
,
record
);
fillLastEquipBaseInfo
(
jsonObject
,
record
);
// 安装信息
// 安装信息
Map
<
String
,
Object
>
installDetail
=
this
.
baseMapper
.
getiInstallDetail
(
record
);
if
(!
jsonObject
.
containsKey
(
"installationIsComplete"
))
{
// 历史设备登记来的数据没有安装业务信息 从一码通数据拿
Map
<
String
,
Object
>
installDetail
=
this
.
baseMapper
.
getiInstallDetail
(
record
);
if
(
ValidationUtil
.
isEmpty
(
installDetail
))
{
// 历史设备登记来的数据没有安装业务信息 从一码通数据拿
installDetail
=
this
.
baseMapper
.
getiInstallDetailByIdx
(
record
);
if
(
ValidationUtil
.
isEmpty
(
installDetail
))
{
installDetail
=
this
.
baseMapper
.
getiInstallDetailByIdx
(
record
);
}
if
(!
ObjectUtils
.
isEmpty
(
installDetail
))
{
jsonObject
.
putAll
(
installDetail
);
}
}
}
// 维保信息
// 维保信息
Map
<
String
,
Object
>
maintenanceDetail
=
this
.
baseMapper
.
getMaintenanceDetail
(
record
);
Map
<
String
,
Object
>
maintenanceDetail
=
this
.
baseMapper
.
getMaintenanceDetail
(
record
);
...
@@ -2848,9 +2853,7 @@ public class JgUseRegistrationServiceImpl extends BaseService<JgUseRegistrationD
...
@@ -2848,9 +2853,7 @@ public class JgUseRegistrationServiceImpl extends BaseService<JgUseRegistrationD
if
(!
ObjectUtils
.
isEmpty
(
maintenanceDetail
))
{
if
(!
ObjectUtils
.
isEmpty
(
maintenanceDetail
))
{
jsonObject
.
putAll
(
maintenanceDetail
);
jsonObject
.
putAll
(
maintenanceDetail
);
}
}
if
(!
ObjectUtils
.
isEmpty
(
installDetail
))
{
jsonObject
.
putAll
(
installDetail
);
}
}
}
public
void
fillLastEquipBaseInfo
(
JSONObject
jsonObject
,
String
record
)
{
public
void
fillLastEquipBaseInfo
(
JSONObject
jsonObject
,
String
record
)
{
...
...
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