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/core/thread/LedThread.java |   19 +++++++++----------
 1 files changed, 9 insertions(+), 10 deletions(-)

diff --git a/src/main/java/com/zy/core/thread/LedThread.java b/src/main/java/com/zy/core/thread/LedThread.java
index d9d440e..75a0f53 100644
--- a/src/main/java/com/zy/core/thread/LedThread.java
+++ b/src/main/java/com/zy/core/thread/LedThread.java
@@ -1,8 +1,5 @@
 package com.zy.core.thread;
 
-import com.alibaba.fastjson.JSON;
-import com.core.common.Cools;
-import com.zy.common.entity.Parameter;
 import com.zy.common.model.MatDto;
 import com.zy.common.utils.News;
 import com.zy.core.Slave;
@@ -53,11 +50,11 @@
     public LedThread(Slave slave) {
         this.slave = slave;
         try {
-//            Bx5GEnv.initial(3000);
-//            screen = new Bx5GScreenClient("my");
+            Bx5GEnv.initial(3000);
+            screen = new Bx5GScreenClient("my");
         } catch (Exception e) {
             e.printStackTrace();
-            News.info("Led"+" - 1"+" - led杩炴帴鏋勯�犲櫒閿欒 ===>> [id:{}] [ip:{}] [port:{}]", slave.getId(), slave.getIp(), slave.getPort());
+            log.info("led杩炴帴鏋勯�犲櫒閿欒 ===>> [id:{}] [ip:{}] [port:{}]", slave.getId(), slave.getIp(), slave.getPort());
         }
     }
 
@@ -117,17 +114,18 @@
         TextBxPage page = new TextBxPage();
         for (LedCommand command : list) {
             page.newLine(command.getTitle() +"锛�"+command.getWorkNo()+")");
-            page.newLine("搴撲綅锛�"+ (command.getIoType() < 100 ? command.getLocNo() : command.getSourceLocNo()));
-            page.newLine("鐩爣绔欙細"+command.getStaNo());
             if (!command.isEmptyMk()) {
                 for (MatDto matDto : command.getMatDtos()) {
                     //鍘绘帀灏忔暟鐐�
                     String strQty = matDto.getCount().toString();
                     int idx = strQty.lastIndexOf(".");
                     if(idx >= 0){
-                        strQty.substring(0,idx);
+                        strQty = strQty.substring(0,idx);
                     }
-                    page.newLine(matDto.getMaknx() + "[鏁伴噺" + strQty +"]");
+                    page.newLine(matDto.getMatnr());
+                    page.newLine(matDto.getMaknx());
+                    page.newLine("[鏁伴噺锛�" + strQty +  "/" +  matDto.getTotal().intValue()+"]");
+//                    page.newLine(matDto.getMaknx() + "[鏁伴噺" + strQty +"]");
 //                    page.newLine(matDto.getMaknx() + "銆愭暟閲�" + matDto.getCount() +"銆�");
                 }
             }
@@ -215,6 +213,7 @@
                 for (MatDto matDto : command.getMatDtos()) {
                     sb.append("鐗╂枡缂栫爜锛�").append(matDto.getMatnr()).append("\n");
                     sb.append("鏁伴噺锛�").append(matDto.getCount()).append("\n");
+                    sb.append("瑙勬牸锛�").append(matDto.getSpecs()).append("\n");
                 }
             }
             sb.append("\n");

--
Gitblit v1.9.1