浏览代码

增加字段

qinchaoyue 3 月之前
父节点
当前提交
00a64e7d17
共有 2 个文件被更改,包括 27 次插入0 次删除
  1. 9 0
      src/Hotline.Application/Snapshot/RedPackApplication.cs
  2. 18 0
      src/Hotline/Snapshot/SupplementRecord.cs

+ 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; }
 }