com.circustar.mybatis_accessor.model.QueryGroupByModel Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of mybatis-accessor Show documentation
Show all versions of mybatis-accessor Show documentation
enhancement based on mybatis plus
The newest version!
package com.circustar.mybatis_accessor.model;
import com.circustar.mybatis_accessor.annotation.dto.QueryGroupBy;
import org.springframework.util.StringUtils;
public class QueryGroupByModel {
private String expression;
public QueryGroupByModel(String expression) {
this.expression = expression;
}
public QueryGroupByModel(QueryGroupBy queryGroupBy, String tableName, String columnName) {
if(StringUtils.isEmpty(queryGroupBy.expression())) {
this.expression = tableName + "." + columnName;
} else {
this.expression = queryGroupBy.expression();
}
}
public String getExpression() {
return expression;
}
public void setExpression(String expression) {
this.expression = expression;
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy