Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gassafety-progress
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-progress
Commits
98f6de60
Commit
98f6de60
authored
Mar 03, 2022
by
王晓倩
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
大屏标点报警接口调整
parent
2c6df2c8
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
8 deletions
+10
-8
TDeviceInfoMapper.xml
...em/src/main/resources/mapper/system/TDeviceInfoMapper.xml
+6
-5
TSiteStationInfoMapper.xml
...c/main/resources/mapper/system/TSiteStationInfoMapper.xml
+4
-3
No files found.
gassafetyprogress-system/src/main/resources/mapper/system/TDeviceInfoMapper.xml
View file @
98f6de60
...
@@ -65,11 +65,12 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
...
@@ -65,11 +65,12 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
</select>
</select>
<select
id=
"getDeviceInfoAlarmList"
resultType=
"Map"
>
<select
id=
"getDeviceInfoAlarmList"
resultType=
"Map"
>
select a2.device_id as deviceId,
select a3.device_id as deviceId,
a2.device_type as deviceType
a3.device_type as deviceType
from t_detector_info a1
from t_relation_device_detail_info a1
right join t_device_info a2 on a1.device_id = a2.device_id
left join t_detector_info a2 on a1.iot_no = a2.detector_code
where a1.is_del = '0' and a2.is_del = '0' and a1.detector_status = '2'
right join t_device_info a3 on a1.relation_device_id = a3.device_id
where a1.is_del = '0' and a2.is_del = '0' and a3.is_del = '0' and a2.detector_status = '2'
</select>
</select>
<insert
id=
"insertTDeviceInfo"
parameterType=
"TDeviceInfo"
useGeneratedKeys=
"true"
keyProperty=
"deviceId"
>
<insert
id=
"insertTDeviceInfo"
parameterType=
"TDeviceInfo"
useGeneratedKeys=
"true"
keyProperty=
"deviceId"
>
...
...
gassafetyprogress-system/src/main/resources/mapper/system/TSiteStationInfoMapper.xml
View file @
98f6de60
...
@@ -48,9 +48,10 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
...
@@ -48,9 +48,10 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<select
id=
"getSiteStationAlarmList"
resultType=
"Map"
>
<select
id=
"getSiteStationAlarmList"
resultType=
"Map"
>
select a2.site_station_id as siteStationId
select a2.site_station_id as siteStationId
from t_detector_info a1
from t_relation_device_detail_info a1
right join t_site_station_info a2 on a1.site_station_id = a2.site_station_id
left join t_detector_info a2 on a1.iot_no = a2.detector_code
where a1.is_del = '0' and a2.is_del = '0' and a1.detector_status = '2'
right join t_site_station_info a3 on a1.relation_device_id = a3.site_station_id
where a1.is_del = '0' and a2.is_del = '0' and a3.is_del = '0' and a2.detector_status = '2'
</select>
</select>
<insert
id=
"insertTSiteStationInfo"
parameterType=
"TSiteStationInfo"
useGeneratedKeys=
"true"
keyProperty=
"siteStationId"
>
<insert
id=
"insertTSiteStationInfo"
parameterType=
"TSiteStationInfo"
useGeneratedKeys=
"true"
keyProperty=
"siteStationId"
>
...
...
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