|
|
@ -123,11 +123,11 @@ namespace Shentun.Peis.ThirdInterfaces |
|
|
Type type = typeof(ThirdInterfaceTypeFlag); |
|
|
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
|
|
|
//if (entity.ThirdInterfaceType != ThirdInterfaceTypeFlag.LisRequest
|
|
|
// && entity.ThirdInterfaceType != ThirdInterfaceTypeFlag.ChargeRequest
|
|
|
// && entity.ThirdInterfaceType != ThirdInterfaceTypeFlag.ChargeRequest
|
|
|
// && entity.ThirdInterfaceType != ThirdInterfaceTypeFlag.ImportLisResult
|
|
|
// && entity.ThirdInterfaceType != ThirdInterfaceTypeFlag.ImportLisResult
|
|
|
|