|
@@ -55,6 +55,11 @@ public class IndustryApplication : IIndustryApplication, IScopeDependency
|
|
|
/// <exception cref="NotImplementedException"></exception>
|
|
|
public async Task<string> AddIndustryAsync(AddIndustryDto dto, CancellationToken cancellationToken)
|
|
|
{
|
|
|
+ if (dto.ApproveOrgId.NotNullOrEmpty() && dto.ApproveOrgName.IsNullOrEmpty())
|
|
|
+ {
|
|
|
+ await _systemOrganizeRepository.GetAsync(dto.ApproveOrgId, cancellationToken)
|
|
|
+ .Then(async org => { dto.ApproveOrgName = org.Name; });
|
|
|
+ }
|
|
|
var entity = dto.Adapt<Industry>();
|
|
|
var id = await _industryRepository.AddAsync(entity, cancellationToken);
|
|
|
if (dto.Files.NotNullOrEmpty())
|