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
25db81a0
Commit
25db81a0
authored
Sep 11, 2024
by
suhuiguang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1.台套历史设备登记,按改为单位名称可自选输入,由于单位code未使用,故不在存code
parent
5ea66033
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
35 additions
and
3 deletions
+35
-3
JgUseRegistrationServiceImpl.java
...ule/jg/biz/service/impl/JgUseRegistrationServiceImpl.java
+35
-3
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 @
25db81a0
...
@@ -1428,6 +1428,39 @@ public class JgUseRegistrationServiceImpl extends BaseService<JgUseRegistrationD
...
@@ -1428,6 +1428,39 @@ public class JgUseRegistrationServiceImpl extends BaseService<JgUseRegistrationD
tzsServiceFeignClient
.
commonUpdateEsDataByIds
(
objMap
);
tzsServiceFeignClient
.
commonUpdateEsDataByIds
(
objMap
);
}
}
public
void
updateEsData2
(
String
usePlace
,
JSONObject
dataMap
,
IdxBizJgOtherInfo
otherInfo
,
IdxBizJgUseInfo
useInfo
,
JgUseRegistration
jgUseRegistration
,
JSONObject
jsonObject
)
{
// 更新es
HashMap
<
String
,
Map
<
String
,
Object
>>
objMap
=
new
HashMap
<>();
HashMap
<
String
,
Object
>
param
=
new
HashMap
<>();
// 属地监管部门拆分
String
orgBranch
=
(
String
)
dataMap
.
getOrDefault
(
"orgBranchCode"
,
"_"
);
String
[]
split
=
orgBranch
.
split
(
"_"
);
param
.
put
(
"SUPERVISORY_CODE"
,
otherInfo
.
getSupervisoryCode
());
param
.
put
(
"CODE96333"
,
otherInfo
.
getCode96333
());
param
.
put
(
"USE_UNIT_CREDIT_CODE"
,
dataMap
.
get
(
"useUnitCreditCode"
));
param
.
put
(
"USE_UNIT_NAME"
,
dataMap
.
get
(
"useUnitName"
));
param
.
put
(
"ADDRESS"
,
dataMap
.
getOrDefault
(
"address"
,
""
));
param
.
put
(
"USE_PLACE"
,
usePlace
);
param
.
put
(
"STATUS"
,
"已认领"
);
param
.
put
(
"EQU_STATE"
,
1
);
// 更新es的下次检验日期
param
.
put
(
"NEXT_INSPECT_DATE"
,
this
.
castDate2TimeStr
(
dataMap
.
getString
(
"nextInspectDate"
)));
param
.
put
(
"USE_INNER_CODE"
,
useInfo
.
getUseInnerCode
());
param
.
put
(
"IS_INTO_MANAGEMENT"
,
true
);
param
.
put
(
"USE_PLACE_CODE"
,
jsonObject
.
get
(
"province"
)
+
"#"
+
jsonObject
.
get
(
"city"
)
+
"#"
+
jsonObject
.
get
(
"county"
)
+
"#"
+
jsonObject
.
get
(
"factoryUseSiteStreet"
));
param
.
put
(
"USE_SITE_CODE"
,
String
.
valueOf
(
jsonObject
.
get
(
"usePlace"
)));
param
.
put
(
"ORG_BRANCH_CODE"
,
split
[
0
]);
param
.
put
(
"ORG_BRANCH_NAME"
,
split
[
1
]);
param
.
put
(
"USC_UNIT_CREDIT_CODE"
,
""
);
param
.
put
(
"USC_UNIT_NAME"
,
dataMap
.
getString
(
"uscUnitName"
));
param
.
put
(
"EQU_CODE"
,
dataMap
.
get
(
"equCode"
));
param
.
put
(
"USE_ORG_CODE"
,
jgUseRegistration
.
getUseRegistrationCode
());
param
.
put
(
"CYLINDER_CATEGORY"
,
dataMap
.
get
(
"cylinderCategory"
));
objMap
.
put
((
String
)
dataMap
.
get
(
"equipId"
),
param
);
tzsServiceFeignClient
.
commonUpdateEsDataByIds
(
objMap
);
}
private
Long
castDate2TimeStr
(
String
nextInspectDate
)
{
private
Long
castDate2TimeStr
(
String
nextInspectDate
)
{
if
(
nextInspectDate
!=
null
){
if
(
nextInspectDate
!=
null
){
return
DateUtil
.
parse
(
nextInspectDate
).
getTime
();
return
DateUtil
.
parse
(
nextInspectDate
).
getTime
();
...
@@ -2974,7 +3007,7 @@ public class JgUseRegistrationServiceImpl extends BaseService<JgUseRegistrationD
...
@@ -2974,7 +3007,7 @@ public class JgUseRegistrationServiceImpl extends BaseService<JgUseRegistrationD
this
.
createCode
(
map
,
jgUseRegistration
,
registerInfo
,
useInfo
,
otherInfo
);
this
.
createCode
(
map
,
jgUseRegistration
,
registerInfo
,
useInfo
,
otherInfo
);
map
.
put
(
"equCode"
,
equCode
);
map
.
put
(
"equCode"
,
equCode
);
// 更新es
// 更新es
this
.
updateEsData
(
usePlace
,
map
,
otherInfo
,
useInfo
,
jgUseRegistration
,
map
);
this
.
updateEsData
2
(
usePlace
,
map
,
otherInfo
,
useInfo
,
jgUseRegistration
,
map
);
this
.
updateById
(
jgUseRegistration
);
this
.
updateById
(
jgUseRegistration
);
// 设备安装信息更新
// 设备安装信息更新
...
@@ -3035,8 +3068,7 @@ public class JgUseRegistrationServiceImpl extends BaseService<JgUseRegistrationD
...
@@ -3035,8 +3068,7 @@ public class JgUseRegistrationServiceImpl extends BaseService<JgUseRegistrationD
IdxBizJgConstructionInfo
constructionInfo
=
idxBizJgConstructionInfoService
.
queryNewestDetailByRecord
(
String
.
valueOf
(
map
.
get
(
"equipId"
)));
IdxBizJgConstructionInfo
constructionInfo
=
idxBizJgConstructionInfoService
.
queryNewestDetailByRecord
(
String
.
valueOf
(
map
.
get
(
"equipId"
)));
if
(!
ValidationUtil
.
isEmpty
(
constructionInfo
.
getSequenceNbr
()))
{
if
(!
ValidationUtil
.
isEmpty
(
constructionInfo
.
getSequenceNbr
()))
{
constructionInfo
.
setUscUnitCreditCode
(
ValidationUtil
.
isEmpty
(
map
.
get
(
"uscUnitCodeAndName"
))
?
null
:
String
.
valueOf
(
map
.
get
(
"uscUnitCodeAndName"
)).
split
(
"_"
)[
0
]);
constructionInfo
.
setUscUnitName
(
ValidationUtil
.
isEmpty
(
map
.
get
(
"uscUnitName"
))
?
null
:
String
.
valueOf
(
map
.
get
(
"uscUnitName"
)));
constructionInfo
.
setUscUnitName
(
ValidationUtil
.
isEmpty
(
map
.
get
(
"uscUnitCodeAndName"
))
?
null
:
String
.
valueOf
(
map
.
get
(
"uscUnitCodeAndName"
)).
split
(
"_"
)[
1
]);
constructionInfo
.
setConstructionLeaderName
(
ValidationUtil
.
isEmpty
(
map
.
get
(
"installLeaderId"
))
?
null
:
String
.
valueOf
(
map
.
get
(
"installLeaderId"
)));
constructionInfo
.
setConstructionLeaderName
(
ValidationUtil
.
isEmpty
(
map
.
get
(
"installLeaderId"
))
?
null
:
String
.
valueOf
(
map
.
get
(
"installLeaderId"
)));
constructionInfo
.
setConstructionLeaderPhone
(
ValidationUtil
.
isEmpty
(
map
.
get
(
"installLeaderPhone"
))
?
null
:
String
.
valueOf
(
map
.
get
(
"installLeaderPhone"
)));
constructionInfo
.
setConstructionLeaderPhone
(
ValidationUtil
.
isEmpty
(
map
.
get
(
"installLeaderPhone"
))
?
null
:
String
.
valueOf
(
map
.
get
(
"installLeaderPhone"
)));
constructionInfo
.
setProxyStatementAttachment
(
ValidationUtil
.
isEmpty
(
map
.
get
(
"proxyStatementAttachmentList"
))
?
null
:
JSONObject
.
toJSONString
(
map
.
get
(
"proxyStatementAttachmentList"
)));
constructionInfo
.
setProxyStatementAttachment
(
ValidationUtil
.
isEmpty
(
map
.
get
(
"proxyStatementAttachmentList"
))
?
null
:
JSONObject
.
toJSONString
(
map
.
get
(
"proxyStatementAttachmentList"
)));
...
...
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