From b1e8a099eb3117bcbd5f2e0c9a2eb0accabd8cbf Mon Sep 17 00:00:00 2001
From: zhongrj <646384940@qq.com>
Date: Tue, 11 Feb 2025 08:56:46 +0800
Subject: [PATCH] 通过风险源点位分析三级防控点查询修改
---
src/main/java/org/springblade/modules/yw/mapper/RescueTeamMapper.xml | 11 +++++++----
1 files changed, 7 insertions(+), 4 deletions(-)
diff --git a/src/main/java/org/springblade/modules/yw/mapper/RescueTeamMapper.xml b/src/main/java/org/springblade/modules/yw/mapper/RescueTeamMapper.xml
index 210405d..957e849 100644
--- a/src/main/java/org/springblade/modules/yw/mapper/RescueTeamMapper.xml
+++ b/src/main/java/org/springblade/modules/yw/mapper/RescueTeamMapper.xml
@@ -41,13 +41,16 @@
<!--自定义分页查询-->
<select id="getStatisticData" resultType="java.util.Map">
SELECT
- case when type=1 then '园区'
- when type =2 then '企业'
- end as type,
+ team_name as type,
count(*) AS num
FROM
yw_rescue_team
- GROUP BY type
+ <where>
+ <if test="rescueTeam.type!=null">
+ and type = #{rescueTeam.type}
+ </if>
+ </where>
+ GROUP BY team_name
</select>
</mapper>
--
Gitblit v1.9.3