From fb956794ce68616b418372a7c780e6e068b5d038 Mon Sep 17 00:00:00 2001
From: zjj <3272660260@qq.com>
Date: 星期二, 30 七月 2024 18:40:31 +0800
Subject: [PATCH] #
---
src/main/java/com/zy/core/model/command/LedCommand.java | 45 ++++++++++++++++++++++++++++-----------------
1 files changed, 28 insertions(+), 17 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 66271c0..4bffcb7 100644
--- a/src/main/java/com/zy/core/model/command/LedCommand.java
+++ b/src/main/java/com/zy/core/model/command/LedCommand.java
@@ -1,6 +1,5 @@
package com.zy.core.model.command;
-import com.core.common.Cools;
import com.zy.common.model.MatDto;
import lombok.Data;
@@ -15,6 +14,22 @@
public class LedCommand extends Object {
private String title;
+
+ @Override
+ public String toString() {
+ return "LedCommand{" +
+ "title='" + title + '\'' +
+ ", workNo=" + workNo +
+ ", staNo=" + staNo +
+ ", sourceStaNo=" + sourceStaNo +
+ ", locNo='" + locNo + '\'' +
+ ", sourceLocNo='" + sourceLocNo + '\'' +
+ ", matDtos=" + matDtos +
+ ", emptyMk=" + emptyMk +
+ ", ioType=" + ioType +
+ ", barcode='" + barcode + '\'' +
+ '}';
+ }
private Integer workNo;
@@ -33,21 +48,17 @@
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();
+ public static void main(String[] args) {
+ LedCommand ledCommand = new LedCommand();
+ ledCommand.setTitle("鍏ㄦ澘鍑哄簱");
+ ledCommand.setBarcode("80000001");
+ ledCommand.setSourceLocNo("0100101");
+ ledCommand.setStaNo(100);
+ ledCommand.setWorkNo(7001);
+ List<MatDto> matDtos = new ArrayList<>();
+ MatDto matDto = new MatDto("0205040001","K44132-09-0724","PE","20240724",",HD-233L",70,2816,53908.56626);
+ matDtos.add(matDto);
+ ledCommand.setMatDtos(matDtos);
+ System.out.println(ledCommand);
}
}
--
Gitblit v1.9.1