修复bug
This commit is contained in:
@@ -57,7 +57,7 @@ namespace WMS.Web.Domain.Services
|
|||||||
IDbContextTransaction _transaction = _transactionRepositories.GetTransaction();
|
IDbContextTransaction _transaction = _transactionRepositories.GetTransaction();
|
||||||
bool isRollback = false;
|
bool isRollback = false;
|
||||||
bool isSuccess = true;
|
bool isSuccess = true;
|
||||||
entity = await _outStockRepositories.Add(entity, true);
|
entity = await _outStockRepositories.Add(entity, false);
|
||||||
if (entity == null) isRollback = true;
|
if (entity == null) isRollback = true;
|
||||||
|
|
||||||
//提交事务
|
//提交事务
|
||||||
|
|||||||
@@ -52,7 +52,7 @@ namespace WMS.Web.Domain.Services
|
|||||||
IDbContextTransaction _transaction = _transactionRepositories.GetTransaction();
|
IDbContextTransaction _transaction = _transactionRepositories.GetTransaction();
|
||||||
bool isRollback = false;
|
bool isRollback = false;
|
||||||
bool isSuccess = true;
|
bool isSuccess = true;
|
||||||
entity = await _takeStockRepositories.Add(entity, true);
|
entity = await _takeStockRepositories.Add(entity, false);
|
||||||
if (entity == null) isRollback = true;
|
if (entity == null) isRollback = true;
|
||||||
|
|
||||||
//提交事务
|
//提交事务
|
||||||
|
|||||||
Reference in New Issue
Block a user