Sfoglia il codice sorgente

保存重复工单Id

qinchaoyue 1 settimana fa
parent
commit
b80ab7cf15

+ 12 - 1
src/Hotline.Application/OrderApp/OrderApplication.cs

@@ -1414,6 +1414,17 @@ public class OrderApplication : IOrderApplication, IScopeDependency
             _capPublisher.Publish(EventNames.HotlineLeaderSMS, new PublishLeaderSMSDto(order.Id, dic.DicDataName, dic.DicDataValue));
         }
 
+        if (dto.Data.DuplicateId.NotNullOrEmpty())
+        {
+            if (order.DuplicateIds != null)
+            {
+                order.DuplicateIds.Add(dto.Data.DuplicateId);
+            }else
+            {
+                order.DuplicateIds = new List<string>() { dto.Data.DuplicateId };
+            }
+        }
+
         _mapper.Map(dto.Data, order);
 
         if (expiredTimeConfig is not null)
@@ -7302,4 +7313,4 @@ public class OrderApplication : IOrderApplication, IScopeDependency
     }
     #endregion
     #endregion
-}
+}

+ 6 - 1
src/Hotline.Share/Dtos/Order/OrderStartFlowDto.cs

@@ -42,6 +42,11 @@ namespace Hotline.Share.Dtos.Order
         /// 是否直派
         /// </summary>
         public bool IsDirect{ get; set; }
+
+        /// <summary>
+        /// 重复订单Id
+        /// </summary>
+        public string? DuplicateId { get; set; }
         
         #region 手动填入办理人信息
 
@@ -345,4 +350,4 @@ namespace Hotline.Share.Dtos.Order
 		/// </summary>
 		public bool IsPass { get; set; }
 	}
-}
+}