修改库引用
							parent
							
								
									27e9cadf91
								
							
						
					
					
						commit
						a867291b51
					
				| 
						 | 
				
			
			@ -3,6 +3,7 @@ using IRaCIS.Application.Contracts;
 | 
			
		|||
using IRaCIS.Core.Application.Contracts;
 | 
			
		||||
using IRaCIS.Core.Application.ViewModel;
 | 
			
		||||
using IRaCIS.Core.Domain.Models;
 | 
			
		||||
using IRaCIS.Core.Domain.Share;
 | 
			
		||||
 | 
			
		||||
namespace IRaCIS.Core.Application.Service
 | 
			
		||||
{
 | 
			
		||||
| 
						 | 
				
			
			@ -20,25 +21,31 @@ namespace IRaCIS.Core.Application.Service
 | 
			
		|||
            CreateMap<FrontAuditConfig, FrontAuditConfigAddOrEdit>().ReverseMap();
 | 
			
		||||
 | 
			
		||||
            CreateMap<EmailNoticeConfigAddOrEdit, EmailNoticeConfig>().ReverseMap();
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
            CreateMap<EmailNoticeUserType, EmailUserTypeDto>();
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
            var trialId = Guid.Empty;
 | 
			
		||||
            CreateMap<EmailNoticeConfig, TrialSelectEmailNoticeConfigView>().IncludeBase<EmailNoticeConfig, EmailNoticeConfigView>()
 | 
			
		||||
                 .ForMember(o => o.IsHaveSelected, t => t.MapFrom(u => u.TrialEmailNoticeConfigList.Any(c => c.TrialId == trialId && c.SysEmailNoticeConfigId == u.Id)))
 | 
			
		||||
                ;
 | 
			
		||||
 | 
			
		||||
            CreateMap<EmailNoticeConfig, EmailNoticeConfigView>()
 | 
			
		||||
             .ForMember(t => t.EmailNoticeUserList, u => u.MapFrom(c => c.EmailNoticeUserTypeList));
 | 
			
		||||
 | 
			
		||||
                .ForMember(t => t.EmailNoticeUserList, u => u.MapFrom(c => c.EmailNoticeUserTypeList));
 | 
			
		||||
 | 
			
		||||
            CreateMap<Dictionary, DicView>()
 | 
			
		||||
            .ForMember(t => t.ParentCode, u => u.MapFrom(c => c.Parent.Code));
 | 
			
		||||
            CreateMap<SystemBasicData, SystemBasicDataView>();
 | 
			
		||||
 | 
			
		||||
            var isEn_Us = false;
 | 
			
		||||
            CreateMap<SystemBasicData, SystemBasicDataSelect>()
 | 
			
		||||
                 .ForMember(o => o.ParentCode, t => t.MapFrom(u => u.Parent.Code))
 | 
			
		||||
                  .ForMember(o => o.Value, t => t.MapFrom(u => isEn_Us? u.Value:u.ValueCN));
 | 
			
		||||
                  .ForMember(o => o.Value, t => t.MapFrom(u => isEn_Us ? u.Value : u.ValueCN));
 | 
			
		||||
 | 
			
		||||
            CreateMap<SystemBasicDataAddOrEdit, SystemBasicData>().ReverseMap();
 | 
			
		||||
 | 
			
		||||
        
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
            CreateMap<Dictionary, BasicDicView>()
 | 
			
		||||
                 .ForMember(o => o.ConfigType, t => t.MapFrom(u => u.ConfigDictionary.Code));
 | 
			
		||||
| 
						 | 
				
			
			@ -51,7 +58,7 @@ namespace IRaCIS.Core.Application.Service
 | 
			
		|||
 | 
			
		||||
            CreateMap<Dictionary, BasicDicSelectCopy>()
 | 
			
		||||
                 .ForMember(o => o.ParentChildCodeEnum, t => t.MapFrom(u => u.Parent.ChildCodeEnum))
 | 
			
		||||
                 .ForMember(o => o.Value, t => t.MapFrom(u => isEn_Us? u.Value : u.ValueCN ))
 | 
			
		||||
                 .ForMember(o => o.Value, t => t.MapFrom(u => isEn_Us ? u.Value : u.ValueCN))
 | 
			
		||||
                 .ForMember(o => o.ParentCode, t => t.MapFrom(u => u.Parent.Code));
 | 
			
		||||
 | 
			
		||||
            CreateMap<Dictionary, BasicDicSelect>()
 | 
			
		||||
| 
						 | 
				
			
			@ -59,7 +66,7 @@ namespace IRaCIS.Core.Application.Service
 | 
			
		|||
                 .ForMember(o => o.ParentCode, t => t.MapFrom(u => u.Parent.Code));
 | 
			
		||||
 | 
			
		||||
            var token = "";
 | 
			
		||||
            CreateMap<CommonDocument, CommonDocumentView>()            
 | 
			
		||||
            CreateMap<CommonDocument, CommonDocumentView>()
 | 
			
		||||
                 .ForMember(d => d.FullFilePath, u => u.MapFrom(s => s.Path + "?access_token=" + token));
 | 
			
		||||
 | 
			
		||||
            CreateMap<CommonDocument, CommonDocumentAddOrEdit>().ReverseMap();
 | 
			
		||||
| 
						 | 
				
			
			@ -68,7 +75,7 @@ namespace IRaCIS.Core.Application.Service
 | 
			
		|||
            CreateMap<Internationalization, InternationalizationAddOrEdit>().ReverseMap();
 | 
			
		||||
 | 
			
		||||
            CreateMap<BatchAddInternationalizationDto, InternationalizationAddOrEdit>();
 | 
			
		||||
            
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
            CreateMap<PublishLog, PublishLogView>();
 | 
			
		||||
            CreateMap<PublishLog, PublishLogAddOrEdit>().ReverseMap();
 | 
			
		||||
| 
						 | 
				
			
			@ -76,5 +83,5 @@ namespace IRaCIS.Core.Application.Service
 | 
			
		|||
 | 
			
		||||
        }
 | 
			
		||||
    }
 | 
			
		||||
   
 | 
			
		||||
 | 
			
		||||
}
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -0,0 +1,15 @@
 | 
			
		|||
-- 查询指定 code 的记录及其父项
 | 
			
		||||
SELECT *
 | 
			
		||||
FROM Dictionary
 | 
			
		||||
WHERE code = 'BusinessModule'
 | 
			
		||||
 | 
			
		||||
UNION
 | 
			
		||||
 | 
			
		||||
-- 查询指定 code 的记录及其子项
 | 
			
		||||
SELECT t.*
 | 
			
		||||
FROM Dictionary t
 | 
			
		||||
INNER JOIN (
 | 
			
		||||
    SELECT Id
 | 
			
		||||
    FROM Dictionary
 | 
			
		||||
    WHERE code = 'BusinessModule'
 | 
			
		||||
) AS selected ON t.ParentId = selected.Id;
 | 
			
		||||
| 
						 | 
				
			
			@ -17,8 +17,7 @@
 | 
			
		|||
  </ItemGroup>
 | 
			
		||||
 | 
			
		||||
  <ItemGroup>
 | 
			
		||||
    <PackageReference Include="EFCore.BulkExtensions" Version="7.1.6" />
 | 
			
		||||
    <PackageReference Include="EntityFrameworkCore.Exceptions.SqlServer" Version="6.0.3.2" />
 | 
			
		||||
 | 
			
		||||
    <PackageReference Include="Microsoft.AspNetCore.Mvc.Abstractions" Version="2.2.0" />
 | 
			
		||||
    <PackageReference Include="Microsoft.AspNetCore.Mvc.Core" Version="2.2.5" />
 | 
			
		||||
    <PackageReference Include="Microsoft.Extensions.Localization.Abstractions" Version="7.0.12" />
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -157,7 +157,7 @@ namespace IRaCIS.Core.Infra.EFCore
 | 
			
		|||
        {
 | 
			
		||||
            if (deleteFilter == null) throw new ArgumentNullException(nameof(deleteFilter));
 | 
			
		||||
 | 
			
		||||
            return await _dbContext.Set<T>().IgnoreQueryFilters().Where(deleteFilter).BatchDeleteAsync() > 0;
 | 
			
		||||
            return await _dbContext.Set<T>().IgnoreQueryFilters().Where(deleteFilter).ExecuteDeleteAsync() > 0;
 | 
			
		||||
        }
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -194,7 +194,6 @@ namespace IRaCIS.Core.Infra.EFCore
 | 
			
		|||
            _dbContext.EntityModifyPartialFiled(entity, updateFactory);
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
            await SaveChangesAsync(autoSave);
 | 
			
		||||
 | 
			
		||||
        }
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -12,6 +12,8 @@
 | 
			
		|||
    <PackageReference Include="AutoMapper" Version="12.0.1" />
 | 
			
		||||
	  <PackageReference Include="CSRedisCore" Version="3.8.671" />
 | 
			
		||||
	  <PackageReference Include="Microsoft.EntityFrameworkCore" Version="7.0.12" />
 | 
			
		||||
	  <PackageReference Include="EFCore.BulkExtensions" Version="7.1.6" />
 | 
			
		||||
	  <PackageReference Include="EntityFrameworkCore.Exceptions.SqlServer" Version="6.0.3.2" />
 | 
			
		||||
    <PackageReference Include="SharpCompress" Version="0.34.1" />
 | 
			
		||||
    <PackageReference Include="SharpZipLib" Version="1.4.2" />
 | 
			
		||||
    <PackageReference Include="System.Linq.Dynamic.Core" Version="1.3.5" />
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
		Reference in New Issue