From 78489da7e2185f53faaec9356fa1a8997cedab70 Mon Sep 17 00:00:00 2001 From: whycq <123456> Date: 星期三, 28 五月 2025 08:46:55 +0800 Subject: [PATCH] # --- src/main/java/com/zy/core/model/command/LedCommand.java | 27 +++++++++++++++++++++++++++ 1 files changed, 27 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..472d605 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,7 @@ package com.zy.core.model.command; +import com.alibaba.fastjson.JSON; +import com.core.common.Cools; import com.zy.common.model.MatDto; import lombok.Data; @@ -13,6 +15,8 @@ @Data public class LedCommand extends Object { + private String title; + private Integer workNo; private Integer staNo; @@ -25,4 +29,27 @@ 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