From 093579c99049bf09ecf8e5d0f80179fde1ddc776 Mon Sep 17 00:00:00 2001
From: zhoushihao <zsh19950802@163.com>
Date: 星期三, 10 七月 2024 09:49:31 +0800
Subject: [PATCH] 下片:下片任务状态字段名称修改 大理片:1、扫码任务新增确认字校验:确认字为0,请求有id的情况不处理 2、新增定时任务处理进出片任务执行过程中出现破损玻璃的情况  待完成:破损表新增功能未实现

---
 hangzhoumesParent/moduleService/CacheVerticalGlassModule/src/test/java/com/mes/CacheVerticalGlassModuleApplicationTest.java |   31 +++++++++----------------------
 1 files changed, 9 insertions(+), 22 deletions(-)

diff --git a/hangzhoumesParent/moduleService/CacheVerticalGlassModule/src/test/java/com/mes/CacheVerticalGlassModuleApplicationTest.java b/hangzhoumesParent/moduleService/CacheVerticalGlassModule/src/test/java/com/mes/CacheVerticalGlassModuleApplicationTest.java
index 46bade9..f9deff8 100644
--- a/hangzhoumesParent/moduleService/CacheVerticalGlassModule/src/test/java/com/mes/CacheVerticalGlassModuleApplicationTest.java
+++ b/hangzhoumesParent/moduleService/CacheVerticalGlassModule/src/test/java/com/mes/CacheVerticalGlassModuleApplicationTest.java
@@ -1,6 +1,6 @@
 package com.mes;
 
-import com.mes.base.entity.BigStorageCageBaseInfo;
+import com.mes.bigstorage.service.BigStorageCageDetailsService;
 import com.mes.bigstorage.service.BigStorageCageService;
 import com.mes.common.config.Const;
 import com.mes.job.PlcStorageCageTask;
@@ -11,9 +11,7 @@
 import org.springframework.boot.test.context.SpringBootTest;
 import org.springframework.test.context.junit4.SpringRunner;
 
-import java.util.ArrayList;
 import java.util.Arrays;
-import java.util.List;
 
 /**
  * @Author : zhoush
@@ -29,6 +27,8 @@
     BigStorageCageService bigStorageCageService;
     @Autowired
     PlcStorageCageTask plcStorageCageTask;
+    @Autowired
+    BigStorageCageDetailsService bigStorageCageDetailsService;
 
     @Test
     public void testFindPath() {
@@ -38,24 +38,6 @@
     @Test
     public void outGlass() {
         log.info("瀹屾暣璺緞锛歿}", bigStorageCageService.outGlass());
-    }
-
-    @Test
-    public void updateSlotRemain() {
-        List<String> taskGlassIds = Arrays.asList(
-//                "P24060403|1|1",
-//                "P24060403|1|2",
-//                "P24060403|1|3",
-//                "P24060403|1|4",
-                "P24060403|1|5");
-        List<BigStorageCageBaseInfo> list = new ArrayList<>();
-        list.add(new BigStorageCageBaseInfo("P24060403|1|1", 1080.0, 4));
-        list.add(new BigStorageCageBaseInfo("P24060403|1|2", 1080.0, 1));
-        list.add(new BigStorageCageBaseInfo("P24060403|1|3", 1080.0, 1));
-        list.add(new BigStorageCageBaseInfo("P24060403|1|4", 1080.0, 16));
-        list.add(new BigStorageCageBaseInfo("P24060403|1|5", 1080.0, 15));
-
-        plcStorageCageTask.updateSlotRemain(list, taskGlassIds);
     }
 
     @Test
@@ -81,7 +63,7 @@
 
     @Test
     public void judgeGlassTypeStatus() {
-        plcStorageCageTask.judgeGlassTypeStatus("P24060403|6|7", Const.A09_OUT_TARGET_POSITION);
+        plcStorageCageTask.judgeGlassTypeStatus("P24060403|6|7", Const.A09_OUT_TARGET_POSITION, "mesD03Address");
     }
 
     @Test
@@ -95,4 +77,9 @@
         log.info("鑾峰彇澶х悊鐗囩淇℃伅锛歿}", bigStorageCageService.selectBigStorageCageUsage());
     }
 
+    @Test
+    public void selectBigStorageCageDetails() {
+        log.info("鑾峰彇澶х悊鐗囩淇℃伅锛歿}", bigStorageCageDetailsService.selectBigStorageCageDetails("P24060403|3|6"));
+    }
+
 }

--
Gitblit v1.8.0