优化:优化部分 @Query 的使用
This commit is contained in:
parent
5f1f39d968
commit
304615ea23
@ -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;
|
||||
|
||||
/**
|
||||
|
Loading…
Reference in New Issue
Block a user