| 123456789101112131415161718192021222324252627282930 |
- <?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.template.mapper.WelcomeAccountMapper">
- <select id="listAccount" resultType="com.template.model.vo.WelcomeAccountVo">
- SELECT
- wa.*
- FROM
- `welcome_account` wa
- LEFT JOIN welcome_role wr ON wr.id = wa.role_id
- AND wr.deleted = 0
- WHERE
- wa.deleted = 0
- <if test="status != null and status != ''">
- and wa.status = #{status}
- </if>
- <if test="keyWord != null and keyWord != ''">
- and wa.name like '%' #{keyWord} '%'
- </if>
- <if test="startTime != null and startTime != '' and endTime != null and endTime != '' ">
- and wa.create_time >= #{startTime} and #{endTime} >= wa.create_time
- </if>
- ORDER BY
- wa.create_time
- </select>
- </mapper>
|