From b74b172daac9b2b21af1149bfcfb935bc879e5ef Mon Sep 17 00:00:00 2001
From: Junjie <DELL@qq.com>
Date: 星期四, 25 十二月 2025 15:28:16 +0800
Subject: [PATCH] #

---
 src/main/java/com/zy/core/network/fake/ZyDualCrnFakeConnect.java |   13 ++++++++++---
 1 files changed, 10 insertions(+), 3 deletions(-)

diff --git a/src/main/java/com/zy/core/network/fake/ZyDualCrnFakeConnect.java b/src/main/java/com/zy/core/network/fake/ZyDualCrnFakeConnect.java
index 1cdd5bd..c19df2a 100644
--- a/src/main/java/com/zy/core/network/fake/ZyDualCrnFakeConnect.java
+++ b/src/main/java/com/zy/core/network/fake/ZyDualCrnFakeConnect.java
@@ -65,9 +65,11 @@
     private void commandTaskComplete(DualCrnCommand command) {
         if(command.getStation() == 1) {
             this.crnStatus.setTaskNo(0);
+            this.crnStatus.setTaskReceive(0);
             this.crnStatus.setStatus(CrnStatusType.IDLE.id);
         }else {
             this.crnStatus.setTaskNoTwo(0);
+            this.crnStatus.setTaskReceiveTwo(0);
             this.crnStatus.setStatusTwo(CrnStatusType.IDLE.id);
         }
     }
@@ -82,12 +84,14 @@
         if(command.getStation() == 1) {
             this.crnStatus.setTaskNo(taskNo);
             this.crnStatus.setStatus(CrnStatusType.MOVING.id);
+            this.crnStatus.setTaskReceive(1);
             moveY(this.crnStatus.getBay(), destinationPosY, command.getStation().intValue());
             moveZ(this.crnStatus.getLevel(), destinationPosZ, command.getStation().intValue());
             this.crnStatus.setStatus(CrnStatusType.WAITING.id);
         }else {
             this.crnStatus.setTaskNoTwo(taskNo);
             this.crnStatus.setStatusTwo(CrnStatusType.MOVING.id);
+            this.crnStatus.setTaskReceive(1);
             moveY(this.crnStatus.getBayTwo(), destinationPosY, command.getStation().intValue());
             moveZ(this.crnStatus.getLevelTwo(), destinationPosZ, command.getStation().intValue());
             this.crnStatus.setStatusTwo(CrnStatusType.WAITING.id);
@@ -104,10 +108,10 @@
         int taskMode = command.getTaskMode().intValue();
         int taskNo = command.getTaskNo().intValue();
 
-        this.crnStatus.setMode(taskMode);
         if(command.getStation() == 1) {
             this.crnStatus.setTaskNo(taskNo);
             this.crnStatus.setStatus(CrnStatusType.FETCH_MOVING.id);
+            this.crnStatus.setTaskReceive(1);
 
             moveY(this.crnStatus.getBay(), sourcePosY, command.getStation().intValue());
             moveZ(this.crnStatus.getLevel(), sourcePosZ, command.getStation().intValue());
@@ -131,6 +135,7 @@
         }else {
             this.crnStatus.setTaskNoTwo(taskNo);
             this.crnStatus.setStatusTwo(CrnStatusType.FETCH_MOVING.id);
+            this.crnStatus.setTaskReceiveTwo(1);
 
             moveY(this.crnStatus.getBayTwo(), sourcePosY, command.getStation().intValue());
             moveZ(this.crnStatus.getLevelTwo(), sourcePosZ, command.getStation().intValue());
@@ -161,10 +166,10 @@
         int taskMode = command.getTaskMode().intValue();
         int taskNo = command.getTaskNo().intValue();
 
-        this.crnStatus.setMode(taskMode);
         if(command.getStation() == 1) {
             this.crnStatus.setTaskNo(taskNo);
             this.crnStatus.setStatus(CrnStatusType.FETCH_MOVING.id);
+            this.crnStatus.setTaskReceive(1);
 
             moveY(this.crnStatus.getBay(), destinationPosY, command.getStation().intValue());
             moveZ(this.crnStatus.getLevel(), destinationPosZ, command.getStation().intValue());
@@ -178,6 +183,7 @@
         }else {
             this.crnStatus.setTaskNoTwo(taskNo);
             this.crnStatus.setStatusTwo(CrnStatusType.FETCH_MOVING.id);
+            this.crnStatus.setTaskReceiveTwo(1);
 
             moveY(this.crnStatus.getBayTwo(), destinationPosY, command.getStation().intValue());
             moveZ(this.crnStatus.getLevelTwo(), destinationPosZ, command.getStation().intValue());
@@ -198,10 +204,10 @@
         int taskMode = command.getTaskMode().intValue();
         int taskNo = command.getTaskNo().intValue();
 
-        this.crnStatus.setMode(taskMode);
         if(command.getStation() == 1) {
             this.crnStatus.setTaskNo(taskNo);
             this.crnStatus.setStatus(CrnStatusType.PUT_MOVING.id);
+            this.crnStatus.setTaskReceive(1);
 
             moveY(this.crnStatus.getBay(), destinationPosY, command.getStation().intValue());
             moveZ(this.crnStatus.getLevel(), destinationPosZ, command.getStation().intValue());
@@ -215,6 +221,7 @@
         }else {
             this.crnStatus.setTaskNoTwo(taskNo);
             this.crnStatus.setStatusTwo(CrnStatusType.PUT_MOVING.id);
+            this.crnStatus.setTaskReceiveTwo(1);
 
             moveY(this.crnStatus.getBayTwo(), destinationPosY, command.getStation().intValue());
             moveZ(this.crnStatus.getLevelTwo(), destinationPosZ, command.getStation().intValue());

--
Gitblit v1.9.1