Commit 2ed8743c by 陶然

优化

parent 8ec33319
......@@ -72,6 +72,8 @@ namespace Kivii.Seeyon.Transforms
public Guid Kvid { get; set; }
public List<Guid> Kvids { get; set; }
public object Result { get; set; }
public string Message { get; set; }
......@@ -83,31 +85,16 @@ namespace Kivii.Seeyon.Transforms
var instance = Activator.CreateInstance(type) as IEntityIsSeeyonApply;
if (instance == null) return null;
if (Kvids.IsNullOrEmpty())
{
var results = instance.OnGetApplyResult(Kvid, Result, Message);
return results;
}
}
[Api(Description = "OA结果调用")]
public class ApplyResult2 : RestfulExecution<Apply>
{
public string FormType { get; set; }
public List<Guid> Kvids { get; set; }
public object Result { get; set; }
public string Message { get; set; }
public override object OnExecution(IRequest req, IResponse res)
else
{
FormType.ThrowIfNull("请传入业务实体FormType");
var type = Kivii.Text.AssemblyUtils.FindType(FormType);
var instance = Activator.CreateInstance(type) as IEntityIsSeeyonApply;
if (instance == null) return null;
var results = instance.OnGetApplyResult(Kvids, Result, Message);
return results;
}
}
}
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment