|
@@ -64,8 +64,8 @@ public class KnowledgeMapperConfigs : IRegister
|
|
|
config.NewConfig<Hotline.KnowledgeBase.Knowledge, KnowledgeSendDto>()
|
|
|
.Map(d => d.CategoryCode, x => x.HotspotType.ProvinceCode)
|
|
|
.Map(d => d.CategoryName, x => x.HotspotType.HotSpotName)
|
|
|
- .Map(d => d.PublishPerson, x => x.User.Name)
|
|
|
- .Map(d => d.OuName, x => x.SystemOrganize.Name)
|
|
|
+ .Map(d => d.PublishPerson, x => x.CreatorName)
|
|
|
+ .Map(d => d.OuName, x => x.CreatorOrgName)
|
|
|
.Map(d => d.KName, x => x.Title)
|
|
|
.Map(d => d.KContent, x => x.Content)
|
|
|
.Map(d => d.CreatDate, x => x.OnShelfTime)
|
|
@@ -75,8 +75,8 @@ public class KnowledgeMapperConfigs : IRegister
|
|
|
.IgnoreIf((s, d) => s.FileJson == null, d => d.FileJson)
|
|
|
.IgnoreIf((s,d)=>s.HotspotType == null, d=>d.CategoryCode)
|
|
|
.IgnoreIf((s,d)=>s.HotspotType == null, d=>d.CategoryName)
|
|
|
- .IgnoreIf((s,d)=>s.User == null, d=>d.PublishPerson)
|
|
|
- .IgnoreIf((s,d)=>s.SystemOrganize == null, d=>d.OuName)
|
|
|
+ //.IgnoreIf((s,d)=>s.User == null, d=>d.PublishPerson)
|
|
|
+ //.IgnoreIf((s,d)=>s.SystemOrganize == null, d=>d.OuName)
|
|
|
;
|
|
|
|
|
|
config.ForType<KnowledgeRelationTypeDto, KnowledgeType>()
|