Browse Source

预约

bjmzak
DESKTOP-G961P6V\Zhh 1 year ago
parent
commit
97a1864253
  1. 10
      src/Shentun.Peis.Domain/ThirdInterfaces/ThirdInterfaceManager.cs

10
src/Shentun.Peis.Domain/ThirdInterfaces/ThirdInterfaceManager.cs

@ -123,11 +123,11 @@ namespace Shentun.Peis.ThirdInterfaces
Type type = typeof(ThirdInterfaceTypeFlag);
//从规定的约束内搜索字段
//约束有是静态成员,是公共成员,和返回父级的公共静态成员,
FieldInfo[] fields = type.GetFields(BindingFlags.Static | BindingFlags.Public | BindingFlags.FlattenHierarchy);
if (fields.Where(o=>o.GetValue(null) == entity.ThirdInterfaceType).Count() == 0)
{
throw new ArgumentException($"接口类型参数为:{entity.ThirdInterfaceType},是无效值");
}
//FieldInfo[] fields = type.GetFields(BindingFlags.Static | BindingFlags.Public | BindingFlags.FlattenHierarchy);
//if (fields.Where(o=>o.GetValue(null) == entity.ThirdInterfaceType).Count() == 0)
//{
// throw new ArgumentException($"接口类型参数为:{entity.ThirdInterfaceType},是无效值");
//}
//if (entity.ThirdInterfaceType != ThirdInterfaceTypeFlag.LisRequest
// && entity.ThirdInterfaceType != ThirdInterfaceTypeFlag.ChargeRequest
// && entity.ThirdInterfaceType != ThirdInterfaceTypeFlag.ImportLisResult

Loading…
Cancel
Save