|
@@ -6,17 +6,18 @@ import com.baomidou.mybatisplus.annotation.TableField;
|
|
|
import com.baomidou.mybatisplus.core.toolkit.LambdaUtils;
|
|
|
import com.baomidou.mybatisplus.core.toolkit.StringPool;
|
|
|
import com.baomidou.mybatisplus.core.toolkit.support.SFunction;
|
|
|
-import lombok.AllArgsConstructor;
|
|
|
import org.apache.ibatis.reflection.property.PropertyNamer;
|
|
|
|
|
|
import java.lang.reflect.Field;
|
|
|
|
|
|
-@SuppressWarnings("UnusedReturnValue")
|
|
|
-@AllArgsConstructor
|
|
|
public class Select<T> {
|
|
|
|
|
|
private final Sql<T> sql;
|
|
|
|
|
|
+ protected Select(Sql<T> sql) {
|
|
|
+ this.sql = sql;
|
|
|
+ }
|
|
|
+
|
|
|
public <S, V> Select<T> select(SFunction<S, V> function) {
|
|
|
sql.selectList.add(sql.getSqlFieldName(function));
|
|
|
return this;
|