浏览代码

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)