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
dd510685
Commit
dd510685
authored
Nov 21, 2024
by
麻笑宇
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
24945 大屏-总览-中屏-陕西省-使用单位-详情窗口-单位地址为空的显示为null/null/null
bug修改
parent
59bfea75
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
19 additions
and
1 deletion
+19
-1
EnterpriseBizByTCMServiceImpl.java
...istcs/biz/service/impl/EnterpriseBizByTCMServiceImpl.java
+19
-1
No files found.
amos-boot-system-tzs/amos-boot-module-statistics/amos-boot-module-statistics-biz/src/main/java/com/yeejoin/amos/boot/module/statistcs/biz/service/impl/EnterpriseBizByTCMServiceImpl.java
View file @
dd510685
package
com
.
yeejoin
.
amos
.
boot
.
module
.
statistcs
.
biz
.
service
.
impl
;
package
com
.
yeejoin
.
amos
.
boot
.
module
.
statistcs
.
biz
.
service
.
impl
;
import
cn.hutool.core.util.StrUtil
;
import
com.alibaba.fastjson.JSON
;
import
com.alibaba.fastjson.JSON
;
import
com.alibaba.fastjson.JSONObject
;
import
com.alibaba.fastjson.JSONObject
;
import
com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper
;
import
com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper
;
...
@@ -134,7 +135,24 @@ public class EnterpriseBizByTCMServiceImpl {
...
@@ -134,7 +135,24 @@ public class EnterpriseBizByTCMServiceImpl {
resultMap
.
remove
(
"regUnitInfoDto"
);
resultMap
.
remove
(
"regUnitInfoDto"
);
resultMap
.
remove
(
"tzsBaseInstitution"
);
resultMap
.
remove
(
"tzsBaseInstitution"
);
resultMap
.
put
(
"unitAddress"
,
resultMap
.
get
(
"province"
)
+
"/"
+
resultMap
.
get
(
"city"
)
+
"/"
+
resultMap
.
get
(
"district"
));
String
unitAddress
=
""
;
if
(
StrUtil
.
isNotBlank
(
resultMap
.
get
(
"province"
)+
""
)
&&
!
"null"
.
equals
(
resultMap
.
get
(
"province"
)+
""
)){
unitAddress
+=
resultMap
.
get
(
"province"
);
}
if
(
StrUtil
.
isNotBlank
(
resultMap
.
get
(
"city"
)+
""
)
&&
!
"null"
.
equals
(
resultMap
.
get
(
"city"
)+
""
)){
unitAddress
+=
"/"
+
resultMap
.
get
(
"city"
);
}
if
(
StrUtil
.
isNotBlank
(
resultMap
.
get
(
"district"
)+
""
)
&&
!
"null"
.
equals
(
resultMap
.
get
(
"district"
)+
""
)){
unitAddress
+=
"/"
+
resultMap
.
get
(
"district"
);
}
// 确保不以斜杠开始
if
(
unitAddress
.
startsWith
(
"/"
))
{
unitAddress
=
unitAddress
.
substring
(
1
);
}
if
(
StrUtil
.
isNotBlank
(
unitAddress
))
{
resultMap
.
put
(
"unitAddress"
,
unitAddress
);
}
Map
<
String
,
Object
>
longitudeLatitudeMap
=
new
HashMap
<>();
Map
<
String
,
Object
>
longitudeLatitudeMap
=
new
HashMap
<>();
longitudeLatitudeMap
.
put
(
"address"
,
resultMap
.
get
(
"address"
));
longitudeLatitudeMap
.
put
(
"address"
,
resultMap
.
get
(
"address"
));
...
...
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