From b9b44b51b201e2f5a9a1f3665c7fb76b5690f9af Mon Sep 17 00:00:00 2001 From: wu <731351411@qq.com> Date: 星期一, 23 十二月 2024 16:13:08 +0800 Subject: [PATCH] Merge remote-tracking branch 'origin/master' --- hangzhoumesParent/moduleService/CacheGlassModule/src/main/java/com/mes/job/OpcCacheGlassTask.java | 15 ++++++++++++++- 1 files changed, 14 insertions(+), 1 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 204ef25..51d94ae 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 @@ -535,10 +535,23 @@ .last("Limit 1"); GlassInfo swapGlassInfo = glassInfoService.getOne(queryWrapper); if (swapGlassInfo != null && !glassInfo.getGlassId().equals(swapGlassInfo.getGlassId())) { + + int patternSequence = glassInfo.getPatternSequence(); + int xAxis = glassInfo.getXAxis(); + int yAxis = glassInfo.getYAxis(); String swapGlassId = swapGlassInfo.getGlassId(); - log.info("灏嗙幓鐠儃}鍜岀幓鐠儃}锛屼俊鎭簰鎹�,杩涚幓鐠� {}", glassInfo, swapGlassInfo, swapGlassInfo); + 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); + log.info("灏嗙幓鐠儃}鍜岀幓鐠儃}锛屼俊鎭簰鎹�(鍘熺墖搴忓彿鍙婂潗鏍囬櫎澶�),杩涚幓鐠� {}", glassInfo, swapGlassInfo, swapGlassInfo); glassInfoService.updateById(swapGlassInfo); glassInfoService.updateById(glassInfo); return swapGlassId; -- Gitblit v1.8.0