From b82ed8cbcc9e262f2bce2a662f8ce0d8c59b5d70 Mon Sep 17 00:00:00 2001 From: luqingyang <lqy5492@163.com> Date: 星期一, 30 十月 2023 17:35:13 +0800 Subject: [PATCH] 调拨管理、物品管理、物品分类 相关代码 --- consum-model-pojo/src/main/java/com/consum/model/po/BaseGoodsTemplate.java | 22 ++++++++++++++++++++++ 1 files changed, 22 insertions(+), 0 deletions(-) diff --git a/consum-model-pojo/src/main/java/com/consum/model/po/BaseGoodsTemplate.java b/consum-model-pojo/src/main/java/com/consum/model/po/BaseGoodsTemplate.java index 1be32be..bcf2acd 100644 --- a/consum-model-pojo/src/main/java/com/consum/model/po/BaseGoodsTemplate.java +++ b/consum-model-pojo/src/main/java/com/consum/model/po/BaseGoodsTemplate.java @@ -40,6 +40,10 @@ @JsonIgnore protected boolean isset_categoryId = false; + private String categoryName = null; + @JsonIgnore + protected boolean isset_categoryName = false; + private Long fAgencyId = null; @JsonIgnore protected boolean isset_fAgencyId = false; @@ -187,6 +191,20 @@ @JsonIgnore public boolean isEmptyCategoryId() { return this.categoryId == null; + } + + public String getCategoryName() { + return this.categoryName; + } + + public void setCategoryName(String categoryName) { + this.categoryName = categoryName; + this.isset_categoryName = true; + } + + @JsonIgnore + public boolean isEmptyCategoryName() { + return this.categoryName == null || this.categoryName.length() == 0; } public Long getFAgencyId() { @@ -355,6 +373,7 @@ .append("classification=").append(this.classification) .append("states=").append(this.states) .append("categoryId=").append(this.categoryId) + .append("categoryName=").append(this.categoryName) .append("fAgencyId=").append(this.fAgencyId) .append("sAgencyId=").append(this.sAgencyId) .append("tAgencyId=").append(this.tAgencyId) @@ -398,6 +417,9 @@ if (this.isset_categoryId) { base_goods_template.setCategoryId(this.getCategoryId()); } + if (this.isset_categoryName) { + base_goods_template.setCategoryName(this.getCategoryName()); + } if (this.isset_fAgencyId) { base_goods_template.setFAgencyId(this.getFAgencyId()); } -- Gitblit v1.9.1