fix 增加人员类型
This commit is contained in:
@@ -1,4 +1,5 @@
|
|||||||
using Dlhis.Entity.Basic.Enums;
|
using Dlhis.Entity.Basic.Enums;
|
||||||
|
using Kurisu.AspNetCore.Utils.Extensions;
|
||||||
|
|
||||||
namespace Dlhis.External.OpenApi.Response;
|
namespace Dlhis.External.OpenApi.Response;
|
||||||
|
|
||||||
@@ -6,6 +7,9 @@ public class GainfoOpenResponse
|
|||||||
{
|
{
|
||||||
public string Code { get; set; }
|
public string Code { get; set; }
|
||||||
|
|
||||||
|
public GainfoUserTypeEnumType Type { get; set; }
|
||||||
|
public string TypeDesc => Type.GetDescription();
|
||||||
|
|
||||||
public string Name { get; set; }
|
public string Name { get; set; }
|
||||||
|
|
||||||
public GenderEnumType Gender { get; set; }
|
public GenderEnumType Gender { get; set; }
|
||||||
|
|||||||
@@ -42,6 +42,7 @@ public class GainfoService : IGainfoService
|
|||||||
.Select((x, d) => new GainfoOpenResponse
|
.Select((x, d) => new GainfoOpenResponse
|
||||||
{
|
{
|
||||||
Code = x.Code,
|
Code = x.Code,
|
||||||
|
Type = SqlFunc.IIF(x.Type == GainfoUserTypeEnumType.SecurityWhite, GainfoUserTypeEnumType.Normal, x.Type),
|
||||||
DepartmentNo = x.DepartmentNo,
|
DepartmentNo = x.DepartmentNo,
|
||||||
DepartmentName = d.Name,
|
DepartmentName = d.Name,
|
||||||
Name = x.Name,
|
Name = x.Name,
|
||||||
@@ -62,6 +63,7 @@ public class GainfoService : IGainfoService
|
|||||||
.Select((x, d) => new GainfoOpenResponse
|
.Select((x, d) => new GainfoOpenResponse
|
||||||
{
|
{
|
||||||
Code = x.Code,
|
Code = x.Code,
|
||||||
|
Type = SqlFunc.IIF(x.Type == GainfoUserTypeEnumType.SecurityWhite, GainfoUserTypeEnumType.Normal, x.Type),
|
||||||
DepartmentNo = x.DepartmentNo,
|
DepartmentNo = x.DepartmentNo,
|
||||||
DepartmentName = d.Name,
|
DepartmentName = d.Name,
|
||||||
Name = x.Name,
|
Name = x.Name,
|
||||||
|
|||||||
Reference in New Issue
Block a user