111
This commit is contained in:
+3
-4
@@ -133,12 +133,11 @@ public class OnboardingDepartmentService : DbRepository<ObDepartment>, IOnboardi
|
||||
/// </summary>
|
||||
private static void NormalizeInput(OnboardingDepartmentAddInput input)
|
||||
{
|
||||
input.DepartmentCode = input.DepartmentCode?.Trim();
|
||||
input.DepartmentCode = OnboardingCodeValidator.Normalize(input.DepartmentCode, "部门编码", 50);
|
||||
input.DepartmentName = input.DepartmentName?.Trim();
|
||||
if (string.IsNullOrWhiteSpace(input.DepartmentCode)
|
||||
|| string.IsNullOrWhiteSpace(input.DepartmentName))
|
||||
if (string.IsNullOrWhiteSpace(input.DepartmentName))
|
||||
{
|
||||
throw Oops.Bah("请填写部门编码和部门名称");
|
||||
throw Oops.Bah("请填写部门名称");
|
||||
}
|
||||
|
||||
if (input.Status != "enable" && input.Status != "disable")
|
||||
|
||||
Reference in New Issue
Block a user