diff --git a/OpenAuth.App/ApplyTransitionHistoryApp.cs b/OpenAuth.App/ApplyTransitionHistoryApp.cs index 80bf4976..0136bd76 100644 --- a/OpenAuth.App/ApplyTransitionHistoryApp.cs +++ b/OpenAuth.App/ApplyTransitionHistoryApp.cs @@ -26,7 +26,7 @@ namespace OpenAuth.App public void Update(ApplyTransitionHistory historyItem) { - _repository.Update(historyItem); + _repository.Update(u =>u.Id, historyItem); } public void DeleteByProcess(Guid processId) diff --git a/OpenAuth.App/CommonApplyApp.cs b/OpenAuth.App/CommonApplyApp.cs index d72ea88b..c28077f0 100644 --- a/OpenAuth.App/CommonApplyApp.cs +++ b/OpenAuth.App/CommonApplyApp.cs @@ -22,8 +22,8 @@ namespace OpenAuth.App { if (model.Id == Guid.Empty) { - var obj = model.CopyTo(); - _repository.Add(obj); + model.ApplyTime = DateTime.Now; + _repository.Add(model); } else { @@ -31,6 +31,7 @@ namespace OpenAuth.App { UserId = model.UserId, Name = model.Name, + Comment = model.Comment }); } diff --git a/OpenAuth.Mvc/Controllers/CommonAppliesController.cs b/OpenAuth.Mvc/Controllers/CommonAppliesController.cs index 711a146d..ad4ad7f5 100644 --- a/OpenAuth.Mvc/Controllers/CommonAppliesController.cs +++ b/OpenAuth.Mvc/Controllers/CommonAppliesController.cs @@ -145,8 +145,8 @@ namespace OpenAuth.Mvc.Controllers /// /// 流程实例ID /// 命令名称 - /// 申请实体 - private void ExecuteCommand(Guid id, string commandName, CommonApply goodsApply) + /// 申请实体 + private void ExecuteCommand(Guid id, string commandName, CommonApply apply) { var currentUser =AuthUtil.GetCurrentUser().User.Id.ToString(); diff --git a/OpenAuth.Mvc/Views/CommonApplies/Index.cshtml b/OpenAuth.Mvc/Views/CommonApplies/Index.cshtml index 1c8128bd..b04ed607 100644 --- a/OpenAuth.Mvc/Views/CommonApplies/Index.cshtml +++ b/OpenAuth.Mvc/Views/CommonApplies/Index.cshtml @@ -32,7 +32,7 @@ - + diff --git a/Workflow初始化脚本.sql b/Workflow初始化脚本.sql index 82d77e07..78359cfb 100644 Binary files a/Workflow初始化脚本.sql and b/Workflow初始化脚本.sql differ