fix 外包工号约束

This commit is contained in:
2026-03-30 10:11:54 +08:00
parent 7dd80aac99
commit 33c0304e55

View File

@@ -86,6 +86,11 @@ public class GainfoOutsourceRequest : IValidatableObject
{
yield return new ValidationResult($"工号[{Code}]不能包含中文", new[] { nameof(Code) });
}
if (Code.StartsWith("LS"))
{
yield return new ValidationResult($"工号[{Code}]不能以LS开头", new[] { nameof(Code) });
}
}
}
}