Sfoglia il codice sorgente

修复IsStepUrgent IsEvasive IsInactively 保存错误

qinchaoyue 5 mesi fa
parent
commit
b358f8cb3c
1 ha cambiato i file con 3 aggiunte e 0 eliminazioni
  1. 3 0
      src/Hotline.Application/Mappers/OrderMapperConfigs.cs

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

@@ -208,8 +208,11 @@ public class OrderMapperConfigs : IRegister
             .Map(src => src.TranspondCityValue, dest => dest.TranspondCityValue)
             .IgnoreIf((src, dest) => string.IsNullOrEmpty(src.TranspondCityValue), dest => dest.TranspondCityValue)
             .Map(src => src.IsStepUrgent, dest => dest.IsStepUrgent)
+            .IgnoreIf((src, dest) => src.IsStepUrgent == null, dest => dest.IsStepUrgent)
             .Map(src => src.IsEvasive, dest => dest.IsEvasive)
+            .IgnoreIf((src, dest) => src.IsEvasive == null, dest => dest.IsEvasive)
             .Map(src => src.IsInactively, dest => dest.IsInactively)
+            .IgnoreIf((src, dest) => src.IsInactively == null, dest => dest.IsInactively)
             .IgnoreNonMapped(true);
 
         config.ForType<AddOrderComplementDto, OrderComplement>()