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