diff --git a/gan-modules/ruoyi-gan/src/main/resources/mapper/app/AppUserDynamicMapper.xml b/gan-modules/ruoyi-gan/src/main/resources/mapper/app/AppUserDynamicMapper.xml index 22ebf97..760999c 100644 --- a/gan-modules/ruoyi-gan/src/main/resources/mapper/app/AppUserDynamicMapper.xml +++ b/gan-modules/ruoyi-gan/src/main/resources/mapper/app/AppUserDynamicMapper.xml @@ -56,16 +56,16 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" left join app_user u on u.id = a.user_id left join app_town t on t.id = a.address - and user_id = #{userId} - and username like concat('%',#{username},'%') - and content = #{content} - and video_url = #{videoUrl} - and topic_id like concat('%',#{topicId},'%') - and address = #{address} - and privacy_status = #{privacyStatus} - and updateBy = #{updateBy} - and is_top = #{isTop} - and is_member = #{isMember} + and a.user_id = #{userId} + and u.username like concat('%',#{username},'%') + and a.content = #{content} + and a.video_url = #{videoUrl} + and a.topic_id like concat('%',#{topicId},'%') + and a.address = #{address} + and a.privacy_status = #{privacyStatus} + and a.updateBy = #{updateBy} + and a.is_top = #{isTop} + and u.is_member = #{isMember} order by a.is_top,a.create_time