abel533 / Mapper

Mybatis Common Mapper - Easy to use
https://mybatis.io
MIT License
7.29k stars 1.62k forks source link

Example.builder() 缺少ORDERBY属性初始化 #897

Closed soaped closed 7 months ago

soaped commented 7 months ago
public Example(Class<?> entityClass, boolean exists, boolean notNull) {
        this.exists = exists;
        this.notNull = notNull;
        this.oredCriteria = new ArrayList();
        this.entityClass = entityClass;
        this.table = EntityHelper.getEntityTable(entityClass);
        this.propertyMap = this.table.getPropertyMap();
        this.ORDERBY = new OrderBy(this, this.propertyMap);
    }

 public Builder(Class<?> entityClass, boolean exists, boolean notNull) {
            this.entityClass = entityClass;
            this.exists = exists;
            this.notNull = notNull;
            this.orderByClause = new StringBuilder();
            this.table = EntityHelper.getEntityTable(entityClass);
            this.propertyMap = this.table.getPropertyMap();
            this.sqlsCriteria = new ArrayList(2);
        }
abel533 commented 7 months ago

来个PR?

soaped commented 7 months ago

ok

soaped commented 7 months ago

在最新4.3.0版已解决了