feat 电子餐券
This commit is contained in:
@@ -0,0 +1,65 @@
|
||||
using Kurisu.AspNetCore.DataAccess.SqlSugar;
|
||||
using SqlSugar;
|
||||
|
||||
namespace Dlhis.Entity.Canteen.Entities;
|
||||
|
||||
/// <summary>
|
||||
/// 电子餐券明细
|
||||
/// </summary>
|
||||
[SugarTable(TableName = "EMealVoucherDetail", TableDescription = "电子餐券明细")]
|
||||
public class EMealVoucherDetailEntity : SugarBaseEntity
|
||||
{
|
||||
/// <summary>
|
||||
/// 主表id
|
||||
/// </summary>
|
||||
[SugarColumn(ColumnDescription = "主表id")]
|
||||
public long VoucherId { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 流水号
|
||||
/// </summary>
|
||||
[SugarColumn(ColumnDescription = "流水号")]
|
||||
public string No { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 人员类型
|
||||
/// </summary>
|
||||
[SugarColumn(ColumnDescription = "人员类型(新员工/外来人员)")]
|
||||
public string UserType { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 身份证
|
||||
/// </summary>
|
||||
[SugarColumn(ColumnDescription = "序号")]
|
||||
public string IdNo { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 用餐人
|
||||
/// </summary>
|
||||
[SugarColumn(ColumnDescription = "用餐人")]
|
||||
public string Name { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 手机号
|
||||
/// </summary>
|
||||
[SugarColumn(ColumnDescription = "手机号")]
|
||||
public string Phone { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 就餐开始
|
||||
/// </summary>
|
||||
[SugarColumn(ColumnDescription = "使用开始", ColumnDataType = "date")]
|
||||
public DateTime Start { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 就餐结束
|
||||
/// </summary>
|
||||
[SugarColumn(ColumnDescription = "使用结束", ColumnDataType = "date")]
|
||||
public DateTime End { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 金额
|
||||
/// </summary>
|
||||
[SugarColumn(ColumnDescription = "金额", ColumnDataType = "decimal(16,2)")]
|
||||
public decimal Amount { get; set; }
|
||||
}
|
||||
78
Src/Dlhis.Entity/Canteen/Entities/EMealVoucherEntity.cs
Normal file
78
Src/Dlhis.Entity/Canteen/Entities/EMealVoucherEntity.cs
Normal file
@@ -0,0 +1,78 @@
|
||||
using Dlhis.Entity.Canteen.Enums;
|
||||
using Kurisu.AspNetCore.DataAccess.SqlSugar;
|
||||
using SqlSugar;
|
||||
|
||||
namespace Dlhis.Entity.Canteen.Entities;
|
||||
|
||||
/// <summary>
|
||||
/// 餐券
|
||||
/// </summary>
|
||||
[SugarTable(TableName = "EMealVoucher", TableDescription = "电子餐券")]
|
||||
public class EMealVoucherEntity : SugarBaseEntity
|
||||
{
|
||||
/// <summary>
|
||||
/// oa流程id
|
||||
/// </summary>
|
||||
[SugarColumn(ColumnDescription = "oa流程id", UniqueGroupNameList = new[] { "index_EMealVoucher_No" })]
|
||||
public string No { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 标题
|
||||
/// </summary>
|
||||
[SugarColumn(ColumnDescription = "标题")]
|
||||
public string Title { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 申请人工号
|
||||
/// </summary>
|
||||
[SugarColumn(ColumnDescription = "申请人工号", IndexGroupNameList = new[] { "index_EMealVoucher_Code" })]
|
||||
public string Code { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 成本中心
|
||||
/// </summary>
|
||||
[SugarColumn(ColumnDescription = "成本中心")]
|
||||
public string CostId { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 来宾公司
|
||||
/// </summary>
|
||||
[SugarColumn(ColumnDescription = "来宾来源")]
|
||||
public string Source { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 联系人
|
||||
/// </summary>
|
||||
[SugarColumn(ColumnDescription = "手机号")]
|
||||
public string Phone { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 来宾人数
|
||||
/// </summary>
|
||||
[SugarColumn(ColumnDescription = "来宾人数")]
|
||||
public int Number { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 就餐事由
|
||||
/// </summary>
|
||||
[SugarColumn(ColumnDescription = "申请事由")]
|
||||
public string Reason { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 就餐次
|
||||
/// </summary>
|
||||
[SugarColumn(ColumnDescription = "就餐次", ColumnDataType = "varchar(500)", IsJson = true)]
|
||||
public List<ShiftEnumType> Shifts { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 可消费厂区
|
||||
/// </summary>
|
||||
[SugarColumn(ColumnDescription = "可消费厂区", ColumnDataType = "varchar(500)", IsJson = true)]
|
||||
public List<string> Factories { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 申请日期
|
||||
/// </summary>
|
||||
[SugarColumn(ColumnDescription = "申请日期")]
|
||||
public DateTime Date { get; set; }
|
||||
}
|
||||
@@ -1,84 +0,0 @@
|
||||
using SqlSugar;
|
||||
|
||||
namespace Dlhis.Entity.Canteen.Entities;
|
||||
|
||||
/// <summary>
|
||||
/// OA餐券明细
|
||||
/// </summary>
|
||||
[SugarTable(TableName = "OaEMealVoucherDetail", TableDescription = "OA餐券明细")]
|
||||
public class OaEMealVoucherDetailEntity
|
||||
{
|
||||
public long Id { get; set; }
|
||||
|
||||
|
||||
[SugarColumn(ColumnDescription = "餐券id")]
|
||||
public long VoucherId { get; set; }
|
||||
|
||||
|
||||
[SugarColumn(ColumnDescription = "序号")]
|
||||
public int Sequence { get; set; }
|
||||
|
||||
|
||||
[SugarColumn(ColumnDescription = "用餐人情况(新员工/外来人员)")]
|
||||
public string DinnerType { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 身份证
|
||||
/// </summary>
|
||||
[SugarColumn(ColumnDescription = "序号")]
|
||||
public string IdNo { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 用餐人
|
||||
/// </summary>
|
||||
[SugarColumn(ColumnDescription = "用餐人")]
|
||||
public string Name { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 手机号
|
||||
/// </summary>
|
||||
[SugarColumn(ColumnDescription = "手机号")]
|
||||
public string Phone { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 就餐开始
|
||||
/// </summary>
|
||||
[SugarColumn(ColumnDescription = "就餐开始")]
|
||||
public DateTime Start { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 就餐结束
|
||||
/// </summary>
|
||||
[SugarColumn(ColumnDescription = "就餐结束")]
|
||||
public DateTime End { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 就餐天数
|
||||
/// </summary>
|
||||
[SugarColumn(ColumnDescription = "就餐天数")]
|
||||
public int Days { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 金额
|
||||
/// </summary>
|
||||
[SugarColumn(ColumnDescription = "金额")]
|
||||
public decimal Amount { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 二维码
|
||||
/// </summary>
|
||||
[SugarColumn(ColumnDescription = "二维码")]
|
||||
public string QrCode { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 状态
|
||||
/// </summary>
|
||||
[SugarColumn(ColumnDescription = "状态,默认为R")]
|
||||
public string Status { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 信息
|
||||
/// </summary>
|
||||
[SugarColumn(ColumnDescription = "信息/错误信息")]
|
||||
public string Message { get; set; }
|
||||
}
|
||||
@@ -1,122 +0,0 @@
|
||||
using SqlSugar;
|
||||
|
||||
namespace Dlhis.Entity.Canteen.Entities;
|
||||
|
||||
/// <summary>
|
||||
/// OA餐券
|
||||
/// </summary>
|
||||
[SugarTable(TableName = "OaEMealVoucher", TableDescription = "OA餐券")]
|
||||
public class OaEMealVoucherEntity
|
||||
{
|
||||
[SugarColumn(IsIdentity = true, IsPrimaryKey = true)]
|
||||
public long Id { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 标题
|
||||
/// </summary>
|
||||
[SugarColumn(ColumnDescription = "标题")]
|
||||
public string Title { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 申请人工号
|
||||
/// </summary>
|
||||
[SugarColumn(ColumnDescription = "申请人工号")]
|
||||
public string UserCode { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 申请人名称
|
||||
/// </summary>
|
||||
[SugarColumn(ColumnDescription = "申请人名称")]
|
||||
public string Name { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 基地代码
|
||||
/// </summary>
|
||||
[SugarColumn(ColumnDescription = "基地代码")]
|
||||
public string TenantId { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 基地名称
|
||||
/// </summary>
|
||||
[SugarColumn(ColumnDescription = "基地名称")]
|
||||
public string TenantName { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 成本中心
|
||||
/// </summary>
|
||||
[SugarColumn(ColumnDescription = "成本中心")]
|
||||
public string CostId { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 成本中心名称
|
||||
/// </summary>
|
||||
[SugarColumn(ColumnDescription = "成本中心名称")]
|
||||
public string CostName { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 来宾公司
|
||||
/// </summary>
|
||||
[SugarColumn(ColumnDescription = "来宾公司")]
|
||||
public string Company { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 联系人
|
||||
/// </summary>
|
||||
[SugarColumn(ColumnDescription = "联系人")]
|
||||
public string Phone { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 来宾人数
|
||||
/// </summary>
|
||||
[SugarColumn(ColumnDescription = "来宾人数")]
|
||||
public int Num { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 就餐食堂
|
||||
/// </summary>
|
||||
[SugarColumn(ColumnDescription = "就餐食堂")]
|
||||
public string Canteen { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 就餐事由
|
||||
/// </summary>
|
||||
[SugarColumn(ColumnDescription = "就餐事由")]
|
||||
public string Reason { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 就餐次
|
||||
/// </summary>
|
||||
[SugarColumn(ColumnDescription = "就餐次")]
|
||||
public string CanteenShift { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// oa流程id
|
||||
/// </summary>
|
||||
[SugarColumn(ColumnDescription = "oa流程id")]
|
||||
public string OaId { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 部门号
|
||||
/// </summary>
|
||||
[SugarColumn(ColumnDescription = "部门号")]
|
||||
public string DepartmentNo { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 部门名称
|
||||
/// </summary>
|
||||
[SugarColumn(ColumnDescription = "部门名称")]
|
||||
public string DepartmentName { get; set; }
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// 申请日期
|
||||
/// </summary>
|
||||
[SugarColumn(ColumnDescription = "申请日期")]
|
||||
public DateTime LogDate { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 数据创建时间
|
||||
/// </summary>
|
||||
[SugarColumn(ColumnDescription = "数据创建时间")]
|
||||
public DateTime CreateTime { get; set; }
|
||||
}
|
||||
Reference in New Issue
Block a user