From c1f06f52a6b7f3337bacd98feb55aca6af8e6e2c Mon Sep 17 00:00:00 2001 From: ZengTao <2773468879@qq.com> Date: 星期五, 05 七月 2024 08:32:09 +0800 Subject: [PATCH] Merge branch 'master' of http://10.153.19.25:10101/r/HangZhouMes --- hangzhoumesParent/moduleService/UnLoadGlassModule/src/main/java/com/mes/job/DownCacheGlassTask.java | 13 ++++++------- 1 files changed, 6 insertions(+), 7 deletions(-) diff --git a/hangzhoumesParent/moduleService/UnLoadGlassModule/src/main/java/com/mes/job/DownCacheGlassTask.java b/hangzhoumesParent/moduleService/UnLoadGlassModule/src/main/java/com/mes/job/DownCacheGlassTask.java index 9ce8dcc..45eab78 100644 --- a/hangzhoumesParent/moduleService/UnLoadGlassModule/src/main/java/com/mes/job/DownCacheGlassTask.java +++ b/hangzhoumesParent/moduleService/UnLoadGlassModule/src/main/java/com/mes/job/DownCacheGlassTask.java @@ -17,7 +17,6 @@ import lombok.extern.slf4j.Slf4j; import org.springframework.beans.BeanUtils; import org.springframework.beans.factory.annotation.Autowired; -import org.springframework.scheduling.annotation.Scheduled; import org.springframework.stereotype.Component; import java.util.List; @@ -52,7 +51,7 @@ // @Value("${mes.threshold}") private int threshold; - @Scheduled(fixedDelay = 1000) +// @Scheduled(fixedDelay = 1000) public void autoBindRack() { log.info("鏍规嵁缂撳瓨涓凡缁忚繘鐗囩殑鐜荤拑绉嶆暟閲忔渶澶氱殑娴佺▼鍗″彿鑷姩缁戝畾涓�涓惎鐢ㄧ姸鎬佺殑绌烘灦瀛�"); @@ -103,12 +102,12 @@ // return; // } // log.info("2銆佽幏鍙栧埌鐨勮姹傚瓧涓�0锛屽皢纭瀛楁敼涓�0"); -// S7object.getinstance().plccontrol.WriteWord(MESSendingWord, (short) 0); +// S7object.getinstance().plccontrol.WriteWord(MESSendingWord, 0); // return; // } // if (!"0".equals(confirmationWrodValue)) { // log.info("2銆佽幏鍙栧埌鐨勮姹傚瓧涓嶄负0锛屽皢纭瀛楁敼涓�0"); -// S7object.getinstance().plccontrol.WriteWord(MESSendingWord, (short) 0); +// S7object.getinstance().plccontrol.WriteWord(MESSendingWord, 0); // return; // } @@ -193,7 +192,7 @@ } log.info("9銆佸彂閫佺‘璁ゅ瓧瀹屾垚"); - //S7object.getinstance().plccontrol.WriteWord(MESSendingWord, (short) 1); + //S7object.getinstance().plccontrol.WriteWord(MESSendingWord, 1); } /** @@ -256,7 +255,7 @@ updateDetail.setState(Const.GLASS_STATE_OUT); downStorageCageDetailsService.update(updateDetail, wrapper); log.info("鏇存柊鍑虹墖鐜荤拑鐨勭姸鎬佷负{}", Const.GLASS_STATE_OUT); - // S7object.getinstance().plccontrol.WriteWord(MESSendingWord, (short) 2); + // S7object.getinstance().plccontrol.WriteWord(MESSendingWord, 2); return true; } @@ -277,7 +276,7 @@ // 鍒涘缓鏂扮殑 DownGlassInfo 瀵硅薄骞惰缃浉鍏冲睘鎬� DownGlassInfo newdownGlassInfo = new DownGlassInfo(); - Integer maxSequence = downGlassInfoService.getMaxSequenceByFlowCardId(downGlassInfo.getFlowCardId()); + Integer maxSequence = downGlassInfoService.getMaxSequenceByFlowCardId(downGlassInfo.getFlowCardId(), downGlassInfo.getLayer()); // 鍒濆鍖栭『搴忓瓧娈靛�� int sequence = maxSequence != null ? maxSequence + 1 : 1; BeanUtils.copyProperties(downGlassInfo, newdownGlassInfo); -- Gitblit v1.8.0