From 0741e01ffbfb334399da40ab8266b49ef0f9e5a0 Mon Sep 17 00:00:00 2001
From: pjb <123456>
Date: 星期四, 16 十月 2025 10:04:34 +0800
Subject: [PATCH] 新增测试数据库
---
src/main/java/com/zy/common/service/CommonService.java | 7 ++++---
1 files changed, 4 insertions(+), 3 deletions(-)
diff --git a/src/main/java/com/zy/common/service/CommonService.java b/src/main/java/com/zy/common/service/CommonService.java
index 33b8dd8..150e92b 100644
--- a/src/main/java/com/zy/common/service/CommonService.java
+++ b/src/main/java/com/zy/common/service/CommonService.java
@@ -179,9 +179,10 @@
if (locMasts.size() <= 4) {
switch (locType) {
case 0:
- case 2:
- return getLocNoRunNew(ioType, sourceSite, 3);
+ return getLocNoRunNew(ioType, sourceSite, 1);
case 1:
+ return getLocNoRunNew(ioType, sourceSite, 2);
+ case 2:
case 3:
throw new CoolException("褰撳墠搴撲綅鍓╀綑鍥涗釜鐢ㄤ簬绉诲簱锛屾棤娉曞崰鐢細" + locType);
default:
@@ -194,7 +195,7 @@
locMast = first.get();
} else {
// 娣卞簱浣嶉噷闈㈡病鏈変粠娴呭簱浣嶉噷闈㈠彇
- Optional<LocMast> first2 = locMasts.stream().filter(o -> o.getRow1() == 2 || o.getRow1() == 3 || o.getRow1() == 5 || o.getRow1() == 7).findFirst();
+ Optional<LocMast> first2 = locMasts.stream().filter(o -> o.getRow1() == 2 || o.getRow1() == 3 || o.getRow1() == 6 || o.getRow1() == 7).findFirst();
if(first2.isPresent()) {
locMast = first2.get();
}
--
Gitblit v1.9.1