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 1/2] =?UTF-8?q?=E6=9B=B4=E6=96=B0=20Admin.NET/Admin.NET.Co?= =?UTF-8?q?re/Entity/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; } /// From 07355b96caff31e0f51df0931ec8372a39a1830d Mon Sep 17 00:00:00 2001 From: 362270511 <362270511@qq.com> Date: Thu, 15 Aug 2024 16:30:21 +0800 Subject: [PATCH 2/2] =?UTF-8?q?=E6=9B=B4=E6=96=B0=20Admin.NET/Admin.NET.Co?= =?UTF-8?q?re/Entity/SysWechatRefund.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/SysWechatRefund.cs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Admin.NET/Admin.NET.Core/Entity/SysWechatRefund.cs b/Admin.NET/Admin.NET.Core/Entity/SysWechatRefund.cs index 7c6451ac..19b96531 100644 --- a/Admin.NET/Admin.NET.Core/Entity/SysWechatRefund.cs +++ b/Admin.NET/Admin.NET.Core/Entity/SysWechatRefund.cs @@ -69,13 +69,13 @@ public class SysWechatRefund : EntityBase /// 关联的商户订单号 /// [SugarColumn(ColumnDescription = "关联的用户订单号", Length = 256)] - public string OrderId { get; set; } + public string? OrderId { get; set; } /// /// 关联的商户订单状态(或者为第几次支付,有些订单涉及多次支付,比如先付预付款,后补尾款) /// [SugarColumn(ColumnDescription = "关联的商户订单状态", Length = 32)] - public string OrderStatus { get; set; } + public string? OrderStatus { get; set; } /// /// 关联的商户商品编码 @@ -116,6 +116,6 @@ public class SysWechatRefund : EntityBase /// /// 备注 /// - [SugarColumn(ColumnDescription = "备注")] + [SugarColumn(ColumnDescription = "备注", ColumnDataType = StaticConfig.CodeFirst_BigString)] public string? Remark { get; set; } } \ No newline at end of file