diff --git a/Learun.Framework.Ultimate V7/Learun.Application.WebApi/Modules/NewWorkFlowApi.cs b/Learun.Framework.Ultimate V7/Learun.Application.WebApi/Modules/NewWorkFlowApi.cs
index 18cb62eee..94509397a 100644
--- a/Learun.Framework.Ultimate V7/Learun.Application.WebApi/Modules/NewWorkFlowApi.cs
+++ b/Learun.Framework.Ultimate V7/Learun.Application.WebApi/Modules/NewWorkFlowApi.cs
@@ -46,6 +46,9 @@ namespace Learun.Application.WebApi.Modules
Post["/revoke"] = RevokeFlow;
Post["/refer"] = ReferFlow;
+ Post["/instance"] = SaveInstanceForms;
+ Post["/auditors"] = SaveAuditors;
+
}
private NWFSchemeIBLL nWFSchemeIBLL = new NWFSchemeBLL();
private NWFProcessIBLL nWFProcessIBLL = new NWFProcessBLL();
@@ -379,6 +382,41 @@ namespace Learun.Application.WebApi.Modules
nWFProcessIBLL.ReferFlow(parameter.processId, parameter.taskId, userInfo);
return Success("确认成功");
}
+ ///
+ /// app保存实例
+ ///
+ ///
+ ///
+ public Response SaveInstanceForms(dynamic _)
+ {
+ List param = this.GetReqData>();
+
+ foreach (var item in param)
+ {
+ formSchemeIBLL.SaveInstanceForm(item.schemeInfoId, item.processIdName, item.keyValue, item.formData);
+ }
+ return Success("保存成功!");
+ }
+ ///
+ /// app保存审核人
+ ///
+ ///
+ ///
+ public Response SaveAuditors(dynamic _)
+ {
+ var param = this.GetReqData();
+ UserInfo userInfo = LoginUserInfo.Get();
+ try
+ {
+ nWFProcessIBLL.AuditFlow(param.operationCode, param.operationName, param.processId, param.taskId, param.des, param.auditors, param.stamp, param.signUrl, userInfo);
+ return Success("流程审批成功");
+ }
+ catch (System.Exception ex)
+ {
+
+ return Fail(ex.Message);
+ }
+ }
private class flowParam
{
@@ -443,6 +481,8 @@ namespace Learun.Application.WebApi.Modules
/// 签字图片信息
///
public string signUrl { get; set; }
+
+ public string stamp { get; set; }
}
///