This commit is contained in:
2025-07-25 22:23:48 +08:00
parent a5ed0ba6c3
commit 74dd275168
5 changed files with 25 additions and 7 deletions

View File

@@ -165,19 +165,22 @@ namespace MyCode.Project.Services.Implementation
var type = UnityHelper.GetUnityContainer().Resolve(Type.GetType(process.FuncClass));
MethodInfo method = type.GetType().GetMethod(process.FuncMethod);
object result = new object();
if (!string.IsNullOrEmpty(process.ParamInfo))
{
method.Invoke(type, new object[] { process.ParamInfo });
result= method.Invoke(type, new object[] { process.ParamInfo });
}
else
{
method.Invoke(type, new object[] { });
result= method.Invoke(type, new object[] { });
}
if (result == null)
result = "";
process.FuncStatus = (int)WorkProcessStatus.Complete;
process.ExecuteTime = DateTime.Now;
process.ExceptionInfo = string.Empty;
process.Result= result.ToString();
_SysWorkProcessRepository.Update(process);
}