Browse Source

Merge branch 'feature/snapshot' into test

qinchaoyue 3 months ago
parent
commit
64566aee72
1 changed files with 3 additions and 0 deletions
  1. 3 0
      src/Hotline.Application/Mappers/SnapshotMapperConfigs.cs

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

@@ -18,6 +18,9 @@ public class SnapshotMapperConfigs : IRegister
 {
     public void Register(TypeAdapterConfig config)
     {
+        config.ForType<AddSnapshotOrderInDto, OrderSnapshot>()
+           .Ignore(m => m.StartWorkTime)
+           .Ignore(m => m.EndWorkTime);
 
         config.ForType<SystemDicData, Kv>()
             .Map(m => m.Key, b => b.DicDataValue)