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 8de7b0c..1a9f51f 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 @@ -64,7 +64,11 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" left join app_town t on t.id = a.town_id and a.user_id = #{userId} - and u.username like concat('%',#{username},'%') + and + (u.username like concat('%',#{username},'%') + or a.content like concat('%',#{username},'%') + ) + and a.content like concat('%',#{content},'%') and a.video_url = #{videoUrl} and a.topic_id like concat('%',#{topicId},'%')