增加了 当控制号=999时下一个归1

This commit is contained in:
anerx 2025-03-23 17:33:48 +08:00
parent 9e37743044
commit 702781151e

View File

@ -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);