From 421e8fab9d8aab28173c8eaaa3599438d172acdf Mon Sep 17 00:00:00 2001 From: linhw <5331581+linhw11@user.noreply.gitee.com> Date: Tue, 28 May 2024 19:29:35 +0800 Subject: [PATCH] ~ --- .../src/main/resources/mapper/app/AppInformMapper.xml | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) 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},'%')