linwe
2024-08-09 8b7258c9427882bb1798f1502eaa35184c6e374e
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
<?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>