From 0a71eb4f8fce7f3dd4ac87e6735ff540a50266a2 Mon Sep 17 00:00:00 2001
From: whycq <10027870+whycq@user.noreply.gitee.com>
Date: 星期日, 30 六月 2024 10:24:34 +0800
Subject: [PATCH] #

---
 src/main/java/com/zy/common/model/MatDto.java |    4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)

diff --git a/src/main/java/com/zy/common/model/MatDto.java b/src/main/java/com/zy/common/model/MatDto.java
index 3016567..6c20f86 100644
--- a/src/main/java/com/zy/common/model/MatDto.java
+++ b/src/main/java/com/zy/common/model/MatDto.java
@@ -1,5 +1,6 @@
 package com.zy.common.model;
 
+import com.core.common.Cools;
 import lombok.Data;
 
 /**
@@ -40,12 +41,13 @@
         this.maknx = maknx;
         this.count = count;
     }
-    public MatDto(String matNo, String maknx, Double count,String specs,String batch) {
+    public MatDto(String matNo, String maknx, Double count,String specs,String batch, String memo) {
         this.batch = batch;
         this.specs = specs;
         this.matnr = matNo;
         this.maknx = maknx;
         this.count = count;
+        this.total = Cools.isEmpty(memo) ? 0 : Double.valueOf(memo);
     }
     public MatDto(String matNo, String maknx, Double count,Double total,String specs) {
         this.specs = specs;

--
Gitblit v1.9.1