修复bug
This commit is contained in:
@@ -101,7 +101,7 @@ namespace WMS.Web.Repositories
|
||||
_transaction.Commit();
|
||||
return true;
|
||||
}
|
||||
catch(Exception ex)
|
||||
catch (Exception ex)
|
||||
{
|
||||
if (_transaction != null)
|
||||
_transaction.Rollback();
|
||||
@@ -160,9 +160,9 @@ namespace WMS.Web.Repositories
|
||||
.OrderByDescending(o => o.moveBox.Id)
|
||||
.Where(adv => 1 == 1);
|
||||
|
||||
if (dto.SrcSubStockCode != null)
|
||||
if (!string.IsNullOrEmpty(dto.SrcSubStockCode))
|
||||
query = query.Where(w => w.moveBox.SrcSubStockCode == dto.SrcSubStockCode);
|
||||
if (dto.DestSubStockCode != null)
|
||||
if (!string.IsNullOrEmpty(dto.DestSubStockCode))
|
||||
query = query.Where(w => w.moveBox.DestSubStockCode == dto.DestSubStockCode);
|
||||
if (!string.IsNullOrEmpty(dto.Creator))
|
||||
query = query.Where(w => ids.Contains(w.moveBox.CreatorId));
|
||||
|
||||
Reference in New Issue
Block a user