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
7fcade73
Commit
7fcade73
authored
Mar 01, 2022
by
tangwei
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
装备位置增加经纬度
parent
24de7f55
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
51 additions
and
0 deletions
+51
-0
EquipmentDetail.java
...om/yeejoin/equipmanage/common/entity/EquipmentDetail.java
+9
-0
EquipmentSpecificSerivceImpl.java
...quipmanage/service/impl/EquipmentSpecificSerivceImpl.java
+14
-0
wl-3.0.1.xml
...ot-system-equip/src/main/resources/changelog/wl-3.0.1.xml
+28
-0
No files found.
amos-boot-module/amos-boot-module-api/amos-boot-module-equip-api/src/main/java/com/yeejoin/equipmanage/common/entity/EquipmentDetail.java
View file @
7fcade73
...
...
@@ -163,4 +163,13 @@ public class EquipmentDetail extends BaseEntity {
@ApiModelProperty
(
value
=
"位置信息"
)
private
String
area
;
@ApiModelProperty
(
value
=
"经度"
)
@TableField
(
value
=
"longitude"
)
private
Double
longitude
;
@ApiModelProperty
(
value
=
"纬度"
)
@TableField
(
value
=
"latitude"
)
private
Double
latitude
;
}
amos-boot-module/amos-boot-module-biz/amos-boot-module-equip-biz/src/main/java/com/yeejoin/equipmanage/service/impl/EquipmentSpecificSerivceImpl.java
View file @
7fcade73
...
...
@@ -1152,6 +1152,20 @@ public class EquipmentSpecificSerivceImpl extends ServiceImpl<EquipmentSpecificM
equipmentDetail
.
setEquipmentName
(
equipment
.
getName
());
equipmentSpecific
.
setEquipmentCode
(
equipmentCode
);
equipmentSpecific
.
setName
(
equipmentDetail
.
getName
());
if
(
StringUtils
.
isNotEmpty
(
equipmentDetail
.
getArea
()))
{
String
[]
addressData
=
equipmentDetail
.
getArea
().
split
(
"@address@"
);
if
(
addressData
.
length
>
1
)
{
equipmentDetail
.
setArea
(
addressData
[
0
]);
JSONObject
langLatObj
=
JSON
.
parseObject
(
addressData
[
1
]);
if
(
StringUtils
.
isNotEmpty
(
langLatObj
.
getString
(
"longitude"
)))
{
equipmentDetail
.
setLongitude
(
Double
.
valueOf
(
langLatObj
.
getString
(
"longitude"
)));
}
if
(
StringUtils
.
isNotEmpty
(
langLatObj
.
getString
(
"latitude"
)))
{
equipmentDetail
.
setLatitude
(
Double
.
valueOf
(
langLatObj
.
getString
(
"latitude"
)));
}
}
}
}
Long
warehouseStructureId
=
null
;
if
(!
ObjectUtils
.
isEmpty
(
equipmentSpecific
.
getStockDetail
()))
{
...
...
amos-boot-system-equip/src/main/resources/changelog/wl-3.0.1.xml
View file @
7fcade73
...
...
@@ -2618,4 +2618,31 @@
</sql>
</changeSet>
<changeSet
author=
"tw"
id=
"20220301-1"
>
<preConditions
onFail=
"MARK_RAN"
>
<not>
<columnExists
tableName=
"wl_equipment_detail"
columnName=
"longitude"
/>
</not>
</preConditions>
<comment>
wl_equipment_detail add `longitude`
</comment>
<sql>
ALTER TABLE `wl_equipment_detail` ADD COLUMN `longitude` double(18,14) DEFAULT NULL COMMENT '经度'
</sql>
</changeSet>
<changeSet
author=
"tw"
id=
"20220301-2"
>
<preConditions
onFail=
"MARK_RAN"
>
<not>
<columnExists
tableName=
"wl_equipment_detail"
columnName=
"latitude"
/>
</not>
</preConditions>
<comment>
wl_equipment_detail add `latitude`
</comment>
<sql>
ALTER TABLE `wl_equipment_detail` ADD COLUMN `latitude` double(18,14) DEFAULT NULL COMMENT '纬度'
</sql>
</changeSet>
</databaseChangeLog>
\ No newline at end of file
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