Jelajahi Sumber

解决ndc消息反馈 覆盖取消任务状态问题

zhangxin 1 tahun lalu
induk
melakukan
c0c87c1d0f

+ 2 - 1
warewms-ams/src/main/java/com/warewms/ams/ndc/service/impl/SocketBufferServiceImpl.java

@@ -385,7 +385,8 @@ public class SocketBufferServiceImpl implements SocketBufferService {
                 if (taskBean != null) {
 
                     taskBean.setAciAccept(1);
-                    taskBean.setSystemStatus((parameters[3] & 0xff));
+                    taskBean.setSystemStatus(ObjectUtil.equals(taskBean.getEvent(), AmsConstant.TASK_STS.TASK7.getKey()) ?
+                            AmsConstant.TASK_STS.TASK7.getValue() : (parameters[3] & 0xff));
                     taskBean.setServerAck(0);
                     taskBean.setIsDelete(null);
                     taskBean.setRoadway(ndcStatusValue);