<?xml version="1.0" encoding="UTF-8" ?>
|
<!DOCTYPE mapper
|
PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
<mapper namespace="com.gkhy.safePlatform.emergency.repository.EmergencyTeamInfoRepository">
|
|
<resultMap type="com.gkhy.safePlatform.emergency.entity.EmergencyTeamInfoPageDO" id="pageResult">
|
<id column="id" property="id" jdbcType="BIGINT"/>
|
<result column="team_level" property="teamLevel" />
|
<result column="team_name" property="teamName" />
|
<result column="principal_phone" property="principalPhone" />
|
<result column="team_desc" property="teamDesc" />
|
</resultMap>
|
|
<select id="selectEmergencyTeamList" resultMap="pageResult">
|
select id,`team_level`,`team_name`,`principal_phone`,`team_desc` from emergency_team where del_flag = 0
|
<if test="query.teamName != null and query.teamName != ''"> and `team_name` like concat('%', #{query.teamName}, '%')</if>
|
<if test="query.teamLevel != null and query.teamLevel != ''"> and `team_level` = #{query.teamLevel}</if>
|
</select>
|
|
</mapper>
|