修复bug

This commit is contained in:
18942506660
2024-03-20 14:58:23 +08:00
parent b2f16c97db
commit ed42cc20f8
2 changed files with 7 additions and 7 deletions

View File

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