mirror of
https://github.com/continew-org/continew-admin.git
synced 2025-09-09 20:57:21 +08:00
优化:优化部分 @Query 的使用
This commit is contained in:
@@ -108,6 +108,6 @@ public @interface Query {
|
||||
/**
|
||||
* 非空查询,例如:WHERE `email` IS NOT NULL
|
||||
*/
|
||||
NOT_NULL,;
|
||||
IS_NOT_NULL,;
|
||||
}
|
||||
}
|
||||
|
@@ -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:
|
||||
|
@@ -48,7 +48,7 @@ public class OperationLogQuery implements Serializable {
|
||||
* 操作人
|
||||
*/
|
||||
@Schema(description = "操作人")
|
||||
@Query(property = "createUser", type = Type.EQUAL)
|
||||
@Query(property = "createUser")
|
||||
private Long uid;
|
||||
|
||||
/**
|
||||
|
Reference in New Issue
Block a user