优化:优化部分 @Query 的使用

This commit is contained in:
Charles7c 2023-03-04 16:41:31 +08:00
parent 5f1f39d968
commit 304615ea23
3 changed files with 3 additions and 3 deletions

View File

@ -108,6 +108,6 @@ public @interface Query {
/**
* 非空查询例如WHERE `email` IS NOT NULL
*/
NOT_NULL,;
IS_NOT_NULL,;
}
}

View File

@ -206,7 +206,7 @@ public class QueryHelper {
case IS_NULL:
queryWrapper.isNull(columnName);
break;
case NOT_NULL:
case IS_NOT_NULL:
queryWrapper.isNotNull(columnName);
break;
default:

View File

@ -48,7 +48,7 @@ public class OperationLogQuery implements Serializable {
* 操作人
*/
@Schema(description = "操作人")
@Query(property = "createUser", type = Type.EQUAL)
@Query(property = "createUser")
private Long uid;
/**