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
f92b1dc2
Commit
f92b1dc2
authored
Jan 22, 2025
by
Lambertliu
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix(jg):管道使用登记功能Bug修改
parent
1af30530
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
17 additions
and
7 deletions
+17
-7
JgUseRegistrationServiceImpl.java
...ule/jg/biz/service/impl/JgUseRegistrationServiceImpl.java
+17
-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/JgUseRegistrationServiceImpl.java
View file @
f92b1dc2
...
@@ -2995,7 +2995,9 @@ public class JgUseRegistrationServiceImpl extends BaseService<JgUseRegistrationD
...
@@ -2995,7 +2995,9 @@ public class JgUseRegistrationServiceImpl extends BaseService<JgUseRegistrationD
JgRegistrationHistory
history
=
jgRegistrationHistoryService
.
queryLatestRegistrationHistory
(
Long
.
valueOf
(
jgUseRegistration
.
getProjectContraptionId
()));
JgRegistrationHistory
history
=
jgRegistrationHistoryService
.
queryLatestRegistrationHistory
(
Long
.
valueOf
(
jgUseRegistration
.
getProjectContraptionId
()));
if
(
history
!=
null
&&
history
.
getChangeData
()
!=
null
)
{
if
(
history
!=
null
&&
history
.
getChangeData
()
!=
null
)
{
JSONObject
hisJson
=
JSON
.
parseObject
(
history
.
getChangeData
());
JSONObject
hisJson
=
JSON
.
parseObject
(
history
.
getChangeData
());
boolean
isFirstMerge
=
(
boolean
)
hisJson
.
get
(
"isFirstMerge"
);
boolean
isFirstMerge
=
Optional
.
ofNullable
(
hisJson
.
get
(
"isFirstMerge"
))
.
map
(
Boolean
.
class
::
cast
)
.
orElse
(
false
);
//合并到无证总工程
//合并到无证总工程
if
(
isFirstMerge
)
{
if
(
isFirstMerge
)
{
IdxBizJgProjectContraption
projectContraption
=
jgProjectContraptionService
.
getById
(
jgUseRegistration
.
getProjectContraptionId
());
IdxBizJgProjectContraption
projectContraption
=
jgProjectContraptionService
.
getById
(
jgUseRegistration
.
getProjectContraptionId
());
...
@@ -4185,9 +4187,7 @@ public class JgUseRegistrationServiceImpl extends BaseService<JgUseRegistrationD
...
@@ -4185,9 +4187,7 @@ public class JgUseRegistrationServiceImpl extends BaseService<JgUseRegistrationD
.
put
(
"projectContraptionNo"
,
projectContraption
.
getProjectContraptionNo
())
.
put
(
"projectContraptionNo"
,
projectContraption
.
getProjectContraptionNo
())
.
put
(
"isFirstMerge"
,
projectContraption
.
getIsFirstMerge
())
.
put
(
"isFirstMerge"
,
projectContraption
.
getIsFirstMerge
())
.
put
(
"pipelineLength"
,
totalPipelineLength
);
.
put
(
"pipelineLength"
,
totalPipelineLength
);
if
(
Objects
.
nonNull
(
projectContraption
.
getUseRegistrationCode
())){
setProjectContraptionInfo
(
projectContraption
,
resultBuilder
);
setProjectContraptionInfo
(
projectContraption
,
resultBuilder
);
}
return
resultBuilder
.
build
();
return
resultBuilder
.
build
();
}
}
...
@@ -4195,11 +4195,11 @@ public class JgUseRegistrationServiceImpl extends BaseService<JgUseRegistrationD
...
@@ -4195,11 +4195,11 @@ public class JgUseRegistrationServiceImpl extends BaseService<JgUseRegistrationD
// 查询最新的历史记录
// 查询最新的历史记录
JgRegistrationHistory
history
=
jgRegistrationHistoryService
.
queryLatestRegistrationHistory
(
projectContraption
.
getSequenceNbr
());
JgRegistrationHistory
history
=
jgRegistrationHistoryService
.
queryLatestRegistrationHistory
(
projectContraption
.
getSequenceNbr
());
Map
<
String
,
Object
>
fieldMappings
=
new
HashMap
<>();
if
(
history
!=
null
&&
history
.
getChangeData
()
!=
null
)
{
if
(
history
!=
null
&&
history
.
getChangeData
()
!=
null
)
{
JSONObject
hisJson
=
JSON
.
parseObject
(
history
.
getChangeData
());
JSONObject
hisJson
=
JSON
.
parseObject
(
history
.
getChangeData
());
Map
<
String
,
Object
>
fieldMappings
=
new
HashMap
<>();
fieldMappings
.
put
(
"useRegistrationCode"
,
projectContraption
.
getUseRegistrationCode
());
fieldMappings
.
put
(
"useRegistrationCode"
,
projectContraption
.
getUseRegistrationCode
());
fieldMappings
.
put
(
"safetyManager"
,
hisJson
.
get
(
"safetyManagerId"
)
+
"_"
+
hisJson
.
get
(
"safetyManager"
));
fieldMappings
.
put
(
"safetyManager"
,
hisJson
.
get
(
"safetyManagerId"
)
+
"_"
+
hisJson
.
get
(
"safetyManager"
));
fieldMappings
.
put
(
"useDate"
,
hisJson
.
get
(
"useDate"
));
fieldMappings
.
put
(
"useDate"
,
hisJson
.
get
(
"useDate"
));
fieldMappings
.
put
(
"otherAccessories"
,
hisJson
.
get
(
"otherAccessories"
));
fieldMappings
.
put
(
"otherAccessories"
,
hisJson
.
get
(
"otherAccessories"
));
fieldMappings
.
put
(
"factoryUseSiteStreet"
,
hisJson
.
get
(
"factoryUseSiteStreet"
));
fieldMappings
.
put
(
"factoryUseSiteStreet"
,
hisJson
.
get
(
"factoryUseSiteStreet"
));
...
@@ -4218,8 +4218,18 @@ public class JgUseRegistrationServiceImpl extends BaseService<JgUseRegistrationD
...
@@ -4218,8 +4218,18 @@ public class JgUseRegistrationServiceImpl extends BaseService<JgUseRegistrationD
hisJson
.
get
(
"endLatitudeLongitude"
));
hisJson
.
get
(
"endLatitudeLongitude"
));
fieldMappings
.
put
(
"estateUnitName"
,
hisJson
.
get
(
"estateUnitName"
));
fieldMappings
.
put
(
"estateUnitName"
,
hisJson
.
get
(
"estateUnitName"
));
fieldMappings
.
put
(
"orgBranchCode"
,
hisJson
.
get
(
"orgBranchCode"
));
fieldMappings
.
put
(
"orgBranchCode"
,
hisJson
.
get
(
"orgBranchCode"
));
fieldMappings
.
forEach
(
re:
:
put
);
}
else
{
fieldMappings
.
put
(
"province"
,
projectContraption
.
getProvince
());
fieldMappings
.
put
(
"city"
,
projectContraption
.
getCity
());
fieldMappings
.
put
(
"county"
,
projectContraption
.
getCounty
());
fieldMappings
.
put
(
"factoryUseSiteStreet"
,
projectContraption
.
getStreet
());
fieldMappings
.
put
(
"address"
,
projectContraption
.
getAddress
());
fieldMappings
.
put
(
"startLatitudeLongitude"
,
JSON
.
parseObject
(
projectContraption
.
getStartLatitudeLongitude
()));
fieldMappings
.
put
(
"endLatitudeLongitude"
,
JSON
.
parseObject
(
projectContraption
.
getEndLatitudeLongitude
()));
fieldMappings
.
put
(
"orgBranchCode"
,
projectContraption
.
getOrgCode
()+
"_"
+
projectContraption
.
getOrgName
());
}
}
fieldMappings
.
forEach
(
re:
:
put
);
}
}
private
void
setConstructionInfo
(
String
projectContraptionSeq
,
Map
<
String
,
Object
>
re
)
{
private
void
setConstructionInfo
(
String
projectContraptionSeq
,
Map
<
String
,
Object
>
re
)
{
...
...
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