fix:修改档案表crud

This commit is contained in:
cheche
2023-12-28 15:37:49 +08:00
parent a32d66b77e
commit 25f7b3270c
8 changed files with 342 additions and 67 deletions

View File

@@ -35,10 +35,10 @@ public class MealUserService : IMealUserService
//todo 获取档案信息
var gainfoEntity = await _gainfoStore.Queryable(GainfoStatusEnumType.Working)
.Where(x => x.Guestno == request.UserId)
.Where(x => x.Guestno.ToString() == request.UserId)
.FirstAsync();
var b = gainfoEntity == null ? true : false;
b.ThrowIfTrue($"档案[{request.UserId}]不存在");
gainfoEntity.ThrowIfNull($"档案[{request.UserId}]不存在");
var entity = new CanteenUserEntity
{