| | |
| | | <if test="rescueTeam.firmId!=null"> |
| | | and yrt.firm_id = #{rescueTeam.firmId} |
| | | </if> |
| | | <if test="rescueTeam.type!=null"> |
| | | and yrt.type = #{rescueTeam.type} |
| | | </if> |
| | | <if test="rescueTeam.perInCha!=null and rescueTeam.perInCha!=''"> |
| | | and yrt.per_in_cha like concat('%',#{rescueTeam.perInCha},'%') |
| | | </if> |
| | |
| | | <!--自定义分页查询--> |
| | | <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> |