top.doudou.common.tool.datebase.jpa.dto.ConditionSqlDto Maven / Gradle / Ivy
package top.doudou.common.tool.datebase.jpa.dto;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import java.io.Serializable;
import java.util.Map;
/**
* @Description 查询实体类
* @Author 傻男人 <[email protected]>
* @Date 2020-10-09 16:20
* @Version V1.0
*/
@Data
public class ConditionSqlDto implements Serializable {
private static final long serialVersionUID = -9159349581245188581L;
@ApiModelProperty("查询sql中的参数")
private Map queryParam;
@ApiModelProperty("查询数量sql")
private String countSql;
@ApiModelProperty("查询sql")
private String querySql;
public ConditionSqlDto(){}
public ConditionSqlDto(StringBuilder querySql, StringBuilder countSql, Map map){
this.countSql = countSql.toString();
this.querySql = querySql.toString();
this.queryParam = map;
}
public ConditionSqlDto(StringBuilder querySql, Map map){
this.countSql = null;
this.querySql = querySql.toString();
this.queryParam = map;
}
}