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
5f7bc3b3
Commit
5f7bc3b3
authored
Jul 25, 2024
by
刘林
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix(jg):移装变更接口修改
parent
7ebe3016
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
3 deletions
+9
-3
JgChangeRegistrationTransferServiceImpl.java
...service/impl/JgChangeRegistrationTransferServiceImpl.java
+9
-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/JgChangeRegistrationTransferServiceImpl.java
View file @
5f7bc3b3
...
...
@@ -195,10 +195,10 @@ public class JgChangeRegistrationTransferServiceImpl extends BaseService<JgChang
String
county
=
(
String
)
tableData
.
get
(
"transferCounty"
);
String
street
=
(
String
)
tableData
.
get
(
"transferStreet"
);
String
address
=
(
String
)
tableData
.
get
(
"transferAddress"
);
//区内移装,需判断是否为同一地市,如果不是同一地市,返回异常
//区内移装,需判断是否为同一地市,如果不是同一地市,返回异常
-> 610000#610200#610204#610204002
if
(
"0"
.
equals
(
tableData
.
get
(
"transferType"
)))
{
deviceList
.
forEach
(
device
->
{
String
deviceCity
=
Arrays
.
stream
(((
String
)
device
.
get
(
"USE_
PLAC
E_CODE"
)).
split
(
"#"
))
String
deviceCity
=
Arrays
.
stream
(((
String
)
device
.
get
(
"USE_
SIT
E_CODE"
)).
split
(
"#"
))
.
skip
(
1
)
.
findFirst
()
.
orElseThrow
(()
->
new
BadRequest
(
"没有查询到地市信息"
));
...
...
@@ -209,7 +209,7 @@ public class JgChangeRegistrationTransferServiceImpl extends BaseService<JgChang
});
}
else
{
deviceList
.
forEach
(
device
->
{
String
deviceCity
=
Arrays
.
stream
(((
String
)
device
.
get
(
"USE_
PLAC
E_CODE"
)).
split
(
"#"
))
String
deviceCity
=
Arrays
.
stream
(((
String
)
device
.
get
(
"USE_
SIT
E_CODE"
)).
split
(
"#"
))
.
skip
(
1
)
.
findFirst
()
.
orElseThrow
(()
->
new
BadRequest
(
"没有查询到地市信息"
));
...
...
@@ -1149,6 +1149,7 @@ public class JgChangeRegistrationTransferServiceImpl extends BaseService<JgChang
}
//获取移装新位置,更新ES
String
newUsePlace
=
""
;
String
newUsePlaceCode
=
""
;
String
newAddress
=
""
;
String
newLongitudeLatitude
=
""
;
if
(!
ValidationUtil
.
isEmpty
(
newData
))
{
...
...
@@ -1164,24 +1165,28 @@ public class JgChangeRegistrationTransferServiceImpl extends BaseService<JgChang
String
[]
provinceList
=
province
.
split
(
"_"
);
if
(
provinceList
.
length
>
1
)
{
newUsePlace
+=
provinceList
[
1
]
+
"/"
;
newUsePlaceCode
+=
provinceList
[
0
]
+
"#"
;
}
}
if
(!
ObjectUtils
.
isEmpty
(
city
))
{
String
[]
cityList
=
city
.
split
(
"_"
);
if
(
cityList
.
length
>
1
)
{
newUsePlace
+=
cityList
[
1
]
+
"/"
;
newUsePlaceCode
+=
cityList
[
0
]
+
"#"
;
}
}
if
(!
ObjectUtils
.
isEmpty
(
county
))
{
String
[]
countyList
=
county
.
split
(
"_"
);
if
(
countyList
.
length
>
1
)
{
newUsePlace
+=
countyList
[
1
]
+
"/"
;
newUsePlaceCode
+=
countyList
[
0
]
+
"#"
;
}
}
if
(!
ObjectUtils
.
isEmpty
(
street
))
{
String
[]
countyList
=
street
.
split
(
"_"
);
if
(
countyList
.
length
>
1
)
{
newUsePlace
+=
countyList
[
1
];
newUsePlaceCode
+=
countyList
[
0
];
}
}
...
...
@@ -1197,6 +1202,7 @@ public class JgChangeRegistrationTransferServiceImpl extends BaseService<JgChang
Map
<
String
,
Object
>
map1
=
new
HashMap
<>();
map1
.
put
(
"USE_PLACE"
,
newUsePlace
);
map1
.
put
(
"ADDRESS"
,
newAddress
);
map1
.
put
(
"USE_SITE_CODE"
,
newUsePlaceCode
);
map1
.
put
(
"LONGITUDE_LATITUDE"
,
newLongitudeLatitude
);
if
(
isUpdateRegistrationCode
.
get
())
{
map1
.
put
(
"USE_ORG_CODE"
,
useRegistrationCode
);
...
...
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