public interface TableSegment
extends com.baomidou.mybatisplus.core.conditions.ISqlSegment
表sql片段,表明作为查询主体的一张数据库物理/逻辑表。
约定,若表A为存在对应实体的物理表,且本次查询中别名为a,则:
getTable() 获取:“A”;getTableWithAlisa() 获取:“A a”,若不存在别名则获取“A”;getTableIfNonAlisa() 获取:“a”,若不存在别名则获取“A”;ISqlSegment.getSqlSegment() 获取where后的查询条件片段getTable() 获取:“(select id, name from B)”;getTableWithAlisa() 获取:“(select id, name from B) b”,若不存在别名则获取“(select id, name from B)”;getTableIfNonAlisa() 获取:“b”,若不存在别名则获取“(select id, name from B)”;ISqlSegment.getSqlSegment() 获取where后的查询条件片段String getTable()
String getAlisa()
void setAlisa(String alisa)
alisa - 表别名default String getTableWithAlisa()
default String getTableIfNonAlisa()
Copyright © 2022. All rights reserved.