From 4e70a88e1ed6704ec6fca7baac8d0dbe95d0feb1 Mon Sep 17 00:00:00 2001 From: pang.jiabao <pang_jiabao@163.com> Date: 星期三, 26 二月 2025 08:57:55 +0800 Subject: [PATCH] agv站点修改 --- src/main/java/com/zy/common/model/LocTypeDto.java | 10 +++------- 1 files changed, 3 insertions(+), 7 deletions(-) diff --git a/src/main/java/com/zy/common/model/LocTypeDto.java b/src/main/java/com/zy/common/model/LocTypeDto.java index 454a5f6..407062d 100644 --- a/src/main/java/com/zy/common/model/LocTypeDto.java +++ b/src/main/java/com/zy/common/model/LocTypeDto.java @@ -31,14 +31,10 @@ } public LocTypeDto(StaProtocol staProtocol) { -// if (staProtocol.isHigh() == staProtocol.isLow()) { -// throw new CoolException("plc楂樹綆妫�娴嬪紓甯�"); -// } - if (staProtocol.getSiteId() == 106){ - this.locType1 = 2; // 楂樺簱浣� - }else { - this.locType1 = 1; // 浣庡簱浣� + if (staProtocol.locType.id.shortValue()!=1 && staProtocol.locType.id.shortValue()!=2 && staProtocol.locType.id.shortValue()!=3) { + throw new CoolException("plc楂樹綆妫�娴嬪紓甯�"); } + this.locType1 = staProtocol.locType.id.shortValue(); } /** -- Gitblit v1.9.1