diff --git a/gan-modules/ruoyi-gan/src/main/resources/mapper/app/AppInformMapper.xml b/gan-modules/ruoyi-gan/src/main/resources/mapper/app/AppInformMapper.xml index 7e9233e..9f62aad 100644 --- a/gan-modules/ruoyi-gan/src/main/resources/mapper/app/AppInformMapper.xml +++ b/gan-modules/ruoyi-gan/src/main/resources/mapper/app/AppInformMapper.xml @@ -37,9 +37,11 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" LEFT JOIN app_user u on u.id = a.user_id LEFT JOIN app_user au on au.id = a.by_user_id - and user_id = #{userId} - and by_user_id = #{byUserId} - and content = #{content} + and a.user_id = #{userId} + and u.username like concat('%',#{username},'%') + and au.username like concat('%',#{byUsername},'%') + and a.by_user_id = #{byUserId} + and a.content like concat('%',#{content},'%')