feat:增加入职离职
This commit is contained in:
@@ -34,7 +34,7 @@ namespace Dlhis.Basic.MealUser.Services.Implements
|
||||
|
||||
var gainfos = new List<GainfoEntity>();
|
||||
GainfoEntity aginfoEntity = request.gainfoPageResponse.Adapt<GainfoEntity>();
|
||||
aginfoEntity.Guestno = new Guid("F" + Guid.NewGuid().ToString());
|
||||
aginfoEntity.Guestno = "F" + Guid.NewGuid().ToString();
|
||||
gainfos.Add(aginfoEntity);
|
||||
await _gainfoStore.InsertAsync(GainfoStatusEnumType.Working, gainfos);
|
||||
}
|
||||
@@ -72,7 +72,7 @@ namespace Dlhis.Basic.MealUser.Services.Implements
|
||||
public async Task DimissionAsync(GainfoDImissionRequest request)
|
||||
{
|
||||
var gainfo = await _gainfoStore.Queryable(GainfoStatusEnumType.Working)
|
||||
.Where(x => x.Guestno.ToString() == request.UserId)
|
||||
.Where(x => x.Guestno == request.UserId)
|
||||
.FirstAsync();
|
||||
gainfo.ThrowIfNull($"该档案不存在");
|
||||
//添加到离职表
|
||||
@@ -92,7 +92,7 @@ namespace Dlhis.Basic.MealUser.Services.Implements
|
||||
public async Task OnboardingAsync(GainfoDImissionRequest request)
|
||||
{
|
||||
var gainfo = await _gainfoStore.Queryable(GainfoStatusEnumType.External)
|
||||
.Where(x => x.Guestno.ToString() == request.UserId)
|
||||
.Where(x => x.Guestno == request.UserId)
|
||||
.FirstAsync();
|
||||
gainfo.ThrowIfNull($"该档案不存在");
|
||||
//添加到正式表
|
||||
@@ -117,9 +117,6 @@ namespace Dlhis.Basic.MealUser.Services.Implements
|
||||
checkGainfoGuestno.ThrowIfTrue($"档案号[{request.gainfoPageResponse.Guestno}]已存在");
|
||||
}
|
||||
|
||||
public Task OnboardingAsync(GainfoDImissionRequest request)
|
||||
{
|
||||
throw new NotImplementedException();
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user