Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
eshiled-new
/
ne-shield-trialdrive-admin
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit 55bf12e8
authored
Dec 27, 2023
by
杨林龙
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
优化围栏报警条数查询
1 parent
4d8b953f
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
2 deletions
src/main/resources/mapper/AlarmElectricFenceMapper.xml
src/main/resources/mapper/AlarmElectricFenceMapper.xml
View file @
55bf12e
...
@@ -39,8 +39,17 @@
...
@@ -39,8 +39,17 @@
</sql>
</sql>
<select
id=
"getFenceAlarmCount"
resultType=
"java.lang.Integer"
>
<select
id=
"getFenceAlarmCount"
resultType=
"java.lang.Integer"
>
select count(1) from t_alarm_electric_fence taef
select
where taef.del_flag = 0
count(1)
from t_alarm_electric_fence taef
left join t_vehicle_device tvd on tvd.id = taef.vd_id
left join t_device td on td.sn = tvd.sn
left join t_vehicle tv on tv.id = tvd.vehicle_id
left join t_electric_fence tef on tef.id = taef.fence_id
where tv.del_flag = 0
and taef.del_flag = 0
and tvd.del_flag = 0
and tef.del_flag = 0
<if
test=
"sns != null and sns.size() > 0"
>
<if
test=
"sns != null and sns.size() > 0"
>
and taef.sn IN
and taef.sn IN
<foreach
collection=
"sns"
separator=
","
open=
"("
close=
")"
item=
"item"
>
<foreach
collection=
"sns"
separator=
","
open=
"("
close=
")"
item=
"item"
>
...
...
Write
Preview
Markdown
is supported
Attach a file
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 post a comment