瀏覽代碼

修复附件Id

qinchaoyue 3 月之前
父節點
當前提交
f0c94566f7
共有 1 個文件被更改,包括 3 次插入0 次删除
  1. 3 0
      src/Hotline.Application/Mappers/SnapshotMapperConfigs.cs

+ 3 - 0
src/Hotline.Application/Mappers/SnapshotMapperConfigs.cs

@@ -59,6 +59,9 @@ public class SnapshotMapperConfigs : IRegister
         config.ForType<IndustryFileDto, Hotline.File.File>()
             .Map(m => m.Additions, n => n.AdditionId);
 
+        config.ForType<SnapshotFileInDto, File.File>()
+            .Map(m => m.Additions, n => n.AdditionId);
+
         config.ForType<AddSnapshotOrderInDto, Order>()
             .Map(m => m.Contact, n => n.PhoneNumber)
             .Map(m => m.FromName, n => n.Name)