This commit is contained in:
yubaolee
2016-09-07 18:57:58 +08:00
parent c8dec703a7
commit 7aff8036ef
5 changed files with 7 additions and 6 deletions

View File

@@ -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)

View File

@@ -22,8 +22,8 @@ namespace OpenAuth.App
{
if (model.Id == Guid.Empty)
{
var obj = model.CopyTo<CommonApply>();
_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
});
}