refactor: 优化通用查询注解多字段模糊查询

This commit is contained in:
2023-09-12 22:33:36 +08:00
parent 36fda57d49
commit 375810772a
4 changed files with 10 additions and 10 deletions

View File

@@ -43,10 +43,10 @@ public @interface Query {
QueryTypeEnum type() default QueryTypeEnum.EQUAL;
/**
* 多属性模糊查询,仅支持 String 类型属性,多个属性之间用逗号分隔
* 多属性模糊查询,仅支持 String 类型属性
* <p>
* 例如:@Query(blurry = "username,email") 表示根据用户名和邮箱模糊查询
* 例如:@Query(blurry = {"username", "email"}) 表示根据用户名和邮箱模糊查询
* </p>
*/
String blurry() default "";
String[] blurry() default {};
}