public virtual async Task UpdateCompanyIndustryAsync(CompanyIndustryEditDto input)
        {
            //TODO:更新前的逻辑判断,是否允许更新

            var entity = await _companyIndustryRepository.GetAsync(input.Id.Value);

            input.MapTo(entity);

            await _companyIndustryRepository.UpdateAsync(entity);
        }
        public virtual async Task <CompanyIndustryEditDto> CreateCompanyIndustryAsync(CompanyIndustryEditDto input)
        {
            //TODO:新增前的逻辑判断,是否允许新增

            var entity = input.MapTo <CompanyIndustry>();

            entity = await _companyIndustryRepository.InsertAsync(entity);

            return(entity.MapTo <CompanyIndustryEditDto>());
        }