|
@@ -1260,11 +1260,11 @@ namespace OASystem.API.Controllers
|
|
if (result < 1)
|
|
if (result < 1)
|
|
{
|
|
{
|
|
rst = -1;
|
|
rst = -1;
|
|
|
|
+ _groupRepository.RollbackTran();
|
|
|
|
+ return Ok(JsonView(false, "保存失败并回滚!"));
|
|
}
|
|
}
|
|
else
|
|
else
|
|
{
|
|
{
|
|
- _groupRepository.RollbackTran();
|
|
|
|
- return Ok(JsonView(false, "保存失败并回滚!"));
|
|
|
|
}
|
|
}
|
|
}
|
|
}
|
|
_groupRepository.CommitTran();
|
|
_groupRepository.CommitTran();
|