Explorar el Código

修复附件Id

qinchaoyue hace 3 meses
padre
commit
f0c94566f7
Se han modificado 1 ficheros con 3 adiciones y 0 borrados
  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)