From 07c5450ee6a2bb7c993f83b927b1899a1a56262b Mon Sep 17 00:00:00 2001
From: tqs <56479841@qq.com>
Date: 星期四, 16 五月 2024 14:54:02 +0800
Subject: [PATCH] #

---
 src/main/java/com/zy/core/model/command/LedCommand.java |   25 +++++++++++++++++++++++++
 1 files changed, 25 insertions(+), 0 deletions(-)

diff --git a/src/main/java/com/zy/core/model/command/LedCommand.java b/src/main/java/com/zy/core/model/command/LedCommand.java
index 58f4c88..66271c0 100644
--- a/src/main/java/com/zy/core/model/command/LedCommand.java
+++ b/src/main/java/com/zy/core/model/command/LedCommand.java
@@ -1,5 +1,6 @@
 package com.zy.core.model.command;
 
+import com.core.common.Cools;
 import com.zy.common.model.MatDto;
 import lombok.Data;
 
@@ -13,6 +14,8 @@
 @Data
 public class LedCommand extends Object {
 
+    private String title;
+
     private Integer workNo;
 
     private Integer staNo;
@@ -25,4 +28,26 @@
 
     private List<MatDto> matDtos = new ArrayList<>();
 
+    private boolean emptyMk = false;
+
+    private Integer ioType;
+    private String barcode;
+
+    @Override
+    public String toString() {
+        StringBuffer s = new StringBuffer();
+        s.append("宸ヤ綔鍙穂" + this.workNo + "]\n");
+        s.append("宸ヤ綔绫诲瀷[" + this.title + "]\n");
+        if (!Cools.isEmpty(this.barcode)) {
+            s.append("鎵樼洏鐮乕" + this.barcode + "]\n");
+        }
+        if (!this.emptyMk){
+
+            for (MatDto matDto : matDtos) {
+                s.append("[鍟嗗搧缂栫爜:" + matDto.getMatnr() + ", 鏁伴噺:" + matDto.getCount() + "]\n");
+            }
+        }
+
+        return s.toString();
+    }
 }

--
Gitblit v1.9.1