| | |
| | | */ |
| | | package org.springblade.modules.convenienceHotline.mapper; |
| | | |
| | | import io.lettuce.core.dynamic.annotation.Param; |
| | | import org.springblade.modules.convenienceHotline.entity.ConvenienceHotlineEntity; |
| | | import org.springblade.modules.convenienceHotline.vo.ConvenienceHotlineVO; |
| | | import com.baomidou.mybatisplus.core.mapper.BaseMapper; |
| | |
| | | * @param convenienceHotline |
| | | * @return |
| | | */ |
| | | List<ConvenienceHotlineVO> selectConvenienceHotlinePage(IPage page, ConvenienceHotlineVO convenienceHotline); |
| | | List<ConvenienceHotlineVO> selectConvenienceHotlinePage(IPage page, @Param("convenienceHotline") ConvenienceHotlineVO convenienceHotline); |
| | | |
| | | |
| | | } |
| | |
| | | |
| | | |
| | | <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> |