- 出库记录表查询接口由 GET 改为 POST,支持更复杂参数 - 新增出库记录接口参数由 FromBody 改为 FromQuery - MmInventoryDto 增加 BatchNo 字段,支持按批次号查询 - MmRecordOutboundDto 的 CreatedTime 改为时间区间数组 - 服务层查询逻辑支持批次号和时间区间查询 - 优化 using 引用顺序,提升代码可维护性
57 lines
1.4 KiB
C#
57 lines
1.4 KiB
C#
|
|
namespace DOAN.Model.BZFM.Dto
|
|
{
|
|
/// <summary>
|
|
/// 库存表查询对象
|
|
/// </summary>
|
|
public class MmInventoryQueryDto : PagerInfo
|
|
{
|
|
public string WarehouseCode { get; set; }
|
|
public string MaterialCode { get; set; }
|
|
|
|
public string WarehouseName { get; set; }
|
|
|
|
public string BatchNo { get; set; }
|
|
}
|
|
|
|
/// <summary>
|
|
/// 库存表输入输出对象
|
|
/// </summary>
|
|
public class MmInventoryDto
|
|
{
|
|
[Required(ErrorMessage = "主键ID不能为空")]
|
|
public int Id { get; set; }
|
|
|
|
[Required(ErrorMessage = "物料编码不能为空")]
|
|
public string MaterialCode { get; set; }
|
|
|
|
public string MaterialName { get; set; }
|
|
|
|
[Required(ErrorMessage = "仓库编码不能为空")]
|
|
public string WarehouseCode { get; set; }
|
|
|
|
public string WarehouseName { get; set; }
|
|
|
|
[Required(ErrorMessage = "库位编码不能为空")]
|
|
public string LocationCode { get; set; }
|
|
|
|
public string LocationName { get; set; }
|
|
|
|
public string BatchNo { get; set; }
|
|
|
|
public decimal CurrentQty { get; set; }
|
|
|
|
public string Unit { get; set; }
|
|
|
|
public DateTime? ProductionDate { get; set; }
|
|
|
|
public DateTime? ExpiryDate { get; set; }
|
|
|
|
public DateTime? LastUpdatedTime { get; set; }
|
|
|
|
public DateTime? CreatedTime { get; set; }
|
|
|
|
|
|
|
|
}
|
|
} |