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
4cede486
Commit
4cede486
authored
Mar 31, 2022
by
KeYong
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
更新
parent
6243dd92
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
EquipmentDetailServiceImpl.java
.../equipmanage/service/impl/EquipmentDetailServiceImpl.java
+4
-4
No files found.
amos-boot-module/amos-boot-module-biz/amos-boot-module-equip-biz/src/main/java/com/yeejoin/equipmanage/service/impl/EquipmentDetailServiceImpl.java
View file @
4cede486
...
...
@@ -10,13 +10,13 @@ import com.yeejoin.amos.boot.biz.common.dto.OrgMenuDto;
import
com.yeejoin.equipmanage.common.entity.*
;
import
com.yeejoin.equipmanage.common.enums.BillContentEnum
;
import
com.yeejoin.equipmanage.common.enums.FileTypeEnum
;
import
com.yeejoin.equipmanage.common.utils.StringUtil
;
import
com.yeejoin.equipmanage.mapper.*
;
import
com.yeejoin.equipmanage.service.*
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.beans.factory.annotation.Value
;
import
org.springframework.stereotype.Service
;
import
org.typroject.tyboot.core.foundation.utils.Bean
;
import
com.baomidou.mybatisplus.core.toolkit.StringUtils
;
import
java.util.ArrayList
;
import
java.util.HashMap
;
import
java.util.List
;
...
...
@@ -189,15 +189,15 @@ public class EquipmentDetailServiceImpl extends ServiceImpl<EquipmentDetailMappe
}
//2.更新Detail表
if
(
StringUtil
s
.
isNotEmpty
(
equipmentDetail
.
getArea
()))
{
if
(
StringUtil
.
isNotEmpty
(
equipmentDetail
.
getArea
()))
{
String
[]
addressData
=
equipmentDetail
.
getArea
().
split
(
"@address@"
);
if
(
addressData
.
length
>
1
)
{
equipmentDetail
.
setArea
(
addressData
[
0
]);
JSONObject
langLatObj
=
JSON
.
parseObject
(
addressData
[
1
]);
if
(
StringUtil
s
.
isNotEmpty
(
langLatObj
.
getString
(
"longitude"
)))
{
if
(
StringUtil
.
isNotEmpty
(
langLatObj
.
getString
(
"longitude"
)))
{
equipmentDetail
.
setLongitude
(
Double
.
valueOf
(
langLatObj
.
getString
(
"longitude"
)));
}
if
(
StringUtil
s
.
isNotEmpty
(
langLatObj
.
getString
(
"latitude"
)))
{
if
(
StringUtil
.
isNotEmpty
(
langLatObj
.
getString
(
"latitude"
)))
{
equipmentDetail
.
setLatitude
(
Double
.
valueOf
(
langLatObj
.
getString
(
"latitude"
)));
}
}
...
...
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