From 21b916c48f635600dcc45cd36822087018cc8a45 Mon Sep 17 00:00:00 2001 From: 362270511 <362270511@qq.com> Date: Thu, 15 Aug 2024 16:29:57 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0=20Admin.NET/Admin.NET.Core/E?= =?UTF-8?q?ntity/SysWechatPay.cs?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 优化支付属性,OrderId和OrderStatus字段是字符串,设置可空兼容性更强。Remark字段默认应该是大字段更合适,这样可以存储更多的报文信息 --- Admin.NET/Admin.NET.Core/Entity/SysWechatPay.cs | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/Admin.NET/Admin.NET.Core/Entity/SysWechatPay.cs b/Admin.NET/Admin.NET.Core/Entity/SysWechatPay.cs index 032f0fa8..815494c5 100644 --- a/Admin.NET/Admin.NET.Core/Entity/SysWechatPay.cs +++ b/Admin.NET/Admin.NET.Core/Entity/SysWechatPay.cs @@ -17,14 +17,14 @@ public partial class SysWechatPay : EntityBase /// /// 关联的商户订单号 /// - [SugarColumn(ColumnDescription = "关联商户订单号")] - public virtual string OrderId { get; set; } + [SugarColumn(ColumnDescription = "OrderId")] + public virtual string? OrderId { get; set; } /// /// 关联的商户订单状态(或者为第几次支付,有些订单涉及多次支付,比如先付预付款,后补尾款) /// - [SugarColumn(ColumnDescription = "关联商户订单状态")] - public virtual string OrderStatus { get; set; } + [SugarColumn(ColumnDescription = "OrderStatus")] + public virtual string? OrderStatus { get; set; } /// /// 微信商户号 @@ -141,7 +141,7 @@ public partial class SysWechatPay : EntityBase /// /// 备注 /// - [SugarColumn(ColumnDescription = "备注")] + [SugarColumn(ColumnDescription = "备注", ColumnDataType = StaticConfig.CodeFirst_BigString)] public string? Remark { get; set; } ///