新增库存表模块:含实体、DTO、Service及API接口

本次提交实现了库存表(MmInventory)模块的全套后端代码,包括:
- 新增 MmInventoryController,提供库存表的增删改查(CRUD)API,集成权限与日志注解;
- 新增 MmInventory 实体类,定义库存表数据库字段映射;
- 新增 MmInventoryDto、MmInventoryQueryDto 用于数据传输和分页查询,含字段校验;
- 新增 IMmInventoryService 接口及其实现 MmInventoryService,支持库存表的业务操作和动态查询。

该提交为库存管理功能提供了完整的后端支撑。
This commit is contained in:
2025-12-24 19:09:42 +08:00
parent 04e086b9ea
commit 8ef5202077
5 changed files with 339 additions and 0 deletions

View File

@@ -0,0 +1,49 @@
namespace DOAN.Model.BZFM.Dto
{
/// <summary>
/// 库存表查询对象
/// </summary>
public class MmInventoryQueryDto : PagerInfo
{
}
/// <summary>
/// 库存表输入输出对象
/// </summary>
public class MmInventoryDto
{
[Required(ErrorMessage = "主键ID不能为空")]
public int Id { get; set; }
[Required(ErrorMessage = "物料编码不能为空")]
public string MaterialCode { 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; }
}
}