From 702781151e3c89af2419d0225513bdd93a63173b Mon Sep 17 00:00:00 2001 From: anerx <512464164@qq.com> Date: Sun, 23 Mar 2025 17:33:48 +0800 Subject: [PATCH] =?UTF-8?q?=E5=A2=9E=E5=8A=A0=E4=BA=86=20=E5=BD=93?= =?UTF-8?q?=E6=8E=A7=E5=88=B6=E5=8F=B7=3D999=E6=97=B6=E4=B8=8B=E4=B8=80?= =?UTF-8?q?=E4=B8=AA=E5=BD=921?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Seyounth.Hyosung.Runtime/HyosungRuntime.cs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Seyounth.Hyosung.Runtime/HyosungRuntime.cs b/Seyounth.Hyosung.Runtime/HyosungRuntime.cs index 6c54b4b..5b31baa 100644 --- a/Seyounth.Hyosung.Runtime/HyosungRuntime.cs +++ b/Seyounth.Hyosung.Runtime/HyosungRuntime.cs @@ -312,6 +312,8 @@ public class HyosungRuntime( control = await hyosungWmsService.GetControlNo(variety, grade); else control = control + 1; + if (control == 1000) + control = 1; var isEven = control % 2 == 0; await varietyService.SetLastNo(variety.Id, control.Value); await trayService.SetControlNoAsync(arg, control.Value);