luqingyang
2023-10-24 cb642724c54d7d850aec5e5ee27fcc7186f352d7
consum-model-pojo/src/main/java/com/consum/model/po/BaseGoodsModels.java
@@ -32,9 +32,17 @@
    @JsonIgnore
    protected boolean isset_goodsTemplatesId = false;
    private String unit = null;
    @JsonIgnore
    protected boolean isset_unit = false;
    private Integer orderNumber = null;
    @JsonIgnore
    protected boolean isset_orderNumber = false;
    private Long createTime = null;
    @JsonIgnore
    protected boolean isset_createTime = false;
    /**
     * 默认构造函数
@@ -113,6 +121,20 @@
        return this.goodsTemplatesId == null;
    }
    public String getUnit() {
        return this.unit;
    }
    public void setUnit(String unit) {
        this.unit = unit;
        this.isset_unit = true;
    }
    @JsonIgnore
    public boolean isEmptyUnit() {
        return this.unit == null || this.unit.length() == 0;
    }
    public Integer getOrderNumber() {
        return this.orderNumber;
    }
@@ -127,6 +149,20 @@
        return this.orderNumber == null;
    }
    public Long getCreateTime() {
        return this.createTime;
    }
    public void setCreateTime(Long createTime) {
        this.createTime = createTime;
        this.isset_createTime = true;
    }
    @JsonIgnore
    public boolean isEmptyCreateTime() {
        return this.createTime == null;
    }
    /**
     * 重写 toString() 方法
     */
@@ -137,7 +173,9 @@
                .append("modelName=").append(this.modelName)
                .append("states=").append(this.states)
                .append("goodsTemplatesId=").append(this.goodsTemplatesId)
                .append("unit=").append(this.unit)
                .append("orderNumber=").append(this.orderNumber)
                .append("createTime=").append(this.createTime)
                .toString();
    }
@@ -164,9 +202,15 @@
        if (this.isset_goodsTemplatesId) {
            base_goods_models.setGoodsTemplatesId(this.getGoodsTemplatesId());
        }
        if (this.isset_unit) {
            base_goods_models.setUnit(this.getUnit());
        }
        if (this.isset_orderNumber) {
            base_goods_models.setOrderNumber(this.getOrderNumber());
        }
        if (this.isset_createTime) {
            base_goods_models.setCreateTime(this.getCreateTime());
        }
        return base_goods_models;
    }
}