Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gassafety
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
耿迪迪
gassafety
Commits
4de2ddd6
Commit
4de2ddd6
authored
Aug 13, 2021
by
王晓倩
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
报警详情添加经纬度和管道坐标
parent
560ac275
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
37 additions
and
0 deletions
+37
-0
DeviceAlarmVo.java
.../main/java/com/zehong/system/domain/vo/DeviceAlarmVo.java
+34
-0
TDeviceAlarmServiceImpl.java
...m/zehong/system/service/impl/TDeviceAlarmServiceImpl.java
+3
-0
No files found.
gassafety-system/src/main/java/com/zehong/system/domain/vo/DeviceAlarmVo.java
View file @
4de2ddd6
...
...
@@ -4,6 +4,7 @@ import com.fasterxml.jackson.annotation.JsonFormat;
import
com.zehong.common.core.domain.BaseEntity
;
import
com.zehong.system.domain.TDeviceReportData
;
import
java.math.BigDecimal
;
import
java.util.Date
;
import
java.util.List
;
...
...
@@ -32,6 +33,15 @@ public class DeviceAlarmVo extends BaseEntity
/** 设备编号 */
private
String
deviceCode
;
/** 经度 */
private
BigDecimal
longitude
;
/** 纬度 */
private
BigDecimal
latitude
;
/** 坐标 */
private
String
coordinates
;
/** 物联网编号 */
private
String
iotNo
;
...
...
@@ -102,6 +112,30 @@ public class DeviceAlarmVo extends BaseEntity
this
.
deviceCode
=
deviceCode
;
}
public
BigDecimal
getLongitude
()
{
return
longitude
;
}
public
void
setLongitude
(
BigDecimal
longitude
)
{
this
.
longitude
=
longitude
;
}
public
BigDecimal
getLatitude
()
{
return
latitude
;
}
public
void
setLatitude
(
BigDecimal
latitude
)
{
this
.
latitude
=
latitude
;
}
public
String
getCoordinates
()
{
return
coordinates
;
}
public
void
setCoordinates
(
String
coordinates
)
{
this
.
coordinates
=
coordinates
;
}
public
String
getIotNo
()
{
return
iotNo
;
}
...
...
gassafety-system/src/main/java/com/zehong/system/service/impl/TDeviceAlarmServiceImpl.java
View file @
4de2ddd6
...
...
@@ -78,11 +78,14 @@ public class TDeviceAlarmServiceImpl implements ITDeviceAlarmService
TPipe
pipe
=
tPipeMapper
.
selectTPipeById
(
tDeviceAlarm
.
getDeviceId
());
deviceAlarmVo
.
setDeviceCode
(
pipe
.
getPipeCode
());
deviceAlarmVo
.
setDeviceName
(
pipe
.
getPipeName
());
deviceAlarmVo
.
setCoordinates
(
pipe
.
getCoordinates
());
}
else
{
TDeviceInfo
deviceInfo
=
tDeviceInfoMapper
.
selectTDeviceInfoById
(
tDeviceAlarm
.
getDeviceId
());
deviceAlarmVo
.
setDeviceCode
(
deviceInfo
.
getDeviceCode
());
deviceAlarmVo
.
setDeviceName
(
deviceInfo
.
getDeviceName
());
deviceAlarmVo
.
setIotNo
(
deviceInfo
.
getIotNo
());
deviceAlarmVo
.
setLongitude
(
deviceInfo
.
getLongitude
());
deviceAlarmVo
.
setLatitude
(
deviceInfo
.
getLatitude
());
// 查询当前设备开始报警时间前后一小时的数据
TDeviceReportData
tDeviceReportData
=
new
TDeviceReportData
();
...
...
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