Browse Source

Merge branch 'feature/snapshot' into test

qinchaoyue 1 tháng trước cách đây
mục cha
commit
ea23fbdd4b
1 tập tin đã thay đổi với 8 bổ sung0 xóa
  1. 8 0
      src/Hotline.Api/Controllers/OrderController.cs

+ 8 - 0
src/Hotline.Api/Controllers/OrderController.cs

@@ -4760,6 +4760,14 @@ public class OrderController : BaseController
             if (dto.IsEdit != true && order.Status > EOrderStatus.HandOverToUnAccept)
                 throw UserFriendlyException.SameMessage("工单已发起流程,不可编辑");
         }
+        if (_systemSettingCacheManager.Snapshot)
+        {
+            await _orderSnapshotRepository.Updateable()
+                .SetColumns(m => m.IndustryId, dto.IndustryId)
+                .SetColumns(m => m.IndustryName, dto.IndustryName)
+                .Where(m => m.Id == dto.Id)
+                .ExecuteCommandAsync();
+        }
 
         // 副本工单
         var copy = new OrderCopy();