fix 增加人员类型

This commit is contained in:
2025-06-27 20:11:23 +08:00
parent 502a17589d
commit 7f0890f0ac
2 changed files with 8 additions and 2 deletions

View File

@@ -42,6 +42,7 @@ public class GainfoService : IGainfoService
.Select((x, d) => new GainfoOpenResponse
{
Code = x.Code,
Type = SqlFunc.IIF(x.Type == GainfoUserTypeEnumType.SecurityWhite, GainfoUserTypeEnumType.Normal, x.Type),
DepartmentNo = x.DepartmentNo,
DepartmentName = d.Name,
Name = x.Name,
@@ -62,6 +63,7 @@ public class GainfoService : IGainfoService
.Select((x, d) => new GainfoOpenResponse
{
Code = x.Code,
Type = SqlFunc.IIF(x.Type == GainfoUserTypeEnumType.SecurityWhite, GainfoUserTypeEnumType.Normal, x.Type),
DepartmentNo = x.DepartmentNo,
DepartmentName = d.Name,
Name = x.Name,
@@ -71,7 +73,7 @@ public class GainfoService : IGainfoService
})
.ToListAsync();
return gainfos.Concat(gainfoLeaves).ToList();
return gainfos.Concat(gainfoLeaves).ToList();
}
/// <inheritdoc />