mitao
2024-07-08 022a7ff7abf82cd2546e18071ade5228b4e2339f
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
<?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.sinata.modular.system.dao.MemUserDeleteMapper">
 
    <select id="getMemUserDeleteList" resultType="com.sinata.modular.system.model.MemUserDelete">
        SELECT
            md.*, mu.nick_name userName
        FROM
        mem_user_delete md
        LEFT JOIN mem_user mu ON mu.id = md.user_id
        <where>
            <if test="beginTime != null and beginTime != ''">
                <![CDATA[ AND md.create_time >= CONCAT(#{beginTime},' 00:00:00')  ]]>
            </if>
            <if test="endTime != null and endTime != ''">
                <![CDATA[ AND md.create_time <= CONCAT(#{endTime},' 23:59:59')  ]]>
            </if>
            <if test="condition != null and condition !=''">
                and mu.nick_name like CONCAT('%',#{condition},'%')
            </if>
            <if test="status != null">
                and md.status = #{status}
            </if>
        </where>
        ORDER BY md.status ASC
    </select>
 
</mapper>