| | |
| | | |
| | | /** |
| | | * 表名:L_WH_PROCURE_MODEL * |
| | | * |
| | | * @author genrator |
| | | */ |
| | | @JsonAutoDetect(fieldVisibility = JsonAutoDetect.Visibility.ANY) |
| | | public class LWhProcureModel extends BasePo<LWhProcureModel> { |
| | | |
| | | // 序列化版本号 |
| | | private static final long serialVersionUID = 1L; |
| | | |
| | |
| | | private String supplier = null; |
| | | @JsonIgnore |
| | | protected boolean isset_supplier = false; |
| | | |
| | | private Long totalAmount; |
| | | @JsonIgnore |
| | | protected boolean isset_totalAmount = false; |
| | | |
| | | /** |
| | | * 默认构造函数 |
| | |
| | | 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; |
| | | } |
| | | |
| | | /** |
| | | * 重写 toString() 方法 |
| | | */ |
| | | @Override |
| | | public String toString() { |
| | | return new StringBuilder() |
| | | .append("id=").append(this.id) |
| | | .append("fromProcureGoodsId=").append(this.fromProcureGoodsId) |
| | | .append("businessType=").append(this.businessType) |
| | | .append("businessId=").append(this.businessId) |
| | | .append("baseGoodsModelsId=").append(this.baseGoodsModelsId) |
| | | .append("baseGoodsModelsName=").append(this.baseGoodsModelsName) |
| | | .append("price=").append(this.price) |
| | | .append("counts=").append(this.counts) |
| | | .append("worehouseCount=").append(this.worehouseCount) |
| | | .append("supplier=").append(this.supplier) |
| | | .toString(); |
| | | .append("id=").append(this.id) |
| | | .append("fromProcureGoodsId=").append(this.fromProcureGoodsId) |
| | | .append("businessType=").append(this.businessType) |
| | | .append("businessId=").append(this.businessId) |
| | | .append("baseGoodsModelsId=").append(this.baseGoodsModelsId) |
| | | .append("baseGoodsModelsName=").append(this.baseGoodsModelsName) |
| | | .append("price=").append(this.price) |
| | | .append("counts=").append(this.counts) |
| | | .append("worehouseCount=").append(this.worehouseCount) |
| | | .append("supplier=").append(this.supplier) |
| | | .toString(); |
| | | } |
| | | |
| | | /** |
| | |
| | | if (this.isset_supplier) { |
| | | l_wh_procure_model.setSupplier(this.getSupplier()); |
| | | } |
| | | if (this.isset_totalAmount) { |
| | | l_wh_procure_model.setTotalAmount(this.getTotalAmount()); |
| | | } |
| | | return l_wh_procure_model; |
| | | } |
| | | } |