com.github.javaclub.base.domain.query.SysLogQuery Maven / Gradle / Ivy
/* Automatic generated by CrudCodeGenerator wirtten by Gerald Chen
*
* @(#)SysLogQuery.java 2023-09-06
*
* Copyright (c) 2023 - 2099. All Rights Reserved.
*
*/
package com.github.javaclub.base.domain.query;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.github.javaclub.base.domain.SysLog;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.EqualsAndHashCode;
/**
* SysLogQuery 查询条件
*
* @version $Id: SysLogQuery.java 2023-09-06 19:11:11 Exp $
*/
@Data
@Builder
@AllArgsConstructor
@EqualsAndHashCode(callSuper = true)
@ApiModel(description = "SysLog 查询条件")
public class SysLogQuery extends BaseQuery {
private static final long serialVersionUID = 1693998671704L;
@ApiModelProperty(value = "用户ID精确匹配")
private Long userId;
@ApiModelProperty(value = "用户名 LIKE 匹配")
private String usernameLike;
@ApiModelProperty(value = "用户操作 LIKE 匹配")
private String operationLike;
@ApiModelProperty(value = "操作类型: [1-查看 2-创建 3-修改 4-删除 5-登入登出]")
private Integer actionType;
public SysLogQuery() {
}
public QueryWrapper queryWrapper() {
QueryWrapper q = super.buildBaseQuery();
q.eq(null != getUserId(), "user_id", getUserId());
q.eq(null != getActionType(), "action_type", getActionType());
q.like(null != getUsernameLike(), "username", getUsernameLike());
q.like(null != getOperationLike(), "operation", getOperationLike());
return q;
}
}