cn.cliveyuan.robin.base.condition.LambdaCriteria Maven / Gradle / Ivy
/*
* Copyright (c) 2020 Clive Yuan ([email protected]).
*/
package cn.cliveyuan.robin.base.condition;
import cn.cliveyuan.robin.base.support.SFunction;
import cn.cliveyuan.robin.base.util.LambdaUtils;
/**
* Lambda条件
*
* @author Clive Yuan
* @date 2020/10/29
*/
public class LambdaCriteria extends GeneratedCriteria, LambdaCriteria> {
@Override
protected String columnToString(SFunction column) {
return LambdaUtils.getFieldName(column);
}
public LambdaCriteria eq(String column, String val) {
this.addCriterion(column, val, SqlKeyword.EQ);
return this;
}
}