linwe
2024-08-09 8b7258c9427882bb1798f1502eaa35184c6e374e
src/main/java/org/springblade/modules/convenienceHotline/mapper/ConvenienceHotlineMapper.xml
@@ -8,8 +8,27 @@
    <select id="selectConvenienceHotlinePage" resultMap="convenienceHotlineResultMap">
        select * from jczz_convenience_hotline
        <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>