Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in / Register
Toggle navigation
P
pingshan-ranqi
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
yaqizhang
pingshan-ranqi
Commits
04f6991e
Commit
04f6991e
authored
Nov 11, 2021
by
王晓倩
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
泽宏云设备信息推送接口调整
parent
28fd5aa1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
1 deletion
+8
-1
TDetectorInfoController.java
...hong/web/controller/detector/TDetectorInfoController.java
+8
-1
No files found.
gassafety-admin/src/main/java/com/zehong/web/controller/detector/TDetectorInfoController.java
View file @
04f6991e
...
...
@@ -9,6 +9,7 @@ import java.util.List;
import
com.alibaba.fastjson.JSONArray
;
import
com.alibaba.fastjson.JSONObject
;
import
com.fasterxml.jackson.databind.util.BeanUtil
;
import
com.zehong.common.enums.ResultEnum
;
import
com.zehong.common.exception.IOCException
;
import
com.zehong.system.domain.TDetectorReportData
;
...
...
@@ -21,6 +22,7 @@ import com.zehong.system.service.ITDetectorReportDataService;
import
com.zehong.system.service.ITDetectorUserService
;
import
io.swagger.annotations.ApiOperation
;
import
lombok.extern.slf4j.Slf4j
;
import
org.springframework.beans.BeanUtils
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.ui.ModelMap
;
import
org.springframework.util.StringUtils
;
...
...
@@ -181,7 +183,7 @@ public class TDetectorInfoController extends BaseController
}
TDetectorInfo
tDetectorInfo
=
new
TDetectorInfo
();
tDetectorInfo
.
setUserId
(
tDetectorUser
.
getUserId
());
tDetectorInfo
.
setUserId
(
tDetectorUser
List
.
get
(
0
)
.
getUserId
());
tDetectorInfo
.
setDetectorName
(
deviceName
);
tDetectorInfo
.
setDetectorCode
(
deviceNo
);
tDetectorInfo
.
setDetectorType
(
deviceType
);
...
...
@@ -214,6 +216,7 @@ public class TDetectorInfoController extends BaseController
detector
.
setIsDel
(
"0"
);
List
<
TDetectorInfo
>
detectorList
=
tDetectorInfoService
.
selectTDetectorInfoList
(
detector
);
if
(
detectorList
.
size
()
>
0
){
tDetectorInfo
.
setDetectorId
(
detectorList
.
get
(
0
).
getDetectorId
());
tDetectorInfoService
.
updateTDetectorInfo
(
tDetectorInfo
);
continue
;
}
...
...
@@ -233,6 +236,7 @@ public class TDetectorInfoController extends BaseController
deviceName
=
obj
.
getString
(
"deviceName"
);
deviceNo
=
obj
.
getString
(
"deviceNo"
);
deviceType
=
obj
.
getString
(
"deviceType"
);
medium
=
obj
.
getString
(
"medium"
);
address
=
obj
.
getString
(
"address"
);
longitude
=
obj
.
getString
(
"longitude"
);
latitude
=
obj
.
getString
(
"latitude"
);
...
...
@@ -268,6 +272,9 @@ public class TDetectorInfoController extends BaseController
if
(!
""
.
equals
(
deviceName
))
{
tDetectorInfo
.
setDetectorName
(
deviceName
);
}
if
(!
""
.
equals
(
medium
))
{
tDetectorInfo
.
setMedium
(
medium
);
}
if
(!
""
.
equals
(
address
))
{
tDetectorInfo
.
setDetectorAddr
(
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