| | |
| | | import com.walker.jdbc.BasePo; |
| | | |
| | | /** |
| | | * 表名:L_WH_PROCURE_MODEL * |
| | | * 表名:L_WH_PROCURE_MODEL |
| | | * |
| | | * @author genrator |
| | | */ |
| | | @JsonAutoDetect(fieldVisibility = JsonAutoDetect.Visibility.ANY) |
| | |
| | | @JsonIgnore |
| | | protected boolean isset_baseGoodsModelsName = false; |
| | | |
| | | private String unit = null; |
| | | @JsonIgnore |
| | | protected boolean isset_unit = false; |
| | | |
| | | private Double price = null; |
| | | private Long price = null; |
| | | @JsonIgnore |
| | | protected boolean isset_price = false; |
| | | |
| | |
| | | private String supplier = null; |
| | | @JsonIgnore |
| | | protected boolean isset_supplier = false; |
| | | |
| | | private Long totalAmount; |
| | | @JsonIgnore |
| | | protected boolean isset_totalAmount = false; |
| | | |
| | | private Integer useCount = null; |
| | | @JsonIgnore |
| | | protected boolean isset_useCount = false; |
| | | |
| | | /** |
| | | * 默认构造函数 |
| | |
| | | return this.baseGoodsModelsName == null || this.baseGoodsModelsName.length() == 0; |
| | | } |
| | | |
| | | 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 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; |
| | | } |
| | |
| | | return this.supplier == null || this.supplier.length() == 0; |
| | | } |
| | | |
| | | public Long getTotalAmount() { |
| | | return this.totalAmount; |
| | | } |
| | | |
| | | public void setTotalAmount(Long totalAmount) { |
| | | this.totalAmount = totalAmount; |
| | | this.isset_totalAmount = true; |
| | | } |
| | | |
| | | @JsonIgnore |
| | | public boolean isEmptyTotalAmount() { |
| | | return this.totalAmount == null; |
| | | } |
| | | |
| | | public Integer getUseCount() { |
| | | return this.useCount; |
| | | } |
| | | |
| | | public void setUseCount(Integer useCount) { |
| | | this.useCount = useCount; |
| | | this.isset_useCount = true; |
| | | } |
| | | |
| | | @JsonIgnore |
| | | public boolean isEmptyUseCount() { |
| | | return this.useCount == null; |
| | | } |
| | | |
| | | /** |
| | | * 重写 toString() 方法 |
| | | */ |
| | |
| | | .append("businessId=").append(this.businessId) |
| | | .append("baseGoodsModelsId=").append(this.baseGoodsModelsId) |
| | | .append("baseGoodsModelsName=").append(this.baseGoodsModelsName) |
| | | .append("unit=").append(this.unit) |
| | | .append("price=").append(this.price) |
| | | .append("counts=").append(this.counts) |
| | | .append("worehouseCount=").append(this.worehouseCount) |
| | | .append("supplier=").append(this.supplier) |
| | | .append("totalAmount=").append(this.totalAmount) |
| | | .append("useCount=").append(this.useCount) |
| | | .toString(); |
| | | } |
| | | |
| | |
| | | * 克隆 |
| | | */ |
| | | public LWhProcureModel $clone() { |
| | | LWhProcureModel l_wh_procure_model = new LWhProcureModel(); |
| | | LWhProcureModel l_wh_procure_model = new LWhProcureModel(); |
| | | |
| | | // 数据库名称 |
| | | //l_wh_procure_model.setDatabaseName_(this.getDatabaseName_()); |
| | | |
| | | // 主键 |
| | | if (this.isset_id) { |
| | | l_wh_procure_model.setId(this.getId()); |
| | | l_wh_procure_model.setId(this.getId()); |
| | | } |
| | | // 普通属性 |
| | | if (this.isset_fromProcureGoodsId) { |
| | | l_wh_procure_model.setFromProcureGoodsId(this.getFromProcureGoodsId()); |
| | | l_wh_procure_model.setFromProcureGoodsId(this.getFromProcureGoodsId()); |
| | | } |
| | | if (this.isset_businessType) { |
| | | l_wh_procure_model.setBusinessType(this.getBusinessType()); |
| | | l_wh_procure_model.setBusinessType(this.getBusinessType()); |
| | | } |
| | | if (this.isset_businessId) { |
| | | l_wh_procure_model.setBusinessId(this.getBusinessId()); |
| | | l_wh_procure_model.setBusinessId(this.getBusinessId()); |
| | | } |
| | | if (this.isset_baseGoodsModelsId) { |
| | | l_wh_procure_model.setBaseGoodsModelsId(this.getBaseGoodsModelsId()); |
| | | l_wh_procure_model.setBaseGoodsModelsId(this.getBaseGoodsModelsId()); |
| | | } |
| | | if (this.isset_baseGoodsModelsName) { |
| | | l_wh_procure_model.setBaseGoodsModelsName(this.getBaseGoodsModelsName()); |
| | | } |
| | | if (this.isset_unit) { |
| | | l_wh_procure_model.setUnit(this.getUnit()); |
| | | l_wh_procure_model.setBaseGoodsModelsName(this.getBaseGoodsModelsName()); |
| | | } |
| | | if (this.isset_price) { |
| | | l_wh_procure_model.setPrice(this.getPrice()); |
| | | l_wh_procure_model.setPrice(this.getPrice()); |
| | | } |
| | | if (this.isset_counts) { |
| | | l_wh_procure_model.setCounts(this.getCounts()); |
| | | l_wh_procure_model.setCounts(this.getCounts()); |
| | | } |
| | | if (this.isset_worehouseCount) { |
| | | l_wh_procure_model.setWorehouseCount(this.getWorehouseCount()); |
| | | l_wh_procure_model.setWorehouseCount(this.getWorehouseCount()); |
| | | } |
| | | if (this.isset_supplier) { |
| | | l_wh_procure_model.setSupplier(this.getSupplier()); |
| | | l_wh_procure_model.setSupplier(this.getSupplier()); |
| | | } |
| | | if (this.isset_totalAmount) { |
| | | l_wh_procure_model.setTotalAmount(this.getTotalAmount()); |
| | | } |
| | | if (this.isset_useCount) { |
| | | l_wh_procure_model.setUseCount(this.getUseCount()); |
| | | } |
| | | return l_wh_procure_model; |
| | | } |