转库单接口增加是否要子表字段

This commit is contained in:
2024-07-10 16:46:50 +08:00
parent 3de4f9b520
commit f48a82adb4
2 changed files with 8 additions and 1 deletions

View File

@@ -4,5 +4,9 @@ namespace Tnb.WarehouseMgr.Entities.Dto
{
public class CarryStockInput : PageInputBase
{
/// <summary>
/// 0 不显示 1 显示
/// </summary>
public int showDetails { get; set; } = 1;
}
}

View File

@@ -165,7 +165,10 @@ namespace Tnb.WarehouseMgr
wmsCarryStockReportCodes.Add(wmsCarryStockReportCode);
});
stockReport.Details = wmsCarryStockReportCodes;
if (input.showDetails == 1)
{
stockReport.Details = wmsCarryStockReportCodes;
}
}
return stockReport;