- 在工单服务中新增获取审批通知列表和滞留库存列表的接口 - 添加对应的DTO定义用于查询和响应 - 在控制器中暴露相关API端点 - 修改物料类型字段注释为快速识别标号 - 在工单查询结果中添加物料标号字段
103 lines
2.6 KiB
C#
103 lines
2.6 KiB
C#
|
|
namespace DOAN.Model.BZFM
|
|
{
|
|
/// <summary>
|
|
/// 物料表
|
|
/// </summary>
|
|
[SugarTable("mm_material")]
|
|
public class MmMaterial
|
|
{
|
|
public object CateoryName;
|
|
|
|
/// <summary>
|
|
/// 主键ID
|
|
/// </summary>
|
|
[SugarColumn(IsPrimaryKey = true, IsIdentity = true)]
|
|
public int Id { get; set; }
|
|
|
|
/// <summary>
|
|
/// 物料编码
|
|
/// </summary>
|
|
[SugarColumn(ColumnName = "material_code")]
|
|
public string MaterialCode { get; set; }
|
|
|
|
/// <summary>
|
|
/// 物料名称
|
|
/// </summary>
|
|
[SugarColumn(ColumnName = "material_name")]
|
|
public string MaterialName { get; set; }
|
|
|
|
/// <summary>
|
|
/// 规格型号
|
|
/// </summary>
|
|
public string Specification { get; set; }
|
|
|
|
/// <summary>
|
|
/// 物料分类编码
|
|
/// </summary>
|
|
[SugarColumn(ColumnName = "category_code")]
|
|
public string CategoryCode { get; set; }
|
|
|
|
/// <summary>
|
|
/// 物料分类名称
|
|
/// </summary>
|
|
[SugarColumn(ColumnName = "category_name")]
|
|
public string CategoryName { get; set; }
|
|
|
|
/// <summary>
|
|
/// 计量单位
|
|
/// </summary>
|
|
public string Unit { get; set; }
|
|
|
|
/// <summary>
|
|
/// 快速识别标号
|
|
/// </summary>
|
|
public string Type { get; set; }
|
|
|
|
/// <summary>
|
|
/// 供应商编码
|
|
/// </summary>
|
|
[SugarColumn(ColumnName = "supplier_code")]
|
|
public string SupplierCode { get; set; }
|
|
|
|
/// <summary>
|
|
/// 供应商名称
|
|
/// </summary>
|
|
[SugarColumn(ColumnName = "supplier_name")]
|
|
public string SupplierName { get; set; }
|
|
|
|
/// <summary>
|
|
/// 安全库存
|
|
/// </summary>
|
|
[SugarColumn(ColumnName = "safety_stock")]
|
|
public decimal SafetyStock { get; set; }
|
|
|
|
/// <summary>
|
|
/// 状态(停用/启用)
|
|
/// </summary>
|
|
public string Status { get; set; }
|
|
|
|
/// <summary>
|
|
/// 创建时间
|
|
/// </summary>
|
|
[SugarColumn(ColumnName = "created_time")]
|
|
public DateTime? CreatedTime { get; set; }
|
|
|
|
/// <summary>
|
|
/// 更新时间
|
|
/// </summary>
|
|
[SugarColumn(ColumnName = "updated_time")]
|
|
public DateTime? UpdatedTime { get; set; }
|
|
|
|
/// <summary>
|
|
/// 描述
|
|
/// </summary>
|
|
public string Description { get; set; }
|
|
|
|
/// <summary>
|
|
/// 父物料编码
|
|
/// </summary>
|
|
[SugarColumn(ColumnName = "parent_material_code")]
|
|
public string ParentMaterialCode { get; set; }
|
|
}
|
|
} |