From f840bd182304ca4bf0a4e9331ff289b22813b28f Mon Sep 17 00:00:00 2001 From: wans <747101512@qq.com> Date: Fri, 29 Apr 2022 11:11:12 +0800 Subject: [PATCH] =?UTF-8?q?=E6=94=B6=E4=BB=B6=E7=AE=B1=E6=B7=BB=E5=8A=A0?= =?UTF-8?q?=E6=A3=80=E7=B4=A2=E6=9D=A1=E4=BB=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/main/resources/mybatis/mapper/mail/mail-mapper.xml | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/main/resources/mybatis/mapper/mail/mail-mapper.xml b/src/main/resources/mybatis/mapper/mail/mail-mapper.xml index 1d9dc14..dc3835b 100644 --- a/src/main/resources/mybatis/mapper/mail/mail-mapper.xml +++ b/src/main/resources/mybatis/mapper/mail/mail-mapper.xml @@ -125,6 +125,13 @@ FIND_IN_SET(#{userId}, copy_for_ids) OR FIND_IN_SET(#{userId}, secret_ids) + + AND ( + recipient_names like CONCAT('%', CONCAT(#{keywords}, '%')) + OR + title like CONCAT('%', CONCAT(#{keywords}, '%')) + ) + ORDER BY gmt_create DESC