package com.jy.framework.mybatis.join;

import com.baomidou.mybatisplus.core.toolkit.StringPool;
import lombok.RequiredArgsConstructor;

@RequiredArgsConstructor
public class QueryColumnAlias extends AbstractSql {

    /**
     * 查询列
     */
    private final AbstractSql abstractSql;

    /**
     * 字段别名
     */
    private final String alias;

    @Override
    protected String format() {
        return abstractSql.format() + StringPool.SPACE + alias;
    }

}
