From a1b85ef72062ca80db35546e4216dd564f3e0f57 Mon Sep 17 00:00:00 2001 From: WangHan <wwh_work@126,com> Date: 星期四, 03 四月 2025 15:58:19 +0800 Subject: [PATCH] 问题与漏洞修改 --- consum-model-pojo/src/main/java/com/consum/model/po/LWhProcureModel.java | 97 ++++++++++++++++++++++++++++++------------------ 1 files changed, 60 insertions(+), 37 deletions(-) diff --git a/consum-model-pojo/src/main/java/com/consum/model/po/LWhProcureModel.java b/consum-model-pojo/src/main/java/com/consum/model/po/LWhProcureModel.java index 71ce256..c09f0ce 100644 --- a/consum-model-pojo/src/main/java/com/consum/model/po/LWhProcureModel.java +++ b/consum-model-pojo/src/main/java/com/consum/model/po/LWhProcureModel.java @@ -6,7 +6,8 @@ import com.walker.jdbc.BasePo; /** - * 琛ㄥ悕:L_WH_PROCURE_MODEL * + * 琛ㄥ悕:L_WH_PROCURE_MODEL + * * @author genrator */ @JsonAutoDetect(fieldVisibility = JsonAutoDetect.Visibility.ANY) @@ -40,11 +41,7 @@ @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; @@ -59,6 +56,14 @@ 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; /** * 榛樿鏋勯�犲嚱鏁� @@ -165,25 +170,11 @@ 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; } @@ -235,6 +226,34 @@ 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() 鏂规硶 */ @@ -247,11 +266,12 @@ .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(); } @@ -259,45 +279,48 @@ * 鍏嬮殕 */ 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; } -- Gitblit v1.9.1