From c5c290a0da0a73371f3890a41cc66e02cd6b24a6 Mon Sep 17 00:00:00 2001 From: Junjie <fallin.jie@qq.com> Date: 星期一, 16 十月 2023 16:56:39 +0800 Subject: [PATCH] #检测目标楼层车数量是否小于允许的最大数量 --- src/main/java/com/zy/common/model/LocTypeDto.java | 8 ++------ 1 files changed, 2 insertions(+), 6 deletions(-) diff --git a/src/main/java/com/zy/common/model/LocTypeDto.java b/src/main/java/com/zy/common/model/LocTypeDto.java index 76c51eb..7dc5c7b 100644 --- a/src/main/java/com/zy/common/model/LocTypeDto.java +++ b/src/main/java/com/zy/common/model/LocTypeDto.java @@ -23,14 +23,10 @@ } public LocTypeDto(StaProtocol staProtocol) { - if (staProtocol.isHigh() == staProtocol.isLow()) { + if (staProtocol.getLocType1() == null || staProtocol.getLocType1() == 0) { throw new CoolException("plc楂樹綆妫�娴嬪紓甯�"); } - if (staProtocol.isLow()) { - this.locType1 = 1; // 浣庡簱浣� - } else { - this.locType1 = 2; // 楂樺簱浣� - } + this.locType1 = staProtocol.getLocType1(); } /** -- Gitblit v1.9.1