<?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>
|