All Downloads are FREE. Search and download functionalities are using the official Maven repository.

top.doudou.common.tool.datebase.jpa.dto.ConditionSqlDto Maven / Gradle / Ivy

There is a newer version: 1.3.2
Show newest version
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;
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy