Browse Source

增加字段

qinchaoyue 3 months ago
parent
commit
00a64e7d17

+ 9 - 0
src/Hotline.Application/Snapshot/RedPackApplication.cs

@@ -400,6 +400,15 @@ public class RedPackApplication : IRedPackApplication, IScopeDependency
         await _redPackAuditRepository.UpdateAsync(audit);
 
         var entity = dto.Adapt<SupplementRecord>();
+        var industryName = await _orderSnapshotRepository.Queryable()
+            .Where(m => m.Id == record.OrderId)
+            .Select(m => m.IndustryName)
+            .FirstAsync();
+        entity.OrderId = record.OrderId;
+        entity.RedPackRecordId = record.Id;
+        entity.RedPackAuditId = audit.Id;
+        entity.No = record.No;
+        entity.IndustryName = industryName;
         await _supplementRecordRepository.AddAsync(entity);
 
         if (dto.IsSendSMS)

+ 18 - 0
src/Hotline/Snapshot/SupplementRecord.cs

@@ -74,4 +74,22 @@ public class SupplementRecord : FullStateEntity
     /// </summary>
     [SugarColumn(ColumnDescription = "补充发放类型Id")]
     public string? ReplenishTypeId { get; set; }
+
+    /// <summary>
+    /// 银行卡号
+    /// </summary>
+    [SugarColumn(ColumnDescription = "银行卡号")]
+    public string? BankCardNo { get; set; }
+
+    /// <summary>
+    /// 开户行
+    /// </summary>
+    [SugarColumn(ColumnDescription = "开户行")]
+    public string? OpenBank { get; set; }
+
+    /// <summary>
+    /// 是否发送短信
+    /// </summary>
+    [SugarColumn(ColumnDescription = "是否发送短信")]
+    public bool IsSendSMS { get; set; }
 }