package com.jwipc.sys.model.query;

import com.jwipc.db.DbUtil;
import com.jwipc.query.BasePageQuery;
import lombok.Data;

import java.io.Serial;
import java.util.List;

/**
 * <p> </p>
 *
 * @author ZhangJie
 * @version 1.0
 * @since JDK 1.8
 */
@Data
public class UserListQuery extends BasePageQuery {

    @Serial
    private static final long serialVersionUID = -8194800228068367026L;
    private String username;
    private String accountname;
    private String role;
    private String roleCodes;
    private String purchaseGroupId;
    private Integer userType;
    private String supplierId;

    public List<String> getRoleIdList() {
        return DbUtil.toList(this.role);
    }
}
