<?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.yami.trading.dao.user.W8BENMapper">
|
|
|
<select id="listUser" resultType="com.yami.trading.bean.user.dto.W8BENDto">
|
SELECT w.*,u.user_name FROM `tz_user_w8ben` w
|
LEFT JOIN tz_user u ON u.user_id=w.user_id
|
where 1=1
|
<if test="userName!=null and userName!=''">
|
and u.user_name like CONCAT('%', #{userName}, '%')
|
|
</if>
|
order by w.create_time desc
|
</select>
|
|
|
</mapper>
|