mirror of
https://gitee.com/dotnetchina/OpenAuth.Net.git
synced 2025-07-15 23:13:40 +08:00
fix bugs
This commit is contained in:
parent
c8dec703a7
commit
7aff8036ef
@ -26,7 +26,7 @@ namespace OpenAuth.App
|
|||||||
|
|
||||||
public void Update(ApplyTransitionHistory historyItem)
|
public void Update(ApplyTransitionHistory historyItem)
|
||||||
{
|
{
|
||||||
_repository.Update(historyItem);
|
_repository.Update(u =>u.Id, historyItem);
|
||||||
}
|
}
|
||||||
|
|
||||||
public void DeleteByProcess(Guid processId)
|
public void DeleteByProcess(Guid processId)
|
||||||
|
@ -22,8 +22,8 @@ namespace OpenAuth.App
|
|||||||
{
|
{
|
||||||
if (model.Id == Guid.Empty)
|
if (model.Id == Guid.Empty)
|
||||||
{
|
{
|
||||||
var obj = model.CopyTo<CommonApply>();
|
model.ApplyTime = DateTime.Now;
|
||||||
_repository.Add(obj);
|
_repository.Add(model);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
@ -31,6 +31,7 @@ namespace OpenAuth.App
|
|||||||
{
|
{
|
||||||
UserId = model.UserId,
|
UserId = model.UserId,
|
||||||
Name = model.Name,
|
Name = model.Name,
|
||||||
|
Comment = model.Comment
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -145,8 +145,8 @@ namespace OpenAuth.Mvc.Controllers
|
|||||||
/// </summary>
|
/// </summary>
|
||||||
/// <param name="id">流程实例ID</param>
|
/// <param name="id">流程实例ID</param>
|
||||||
/// <param name="commandName">命令名称</param>
|
/// <param name="commandName">命令名称</param>
|
||||||
/// <param name="goodsApply">申请实体</param>
|
/// <param name="apply">申请实体</param>
|
||||||
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();
|
var currentUser =AuthUtil.GetCurrentUser().User.Id.ToString();
|
||||||
|
|
||||||
|
@ -32,7 +32,7 @@
|
|||||||
<tr>
|
<tr>
|
||||||
<td>
|
<td>
|
||||||
<label for="Comment" class="control-label x120">申请描述:</label>
|
<label for="Comment" class="control-label x120">申请描述:</label>
|
||||||
<input type="text" id="Comment" name="Comment" value="" />
|
<textarea type="text" id="Comment" name="Comment" value=""></textarea>
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
</tbody>
|
</tbody>
|
||||||
|
Binary file not shown.
Loading…
Reference in New Issue
Block a user