111
This commit is contained in:
+5
-5
@@ -138,7 +138,7 @@ public class OnboardingElectronicSignService : IOnboardingElectronicSignService
|
||||
{
|
||||
var employee = await _db.Queryable<ObEmployee>()
|
||||
.InSingleAsync(task.EmployeeId.Value)
|
||||
?? throw Oops.Bah("正式员工档案不存在,不能发起电子签");
|
||||
?? throw Oops.Bah("员工档案不存在,不能发起电子签");
|
||||
if (string.IsNullOrWhiteSpace(employee.EmployeeName))
|
||||
throw Oops.Bah("正式员工姓名为空,不能发起电子签");
|
||||
if (string.IsNullOrWhiteSpace(employee.Phone))
|
||||
@@ -1417,7 +1417,7 @@ public class OnboardingElectronicSignService : IOnboardingElectronicSignService
|
||||
}
|
||||
|
||||
if (differentFields.Count > 0)
|
||||
throw Oops.Bah($"正式员工档案的{string.Join("、", differentFields)}与审核通过的入职登记资料不一致,请先核对并修正后再发起电子签");
|
||||
throw Oops.Bah($"员工档案的{string.Join("、", differentFields)}与审核通过的入职登记资料不一致,请先核对并修正后再发起电子签");
|
||||
}
|
||||
|
||||
private static string NormalizeIdentityValue(string value)
|
||||
@@ -1468,7 +1468,7 @@ public class OnboardingElectronicSignService : IOnboardingElectronicSignService
|
||||
private static void ValidateTaskCanSign(ObOnboardingTask task)
|
||||
{
|
||||
if (!task.EmployeeId.HasValue)
|
||||
throw Oops.Bah("入职任务尚未生成正式员工档案,不能发起电子签");
|
||||
throw Oops.Bah("入职任务尚未生成员工档案,不能发起电子签");
|
||||
if (task.TaskStatus != OnboardingTaskStatus.Approved
|
||||
&& task.TaskStatus != OnboardingTaskStatus.Archived)
|
||||
{
|
||||
@@ -1527,7 +1527,7 @@ public class OnboardingElectronicSignService : IOnboardingElectronicSignService
|
||||
bool processAllowed)
|
||||
{
|
||||
if (!task.EmployeeId.HasValue)
|
||||
return "审核通过并生成正式员工档案后才可发起电子签";
|
||||
return "审核通过并生成员工档案后才可发起电子签";
|
||||
if (!taskAllowed)
|
||||
return "当前入职任务状态不能发起电子签";
|
||||
if (!processAllowed)
|
||||
@@ -1542,7 +1542,7 @@ public class OnboardingElectronicSignService : IOnboardingElectronicSignService
|
||||
bool reinitiateAllowed)
|
||||
{
|
||||
if (!task.EmployeeId.HasValue)
|
||||
return "审核通过并生成正式员工档案后才可重新发起电子签";
|
||||
return "审核通过并生成员工档案后才可重新发起电子签";
|
||||
if (!taskAllowed)
|
||||
return "当前入职任务状态不能重新发起电子签";
|
||||
if (process == null)
|
||||
|
||||
Reference in New Issue
Block a user