tangjiang 11 mesi fa
parent
commit
e047d570a0
1 ha cambiato i file con 2 aggiunte e 2 eliminazioni
  1. 2 2
      src/Hotline.Api/Controllers/OrderController.cs

+ 2 - 2
src/Hotline.Api/Controllers/OrderController.cs

@@ -5114,7 +5114,7 @@ public class OrderController : BaseController
             OldValue = orderData.ExpiredTime.ToString(),
             NewValue = dto.ExpiredTime.ToString()
         };
-        await _orderModifyingRecordsRepository.UpdateAsync(orderModifyingRecords, HttpContext.RequestAborted);
+        await _orderModifyingRecordsRepository.AddAsync(orderModifyingRecords, HttpContext.RequestAborted);
         #endregion
 
         //写入新的数据
@@ -5156,7 +5156,7 @@ public class OrderController : BaseController
                     OldValue = orderData.SourceChannelCode + "_" + orderData.SourceChannel,
                     NewValue = "QT_其他"
                 };
-                await _orderModifyingRecordsRepository.UpdateAsync(orderModifyingRecords, HttpContext.RequestAborted);
+                await _orderModifyingRecordsRepository.AddAsync(orderModifyingRecords, HttpContext.RequestAborted);
                 #endregion
 
                 orderData.SourceChannel = "其他";