This commit is contained in:
tongfei
2023-11-09 18:07:02 +08:00
2 changed files with 12 additions and 0 deletions

View File

@@ -9,6 +9,14 @@ namespace WMS.Web.Core.Dto.MoveBoxRecord
/// </summary>
public class MoveBoxRecordQueryRequest : PaginationBaseRequestDto
{
/// <summary>
/// 原仓位编码
/// </summary>
public int? SrcSubStockId { get; set; }
/// <summary>
/// 目标仓位编码
/// </summary>
public int? DestSubStockId { get; set; }
/// <summary>
/// 类型1- 整箱移货上级2-整箱移货下级
/// </summary>

View File

@@ -91,6 +91,10 @@ namespace WMS.Web.Repositories
.OrderByDescending(o => o.moveBox.Id)
.Where(adv => 1 == 1);
if(dto.SrcSubStockId!=null)
query = query.Where(w => w.moveBox.SrcSubStockId == dto.SrcSubStockId);
if (dto.DestSubStockId != null)
query = query.Where(w => w.moveBox.DestSubStockId == dto.DestSubStockId);
if (ids.Count() > 0)
query = query.Where(w => ids.Contains(w.moveBox.CreatorId));
if (!string.IsNullOrEmpty(dto.Box))