feat 餐补接收
This commit is contained in:
60
Src/Dlhis.Entity/Basic/Entity/MealSupplementRecordEntity.cs
Normal file
60
Src/Dlhis.Entity/Basic/Entity/MealSupplementRecordEntity.cs
Normal file
@@ -0,0 +1,60 @@
|
||||
using Dlhis.Entity.Basic.Enums;
|
||||
using Kurisu.SqlSugar;
|
||||
using SqlSugar;
|
||||
using SqlSugar.DbConvert;
|
||||
|
||||
namespace Dlhis.Entity.Basic.Entity;
|
||||
|
||||
/// <summary>
|
||||
/// 餐补记录
|
||||
/// </summary>
|
||||
[SugarTable(TableName = "MealSupplementRecord", TableDescription = "餐补记录")]
|
||||
public class MealSupplementRecordEntity : SugarBaseEntity
|
||||
{
|
||||
/// <summary>
|
||||
/// 唯一号
|
||||
/// </summary>
|
||||
[SugarColumn(IsNullable = false, ColumnDescription = "唯一号", UniqueGroupNameList = new[] { "idx_MealSupplementRecord_UniqueId" })]
|
||||
public string UniqueId { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 工号
|
||||
/// </summary>
|
||||
[SugarColumn(IsNullable = false, ColumnDescription = "工号")]
|
||||
public string Code { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 考勤日期
|
||||
/// </summary>
|
||||
[SugarColumn(IsNullable = false, ColumnDescription = "考勤日期")]
|
||||
public DateTime Date { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 工作地
|
||||
/// </summary>
|
||||
[SugarColumn(IsNullable = false, ColumnDescription = "工作地")]
|
||||
public string Workplace { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 厂区
|
||||
/// </summary>
|
||||
[SugarColumn(IsNullable = false, ColumnDescription = "厂区")]
|
||||
public string Factory { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 备注
|
||||
/// </summary>
|
||||
public string Remark { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 餐补
|
||||
/// </summary>
|
||||
[SugarColumn(IsNullable = false, ColumnDescription = "餐补")]
|
||||
public decimal Amount { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 餐补状态
|
||||
/// </summary>
|
||||
[SugarColumn(ColumnDataType = "varchar(50)", SqlParameterDbType = typeof(EnumToStringConvert))]
|
||||
public MealSupplementStatusEnumtype Status { get; set; }
|
||||
}
|
||||
29
Src/Dlhis.Entity/Basic/Enums/MealSupplementStatusEnumtype.cs
Normal file
29
Src/Dlhis.Entity/Basic/Enums/MealSupplementStatusEnumtype.cs
Normal file
@@ -0,0 +1,29 @@
|
||||
using System.ComponentModel;
|
||||
|
||||
namespace Dlhis.Entity.Basic.Enums;
|
||||
|
||||
/// <summary>
|
||||
/// 餐补状态
|
||||
/// </summary>
|
||||
[Description("餐补状态")]
|
||||
public enum MealSupplementStatusEnumtype
|
||||
{
|
||||
/// <summary>
|
||||
/// 待核算
|
||||
/// </summary>
|
||||
[Description("待核算")]
|
||||
Wait = 0,
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// 成功
|
||||
/// </summary>
|
||||
[Description("成功")]
|
||||
Sucess = 1,
|
||||
|
||||
/// <summary>
|
||||
/// 处理异常
|
||||
/// </summary>
|
||||
[Description("处理异常")]
|
||||
Error = 99
|
||||
}
|
||||
Reference in New Issue
Block a user