<?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.nq.dao.UserOptionLogMapper">
|
|
<select id="selective" resultType="com.nq.vo.user.UserOptionLogVO">
|
SELECT
|
t1.*,
|
t2.accect_type AS userAccectType,
|
t3.real_name AS userName
|
FROM
|
user_option_log t1
|
LEFT JOIN user_assets t2 ON t1.user_accect_id = t2.id
|
LEFT JOIN `user` t3 ON t1.user_id = t3.id
|
where 1=1
|
<if test="userId!=null and userId!=''">
|
and t1.user_id = #{userId}
|
</if>
|
order by create_time desc
|
</select>
|
|
</mapper>
|