فهرست منبع

Merge branch 'feature/snapshot' into test

qinchaoyue 3 ماه پیش
والد
کامیت
64566aee72
1فایلهای تغییر یافته به همراه3 افزوده شده و 0 حذف شده
  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)