From e31a077927d47bd05bcfdc3367deafb8c4069c6d Mon Sep 17 00:00:00 2001
From: zhoushihao <zsh19950802@163.com>
Date: 星期四, 26 十二月 2024 23:57:34 +0800
Subject: [PATCH] 1、卧式理片玻璃替换仅替换版图信息 2、指定钢化、指定工程fixbug:膜系字段修改为filmsId 3、移除大理片笼向前端推送钢化历史任务数据 4、中空领取任务界面接口改造:新增开始/暂停/结束任务按钮,流程卡列表、预览任务、删除任务接口 5、领取/强制任务接口改造:新增除膜信息、李赛克文件需要的数据信息

---
 hangzhoumesParent/moduleService/CacheGlassModule/src/main/java/com/mes/job/OpcCacheGlassTask.java |   51 ++++++++++++++++++++++++++++++++++-----------------
 1 files changed, 34 insertions(+), 17 deletions(-)

diff --git a/hangzhoumesParent/moduleService/CacheGlassModule/src/main/java/com/mes/job/OpcCacheGlassTask.java b/hangzhoumesParent/moduleService/CacheGlassModule/src/main/java/com/mes/job/OpcCacheGlassTask.java
index fcbc261..2cb907c 100644
--- a/hangzhoumesParent/moduleService/CacheGlassModule/src/main/java/com/mes/job/OpcCacheGlassTask.java
+++ b/hangzhoumesParent/moduleService/CacheGlassModule/src/main/java/com/mes/job/OpcCacheGlassTask.java
@@ -492,7 +492,7 @@
                 .orderByDesc(EdgStorageDeviceTaskHistory::getCreateTime).last("limit 1"));
         //濡傛灉浠诲姟绫诲瀷涓�1锛�3锛屽皢鍒囧壊瀹屾垚鐨勭幓鐠冭嚜鍔ㄦ姤宸�
         if (Const.GLASS_CACHE_TYPE_IN_ALL.contains(taskHistory.getTaskType())) {
-            damageService.autoSubmitReport(taskHistory.getGlassIdIn(), taskHistory.getDeviceId(),"鍒囧壊","杩涘崸鐞�",1);
+            damageService.autoSubmitReport(taskHistory.getGlassIdIn(), taskHistory.getDeviceId(), "鍒囧壊", "杩涘崸鐞�", 1);
         }
         updateCellRemainWidth(cell, device, taskHistory);
         edgStorageDeviceTaskHistoryService.update(new LambdaUpdateWrapper<EdgStorageDeviceTaskHistory>()
@@ -535,26 +535,43 @@
                 .last("Limit 1");
         GlassInfo swapGlassInfo = glassInfoService.getOne(queryWrapper);
         if (swapGlassInfo != null && !glassInfo.getGlassId().equals(swapGlassInfo.getGlassId())) {
+            //寰呮浛鎹㈢殑鐜荤拑淇℃伅
+            Integer ishorizontal = glassInfo.getIshorizontal();
+            Integer temperingLayoutId = glassInfo.getTemperingLayoutId();
+            Integer temperingFeedSequence = glassInfo.getTemperingFeedSequence();
+            Integer xCoordinate = glassInfo.getXCoordinate();
+            Integer yCoordinate = glassInfo.getYCoordinate();
+            double angle = glassInfo.getAngle();
+            Integer ruleId = glassInfo.getRuleId();
+            //鏇挎崲鍚庣殑鐜荤拑淇℃伅
+            Integer swapIshorizontal = swapGlassInfo.getIshorizontal();
+            Integer swapTemperingLayoutId = swapGlassInfo.getTemperingLayoutId();
+            Integer swapTemperingFeedSequence = swapGlassInfo.getTemperingFeedSequence();
+            Integer swapXCoordinate = swapGlassInfo.getXCoordinate();
+            Integer swapYCoordinate = swapGlassInfo.getYCoordinate();
+            double swapAngle = swapGlassInfo.getAngle();
+            Integer swapRuleId = swapGlassInfo.getRuleId();
+            //鏇挎崲鐜荤拑淇℃伅
+            glassInfo.setIshorizontal(swapIshorizontal);
+            glassInfo.setTemperingLayoutId(swapTemperingLayoutId);
+            glassInfo.setTemperingFeedSequence(swapTemperingFeedSequence);
+            glassInfo.setXCoordinate(swapXCoordinate);
+            glassInfo.setYCoordinate(swapYCoordinate);
+            glassInfo.setAngle(swapAngle);
+            glassInfo.setRuleId(swapRuleId);
 
-            int patternSequence = glassInfo.getPatternSequence();
-            int xAxis = glassInfo.getXAxis();
-            int yAxis = glassInfo.getYAxis();
-            String swapGlassId = swapGlassInfo.getGlassId();
-            int swapPatternSequence = swapGlassInfo.getPatternSequence();
-            int swapXAxis = swapGlassInfo.getXAxis();
-            int swapYAxis = swapGlassInfo.getYAxis();
-            swapGlassInfo.setGlassId(glassId);
-            swapGlassInfo.setPatternSequence(patternSequence);
-            swapGlassInfo.setXAxis(xAxis);
-            swapGlassInfo.setYAxis(yAxis);
-            glassInfo.setGlassId(swapGlassId);
-            glassInfo.setPatternSequence(swapPatternSequence);
-            glassInfo.setXAxis(swapXAxis);
-            glassInfo.setYAxis(swapYAxis);
+            swapGlassInfo.setIshorizontal(ishorizontal);
+            swapGlassInfo.setTemperingLayoutId(temperingLayoutId);
+            swapGlassInfo.setTemperingFeedSequence(temperingFeedSequence);
+            swapGlassInfo.setXCoordinate(xCoordinate);
+            swapGlassInfo.setYCoordinate(yCoordinate);
+            swapGlassInfo.setAngle(angle);
+            swapGlassInfo.setRuleId(ruleId);
+
             log.info("灏嗙幓鐠儃}鍜岀幓鐠儃}锛屼俊鎭簰鎹�(鍘熺墖搴忓彿鍙婂潗鏍囬櫎澶�),杩涚幓鐠� {}", glassInfo, swapGlassInfo, swapGlassInfo);
             glassInfoService.updateById(swapGlassInfo);
             glassInfoService.updateById(glassInfo);
-            return swapGlassId;
+            return swapGlassInfo.getGlassId();
         }
         return "";
     }

--
Gitblit v1.8.0