All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.github.javaclub.base.domain.query.SysRoleQuery Maven / Gradle / Ivy

/* Automatic generated by CrudCodeGenerator wirtten by Gerald Chen
 *
 * @(#)SysRoleQuery.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.SysRole;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * SysRoleQuery 查询条件
 *
 * @version $Id: SysRoleQuery.java 2023-09-06 19:11:11 Exp $
 */
@Data
@Builder
@AllArgsConstructor
@EqualsAndHashCode(callSuper = true)
@ApiModel(description = "SysRole 查询条件")
public class SysRoleQuery extends BaseQuery {

	private static final long serialVersionUID = 1693998671714L;
	
	
	@ApiModelProperty(value = "角色名称 LIKE 匹配")
	private String roleNameLike;

	
	public SysRoleQuery() {
	}

	public QueryWrapper queryWrapper() {
		QueryWrapper q = super.buildBaseQuery();
		
		q.like(null != getRoleNameLike(), "role_name", getRoleNameLike());

		return q;
	}
	
}





© 2015 - 2024 Weber Informatics LLC | Privacy Policy