| | |
| | | protected boolean isset_id = false; |
| | | |
| | | // 属性列表 |
| | | private Integer warehouseType = null; |
| | | @JsonIgnore |
| | | protected boolean isset_warehouseType = false; |
| | | |
| | | private Long warehouseId = null; |
| | | @JsonIgnore |
| | | protected boolean isset_warehouseId = false; |
| | |
| | | @JsonIgnore |
| | | protected boolean isset_unit = false; |
| | | |
| | | private Double price = null; |
| | | private Long price = null; |
| | | @JsonIgnore |
| | | protected boolean isset_price = false; |
| | | |
| | |
| | | @JsonIgnore |
| | | public boolean isEmptyId() { |
| | | return this.id == null; |
| | | } |
| | | |
| | | public Integer getWarehouseType() { |
| | | return this.warehouseType; |
| | | } |
| | | |
| | | public void setWarehouseType(Integer warehouseType) { |
| | | this.warehouseType = warehouseType; |
| | | this.isset_warehouseType = true; |
| | | } |
| | | |
| | | @JsonIgnore |
| | | public boolean isEmptyWarehouseType() { |
| | | return this.warehouseType == null; |
| | | } |
| | | |
| | | public Long getWarehouseId() { |
| | |
| | | return this.unit == null || this.unit.length() == 0; |
| | | } |
| | | |
| | | public Double getPrice() { |
| | | public Long getPrice() { |
| | | return this.price; |
| | | } |
| | | |
| | | public void setPrice(Double price) { |
| | | public void setPrice(Long price) { |
| | | this.price = price; |
| | | this.isset_price = true; |
| | | } |
| | |
| | | public String toString() { |
| | | return new StringBuilder() |
| | | .append("id=").append(this.id) |
| | | .append("warehouseType=").append(this.warehouseType) |
| | | .append("warehouseId=").append(this.warehouseId) |
| | | .append("warehouseName=").append(this.warehouseName) |
| | | .append("costType=").append(this.costType) |
| | |
| | | l_wh_goods.setId(this.getId()); |
| | | } |
| | | // 普通属性 |
| | | if (this.isset_warehouseType) { |
| | | l_wh_goods.setWarehouseType(this.getWarehouseType()); |
| | | } |
| | | if (this.isset_warehouseId) { |
| | | l_wh_goods.setWarehouseId(this.getWarehouseId()); |
| | | } |