<?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="org.springblade.modules.convenienceHotline.mapper.ConvenienceHotlineMapper">
|
|
<!-- 通用查询映射结果 -->
|
<resultMap id="convenienceHotlineResultMap" type="org.springblade.modules.convenienceHotline.entity.ConvenienceHotlineEntity">
|
</resultMap>
|
|
|
<select id="selectConvenienceHotlinePage" resultMap="convenienceHotlineResultMap">
|
<include refid="selectConvenienceHotline"/>
|
<where>
|
<if test="convenienceHotline.id != null "> and id = #{convenienceHotline.id}</if>
|
<if test="convenienceHotline.name != null and convenienceHotline.name != ''"> and name like concat('%', #{convenienceHotline.name},'%')</if>
|
<if test="convenienceHotline.telephone != null and convenienceHotline.telephone != ''"> and telephone like
|
concat ('%', #{convenienceHotline.telephone},'%') </if>
|
<if test="convenienceHotline.remark != null and convenienceHotline.remark != ''"> and remark = #{convenienceHotline.remark}</if>
|
</where>
|
</select>
|
|
|
<sql id="selectConvenienceHotline">
|
select
|
id,
|
name,
|
telephone,
|
remark
|
from
|
jczz_convenience_hotline
|
</sql>
|
|
|
|
</mapper>
|