From 13d295c4210ee589b3e524bd157f85c63bca5a3e Mon Sep 17 00:00:00 2001
From: zwl <1051256694@qq.com>
Date: 星期四, 30 四月 2026 13:12:08 +0800
Subject: [PATCH] 1.出库单据转历史档有问题 2.新增单据历史档 3.修复入库完成转明细失败
---
src/test/java/com/zy/common/service/CommonServiceLocTypeStrategyTest.java | 14 ++++++++++++++
1 files changed, 14 insertions(+), 0 deletions(-)
diff --git a/src/test/java/com/zy/common/service/CommonServiceLocTypeStrategyTest.java b/src/test/java/com/zy/common/service/CommonServiceLocTypeStrategyTest.java
index 8a90366..88fdb96 100644
--- a/src/test/java/com/zy/common/service/CommonServiceLocTypeStrategyTest.java
+++ b/src/test/java/com/zy/common/service/CommonServiceLocTypeStrategyTest.java
@@ -160,4 +160,18 @@
assertEquals(Short.valueOf((short) 0), stages.get(2).getLocType2());
assertEquals(Short.valueOf((short) 2), stages.get(2).getLocType3());
}
+
+ @Test
+ void matchesTargetLev_shouldOnlyAcceptRequestedLevel() {
+ LocMast locMast = new LocMast();
+ locMast.setLev1(8);
+
+ Boolean matchEight = ReflectionTestUtils.invokeMethod(commonService, "matchesTargetLev", locMast, 8);
+ Boolean matchSeven = ReflectionTestUtils.invokeMethod(commonService, "matchesTargetLev", locMast, 7);
+ Boolean matchNull = ReflectionTestUtils.invokeMethod(commonService, "matchesTargetLev", locMast, null);
+
+ assertTrue(Boolean.TRUE.equals(matchEight));
+ assertFalse(Boolean.TRUE.equals(matchSeven));
+ assertTrue(Boolean.TRUE.equals(matchNull));
+ }
}
--
Gitblit v1.9.1