杨凯
2023-10-18 caf451f76ac30aa222230e0bc2d0d7cb9f420bdf
consum-model-pojo/src/main/java/com/consum/model/po/DepFormLendingGoods.java
@@ -64,6 +64,14 @@
    @JsonIgnore
    protected boolean isset_usingCount = false;
    private Long warehouseId = null;
    @JsonIgnore
    protected boolean isset_warehouseId = false;
    private String warehouseName = null;
    @JsonIgnore
    protected boolean isset_warehouseName = false;
    /**
     * 默认构造函数
     */
@@ -253,6 +261,34 @@
        return this.usingCount == null;
    }
    public Long getWarehouseId() {
        return this.warehouseId;
    }
    public void setWarehouseId(Long warehouseId) {
        this.warehouseId = warehouseId;
        this.isset_warehouseId = true;
    }
    @JsonIgnore
    public boolean isEmptyWarehouseId() {
        return this.warehouseId == null;
    }
    public String getWarehouseName() {
        return this.warehouseName;
    }
    public void setWarehouseName(String warehouseName) {
        this.warehouseName = warehouseName;
        this.isset_warehouseName = true;
    }
    @JsonIgnore
    public boolean isEmptyWarehouseName() {
        return this.warehouseName == null || this.warehouseName.length() == 0;
    }
    /**
     * 重写 toString() 方法
     */
@@ -271,6 +307,8 @@
                .append("goodsUserPhone=").append(this.goodsUserPhone)
                .append("goodsUserName=").append(this.goodsUserName)
                .append("usingCount=").append(this.usingCount)
                .append("warehouseId=").append(this.warehouseId)
                .append("warehouseName=").append(this.warehouseName)
                .toString();
    }
@@ -321,6 +359,12 @@
        if (this.isset_usingCount) {
            dep_form_lending_goods.setUsingCount(this.getUsingCount());
        }
        if (this.isset_warehouseId) {
            dep_form_lending_goods.setWarehouseId(this.getWarehouseId());
        }
        if (this.isset_warehouseName) {
            dep_form_lending_goods.setWarehouseName(this.getWarehouseName());
        }
        return dep_form_lending_goods;
    }
}