unit单位初始化
This commit is contained in:
7
ZR.Model/mes/md/DTO/UnitPageDTO.cs
Normal file
7
ZR.Model/mes/md/DTO/UnitPageDTO.cs
Normal file
@@ -0,0 +1,7 @@
|
||||
namespace ZR.Model.mes.md.DTO;
|
||||
|
||||
public class UnitPageDTO
|
||||
{
|
||||
public List<Unit> list;
|
||||
public int Total;
|
||||
}
|
||||
100
ZR.Model/mes/md/Unit.cs
Normal file
100
ZR.Model/mes/md/Unit.cs
Normal file
@@ -0,0 +1,100 @@
|
||||
namespace ZR.Model.mes.md
|
||||
{
|
||||
/// <summary>
|
||||
/// 计量单位
|
||||
///</summary>
|
||||
[SugarTable("md_unit")]
|
||||
public class Unit
|
||||
{
|
||||
/// <summary>
|
||||
/// 单位ID
|
||||
///</summary>
|
||||
[SugarColumn(ColumnName = "measure_id", IsPrimaryKey = true, IsIdentity = true)]
|
||||
public int MeasureId { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 单位编码
|
||||
///</summary>
|
||||
[SugarColumn(ColumnName = "measure_code")]
|
||||
public string MeasureCode { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 单位名称
|
||||
///</summary>
|
||||
[SugarColumn(ColumnName = "measure_name")]
|
||||
public string MeasureName { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 是否启用(不启用0,启用1)
|
||||
///</summary>
|
||||
[SugarColumn(ColumnName = "enable_flag")]
|
||||
public string EnableFlag { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 备注
|
||||
///</summary>
|
||||
[SugarColumn(ColumnName = "remark")]
|
||||
public string Remark { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 预留字段
|
||||
///</summary>
|
||||
[SugarColumn(ColumnName = "attr1")]
|
||||
public string Attr1 { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 预留字段
|
||||
///</summary>
|
||||
[SugarColumn(ColumnName = "attr2")]
|
||||
public string Attr2 { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 预留字段
|
||||
///</summary>
|
||||
[SugarColumn(ColumnName = "attr3")]
|
||||
public int? Attr3 { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 预留字段
|
||||
///</summary>
|
||||
[SugarColumn(ColumnName = "attr4")]
|
||||
public string Attr4 { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 租户号
|
||||
///</summary>
|
||||
[SugarColumn(ColumnName = "TENANT_ID")]
|
||||
public string TenantId { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 乐观锁
|
||||
///</summary>
|
||||
[SugarColumn(ColumnName = "REVISION")]
|
||||
public int? Revision { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 创建人
|
||||
///</summary>
|
||||
[SugarColumn(ColumnName = "CREATED_BY")]
|
||||
public string CreatedBy { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 创建时间
|
||||
///</summary>
|
||||
[SugarColumn(ColumnName = "CREATED_TIME")]
|
||||
public DateTime? CreatedTime { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 更新人
|
||||
///</summary>
|
||||
[SugarColumn(ColumnName = "UPDATED_BY")]
|
||||
public string UpdatedBy { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 更新时间
|
||||
///</summary>
|
||||
[SugarColumn(ColumnName = "UPDATED_TIME")]
|
||||
public DateTime? UpdatedTime { get; set; }
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user