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
dcffc5c6
Commit
dcffc5c6
authored
Dec 25, 2023
by
liufan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
优化:设备详情返回完整的设备地址出现null的问题
parent
5c2975f3
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
36 additions
and
10 deletions
+36
-10
IdxBizJgRegisterInfoServiceImpl.java
.../jg/biz/service/impl/IdxBizJgRegisterInfoServiceImpl.java
+36
-10
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/IdxBizJgRegisterInfoServiceImpl.java
View file @
dcffc5c6
...
...
@@ -213,25 +213,51 @@ public class IdxBizJgRegisterInfoServiceImpl extends BaseService<IdxBizJgRegiste
*/
private
Map
<
String
,
Object
>
getStringObjectMap
(
String
record
,
String
fieldType
)
{
Map
<
String
,
Object
>
objMap
=
new
HashMap
<>();
String
province
=
""
;
String
city
=
""
;
String
county
=
""
;
String
street
=
""
;
String
fullAddress
=
""
;
//使用信息
IdxBizJgUseInfo
useInfo
=
idxBizJgUseInfoService
.
getOneData
(
record
);
if
(!
ValidationUtil
.
isEmpty
(
useInfo
))
{
if
(!
ValidationUtil
.
isEmpty
(
useInfo
.
getProvince
())
&&
!
ValidationUtil
.
isEmpty
(
useInfo
.
getProvinceName
())){
province
=
useInfo
.
getProvince
()+
"_"
+
useInfo
.
getProvinceName
();
fullAddress
+=
useInfo
.
getProvinceName
();
}
if
(!
ValidationUtil
.
isEmpty
(
useInfo
.
getCity
())
&&
!
ValidationUtil
.
isEmpty
(
useInfo
.
getCityName
()))
{
city
=
useInfo
.
getCity
()
+
"_"
+
useInfo
.
getCityName
();
fullAddress
+=
useInfo
.
getCityName
();
}
if
(!
ValidationUtil
.
isEmpty
(
useInfo
.
getCounty
())
&&
!
ValidationUtil
.
isEmpty
(
useInfo
.
getCountyName
()))
{
county
=
useInfo
.
getCounty
()
+
"_"
+
useInfo
.
getCountyName
();
fullAddress
+=
useInfo
.
getCountyName
();
}
if
(!
ValidationUtil
.
isEmpty
(
useInfo
.
getFactoryUseSiteStreet
())
&&
!
ValidationUtil
.
isEmpty
(
useInfo
.
getStreetName
()))
{
street
=
useInfo
.
getFactoryUseSiteStreet
()
+
"_"
+
useInfo
.
getStreetName
();
fullAddress
+=
useInfo
.
getStreetName
();
}
if
(!
ValidationUtil
.
isEmpty
(
useInfo
.
getAddress
()))
{
fullAddress
+=
useInfo
.
getAddress
();
}
Map
<
String
,
Object
>
useInfoMap
=
null
;
if
(!
ValidationUtil
.
isEmpty
(
fieldType
)){
useInfoMap
=
Bean
.
BeantoMap
(
useInfo
);
useInfoMap
.
put
(
"province"
,
useInfo
.
getProvince
()+
"_"
+
useInfo
.
getProvinceName
());
useInfoMap
.
put
(
"city"
,
useInfo
.
getCity
()+
"_"
+
useInfo
.
getCityName
());
useInfoMap
.
put
(
"county"
,
useInfo
.
getCounty
()+
"_"
+
useInfo
.
getCountyName
());
useInfoMap
.
put
(
"street"
,
useInfo
.
getFactoryUseSiteStreet
()+
"_"
+
useInfo
.
getStreetName
());
useInfoMap
.
put
(
"fullAddress"
,
useInfo
.
getProvinceName
()+
useInfo
.
getCityName
()+
useInfo
.
getCountyName
()+
useInfo
.
getStreetName
()+
useInfo
.
getAddress
());
if
(!
ValidationUtil
.
isEmpty
(
province
)){
useInfoMap
.
put
(
"province"
,
province
);
}
if
(!
ValidationUtil
.
isEmpty
(
city
))
{
useInfoMap
.
put
(
"city"
,
city
);
}
if
(!
ValidationUtil
.
isEmpty
(
county
))
{
useInfoMap
.
put
(
"county"
,
county
);
}
if
(!
ValidationUtil
.
isEmpty
(
street
))
{
useInfoMap
.
put
(
"street"
,
street
);
}
if
(!
ValidationUtil
.
isEmpty
(
fullAddress
))
{
useInfoMap
.
put
(
"fullAddress"
,
fullAddress
);
}
useInfoMap
.
put
(
"useinfoSeq"
,
useInfo
.
getSequenceNbr
());
}
else
{
useInfoMap
=
convertCamelToUnderscore
(
useInfo
,
null
);
useInfoMap
.
put
(
"PROVINCE"
,
useInfo
.
getProvince
()+
"_"
+
useInfo
.
getProvinceName
());
useInfoMap
.
put
(
"CITY"
,
useInfo
.
getCity
()+
"_"
+
useInfo
.
getCityName
());
useInfoMap
.
put
(
"COUNTY"
,
useInfo
.
getCounty
()+
"_"
+
useInfo
.
getCountyName
());
useInfoMap
.
put
(
"STREET"
,
useInfo
.
getFactoryUseSiteStreet
()+
"_"
+
useInfo
.
getStreetName
());
useInfoMap
.
put
(
"FULLADDRESS"
,
useInfo
.
getProvinceName
()+
useInfo
.
getCityName
()+
useInfo
.
getCountyName
()+
useInfo
.
getStreetName
()+
useInfo
.
getAddress
());
if
(!
ValidationUtil
.
isEmpty
(
province
)){
useInfoMap
.
put
(
"PROVINCE"
,
province
);
}
if
(!
ValidationUtil
.
isEmpty
(
city
))
{
useInfoMap
.
put
(
"CITY"
,
city
);
}
if
(!
ValidationUtil
.
isEmpty
(
county
))
{
useInfoMap
.
put
(
"COUNTY"
,
county
);
}
if
(!
ValidationUtil
.
isEmpty
(
street
))
{
useInfoMap
.
put
(
"STREET"
,
street
);
}
if
(!
ValidationUtil
.
isEmpty
(
fullAddress
)){
useInfoMap
.
put
(
"FULLADDRESS"
,
fullAddress
);
}
useInfoMap
.
put
(
"USEINFO_SEQ"
,
useInfo
.
getSequenceNbr
());
}
if
(!
useInfoMap
.
isEmpty
()){
...
...
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