From 480372850aebe37cfb93439adb4f4d987fe88a4c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9D=A8=E6=99=93=E4=B8=9C?= <17363321594@163.com> Date: Tue, 30 Sep 2025 16:08:11 +0800 Subject: [PATCH] =?UTF-8?q?=E6=80=BB=E6=88=90=E4=BA=A7=E5=93=81=E8=AE=B0?= =?UTF-8?q?=E5=BD=95=E8=A1=A8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .gitignore | 1 + DOAN.Model/MES/trace/TraceProductRecord.cs | 77 ++++++++++++++++++++++ 2 files changed, 78 insertions(+) create mode 100644 DOAN.Model/MES/trace/TraceProductRecord.cs diff --git a/.gitignore b/.gitignore index f9dd7a9..1cff81d 100644 --- a/.gitignore +++ b/.gitignore @@ -265,3 +265,4 @@ __pycache__/ /DOAN.Admin.WebApi/wwwroot/Generatecode/DOANAdmin.NET-报工表-0723125113.zip +/DOAN.Model/MES/trace/TraceProjectRecord.cs diff --git a/DOAN.Model/MES/trace/TraceProductRecord.cs b/DOAN.Model/MES/trace/TraceProductRecord.cs new file mode 100644 index 0000000..6e3bac7 --- /dev/null +++ b/DOAN.Model/MES/trace/TraceProductRecord.cs @@ -0,0 +1,77 @@ +using System; +using System.Collections.Generic; +using System.ComponentModel.DataAnnotations; +using System.ComponentModel.DataAnnotations.Schema; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +namespace DOAN.Model.MES.trace +{ + /// + /// 总成产品记录表 + /// + [SugarTable("trace_product_record")] + public class TraceProductRecord + { + /// + /// id + /// + [SugarColumn(IsPrimaryKey = true, IsIdentity = true)] + public int Id { get; set; } + + /// + /// 总成码 + /// + [SugarColumn(ColumnName = "production_sn")] + public string ProductionSn { get; set; } + + /// + /// 总成产品编号 + /// + [SugarColumn(ColumnName = "production_code")] + public string ProductionCode { get; set; } + + /// + /// 总成产品名称 + /// + [SugarColumn(ColumnName = "production_name")] + public string ProductionName { get; set; } + + /// + /// SN追溯码 + /// + [SugarColumn(ColumnName = "part_sn")] + public string PartSn { get; set; } + + /// + /// 子零件扫码数据汇总,逗号隔开 + /// + [SugarColumn(ColumnName = "part_sub_scan_data")] + public string PartSubScanData { get; set; } + + /// + /// 追溯数据汇总,逗号隔开 + /// + [SugarColumn(ColumnName = "qc_data")] + public string QcData { get; set; } + + /// + /// 检测结果是否合格 + /// + [SugarColumn(ColumnName = "result")] + public string Result { get; set; } + + /// + /// 备注 + /// + [SugarColumn(ColumnName = "remark")] + public string Remark { get; set; } + + /// + /// 创建时间 + /// + [SugarColumn(ColumnName = "create_time")] + public DateTime? CreateTime { get; set; } + } +}