init
This commit is contained in:
@@ -11,6 +11,22 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||
<result property="isWatch" column="is_watch"/>
|
||||
<result property="createTime" column="create_time"/>
|
||||
</resultMap>
|
||||
<select id="pageApp" resultType="com.ruoyi.cai.dto.app.vo.UserStarOrVisitorList">
|
||||
select
|
||||
t1.create_time as happen_time,t1.is_watch,
|
||||
t2.avatar,t2.gender,t2.city,t2.nickname,t2.usercode,t2.age
|
||||
from cai_user_visitor t1
|
||||
join cai_user t2 on t1.user_id = t2.id
|
||||
<where>
|
||||
<if test="query.type == 1">
|
||||
and t1.visitor_id = #{query.userId}
|
||||
</if>
|
||||
<if test="query.type == 2">
|
||||
and t1.user_id = #{query.userId}
|
||||
</if>
|
||||
</where>
|
||||
order by create_time desc
|
||||
</select>
|
||||
|
||||
|
||||
</mapper>
|
||||
|
||||
Reference in New Issue
Block a user