123456789101112131415161718192021222324 |
- <?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.yunzhi.nanyang.mapper.TaPersonMapper">
-
- <select id="getPageBy" resultType="com.yunzhi.nanyang.entity.TaPerson">
- SELECT
- *
- FROM
- ta_person t
- WHERE
- t.`status` > -1
- <if test="identity != null and identity != ''">
- AND t.identity = #{identity}
- </if>
- <if test="nickName != null and nickName != ''">
- AND t.nick_name LIKE CONCAT( '%', #{nickName}, '%' )
- </if>
- <if test="phone != null and phone != ''">
- AND t.phone LIKE CONCAT( '%', #{phone}, '%' )
- </if>
- ORDER BY
- t.create_date DESC
- </select>
- </mapper>
|