|
@@ -202,6 +202,11 @@ public abstract class SnapshotApplicationBase
|
|
|
if (indurstry.IndustryType == EIndustryType.Declare)
|
|
|
{
|
|
|
outDto.AreaTree = (await _systemAreaDomainService.GetAreaTree(parentId: "510300")).Adapt<List<SystemAreaOutDto>>();
|
|
|
+ outDto.AreaTree.ToList().ForEach(m =>
|
|
|
+ {
|
|
|
+ if (m.Children.IsNullOrEmpty())
|
|
|
+ m.Children = new List<SystemAreaOutDto>() { new SystemAreaOutDto { Id = "0", AreaName = "无"} };
|
|
|
+ });
|
|
|
outDto.Files = (await _fileRepository.GetByKeyAsync(indurstry.Id, requestAborted)).Adapt<List<IndustryFileDto>>();
|
|
|
outDto.Files.ToList().ForEach(m => m.Url = fileDownloadApi + m.AdditionId);
|
|
|
outDto.WorkplaceName = _systemDicDataCacheManager.WorkplaceName;
|