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
3d0c76b1
Commit
3d0c76b1
authored
Jun 30, 2022
by
zhangsen
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
警情数量带过滤条件bug
parent
1a0f5c77
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
4 deletions
+6
-4
FireStationInfoMapper.xml
...s-api/src/main/resources/mapper/FireStationInfoMapper.xml
+6
-4
No files found.
amos-boot-module/amos-boot-module-api/amos-boot-module-ccs-api/src/main/resources/mapper/FireStationInfoMapper.xml
View file @
3d0c76b1
...
@@ -96,14 +96,15 @@
...
@@ -96,14 +96,15 @@
</select>
</select>
<select
id=
"queryAlarmCountByDateAndCode"
resultType=
"java.lang.Integer"
>
<select
id=
"queryAlarmCountByDateAndCode"
resultType=
"java.lang.Integer"
>
select count(*) from asf_fire_equipment_signal_log
select count(esl.id) from asf_fire_station_info asi
left join asf_fire_equipment_signal_log esl on asi.code = esl.station_code
<where>
<where>
1 = 1
1 = 1
<if
test=
"stationCode != null and stationCode != ''"
>
<if
test=
"stationCode != null and stationCode != ''"
>
and station_code = #{stationCode,jdbcType=VARCHAR}
and
esl.
station_code = #{stationCode,jdbcType=VARCHAR}
</if>
</if>
<if
test=
"date != null and date != ''"
>
<if
test=
"date != null and date != ''"
>
and confirm_date like concat(#{date,jdbcType=VARCHAR},'%')
and
esl.
confirm_date like concat(#{date,jdbcType=VARCHAR},'%')
</if>
</if>
</where>
</where>
</select>
</select>
...
@@ -112,7 +113,8 @@
...
@@ -112,7 +113,8 @@
select
select
(SELECT
(SELECT
IFNULL(count(s.id),0)
IFNULL(count(s.id),0)
FROM `asf_fire_equipment_signal_log` s
FROM asf_fire_station_info asi
LEFT JOIN `asf_fire_equipment_signal_log` s ON asi.code = s.station_code
<where>
<where>
<if
test=
"stationCode != null and stationCode != ''"
>
<if
test=
"stationCode != null and stationCode != ''"
>
and s.station_code = #{stationCode}
and s.station_code = #{stationCode}
...
...
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