From 53e7dce8d55487cbac64e4374ec9aa1b52a6c6ed Mon Sep 17 00:00:00 2001
From: SZH <szh_hello@163.com>
Date: Thu, 09 Mar 2023 21:16:43 +0800
Subject: [PATCH] 解决npe问题
---
equipment/equipment-service/src/main/java/com/gkhy/safePlatform/equipment/model/dto/resp/SafeMaterialDto.java | 24 +++++++++++++++++++-----
1 files changed, 19 insertions(+), 5 deletions(-)
diff --git a/equipment/equipment-service/src/main/java/com/gkhy/safePlatform/equipment/model/dto/resp/SafeMaterialDto.java b/equipment/equipment-service/src/main/java/com/gkhy/safePlatform/equipment/model/dto/resp/SafeMaterialDto.java
index 6e0e6d2..c9c14bc 100644
--- a/equipment/equipment-service/src/main/java/com/gkhy/safePlatform/equipment/model/dto/resp/SafeMaterialDto.java
+++ b/equipment/equipment-service/src/main/java/com/gkhy/safePlatform/equipment/model/dto/resp/SafeMaterialDto.java
@@ -42,7 +42,13 @@
/**
* 有效库存数量
*/
- private Integer validStockCount;
+ private Integer stockCount;
+
+ /**
+ * 总库存
+ * @return
+ */
+ private Integer totalCount;
public Long getId() {
return id;
@@ -102,12 +108,20 @@
this.consumableName = consumableName;
}
- public Integer getValidStockCount() {
- return validStockCount;
+ public Integer getStockCount() {
+ return stockCount;
}
- public void setValidStockCount(Integer validStockCount) {
- this.validStockCount = validStockCount;
+ public void setStockCount(Integer stockCount) {
+ this.stockCount = stockCount;
+ }
+
+ public Integer getTotalCount() {
+ return totalCount;
+ }
+
+ public void setTotalCount(Integer totalCount) {
+ this.totalCount = totalCount;
}
public Long getBigClassifyId() {
--
Gitblit v1.9.2