|
@@ -30,8 +30,9 @@ public class IndustryApplication : IIndustryApplication, IScopeDependency
|
|
private readonly IPractitionerRepository _practitionerRepository;
|
|
private readonly IPractitionerRepository _practitionerRepository;
|
|
private readonly IVolunteerRepository _volunteerRepository;
|
|
private readonly IVolunteerRepository _volunteerRepository;
|
|
private readonly IVolunteerReportRepository _volunteerReportRepository;
|
|
private readonly IVolunteerReportRepository _volunteerReportRepository;
|
|
|
|
+ private readonly IIndustryLogRepository _industryLogRepository;
|
|
|
|
|
|
- public IndustryApplication(IIndustryRepository industryRepository, IFileRepository fileRepository, ISystemSettingCacheManager sysSetting, IIndustryCaseRepository industryCaseRepository, ISnapshotSMSTemplateRepository snapshotSMSTemplateRepository, IPractitionerRepository practitionerRepository, IVolunteerRepository volunteerRepository, IVolunteerReportRepository volunteerReportRepository)
|
|
|
|
|
|
+ public IndustryApplication(IIndustryRepository industryRepository, IFileRepository fileRepository, ISystemSettingCacheManager sysSetting, IIndustryCaseRepository industryCaseRepository, ISnapshotSMSTemplateRepository snapshotSMSTemplateRepository, IPractitionerRepository practitionerRepository, IVolunteerRepository volunteerRepository, IVolunteerReportRepository volunteerReportRepository, IIndustryLogRepository industryLogRepository)
|
|
{
|
|
{
|
|
_industryRepository = industryRepository;
|
|
_industryRepository = industryRepository;
|
|
_fileRepository = fileRepository;
|
|
_fileRepository = fileRepository;
|
|
@@ -41,6 +42,7 @@ public class IndustryApplication : IIndustryApplication, IScopeDependency
|
|
_practitionerRepository = practitionerRepository;
|
|
_practitionerRepository = practitionerRepository;
|
|
_volunteerRepository = volunteerRepository;
|
|
_volunteerRepository = volunteerRepository;
|
|
_volunteerReportRepository = volunteerReportRepository;
|
|
_volunteerReportRepository = volunteerReportRepository;
|
|
|
|
+ _industryLogRepository = industryLogRepository;
|
|
}
|
|
}
|
|
/// <summary>
|
|
/// <summary>
|
|
/// 新增行业
|
|
/// 新增行业
|
|
@@ -374,5 +376,23 @@ public class IndustryApplication : IIndustryApplication, IScopeDependency
|
|
.Select<VolunteerReportItemsOutDto>();
|
|
.Select<VolunteerReportItemsOutDto>();
|
|
return query;
|
|
return query;
|
|
}
|
|
}
|
|
|
|
+
|
|
|
|
+ /// <summary>
|
|
|
|
+ /// 行业修改记录
|
|
|
|
+ /// </summary>
|
|
|
|
+ /// <param name="dto"></param>
|
|
|
|
+ /// <returns></returns>
|
|
|
|
+ public ISugarQueryable<IndustryLogItemsOutDto> GetIndustryLogItemsAsync(IndustryLogItemsInDto dto)
|
|
|
|
+ {
|
|
|
|
+ var query = _industryLogRepository.Queryable()
|
|
|
|
+ .WhereIF(dto.No.NotNullOrEmpty(), m => m.No.Contains(dto.No))
|
|
|
|
+ .WhereIF(dto.ChangeName.NotNullOrEmpty(), m => m.CreatorName.Contains(dto.ChangeName))
|
|
|
|
+ .WhereIF(dto.IndustryName.NotNullOrEmpty(), m => m.IndustryName.Contains(dto.IndustryName))
|
|
|
|
+ .WhereIF(dto.oldIndustryName.NotNullOrEmpty(), m => m.OldIndustryName.Contains(dto.oldIndustryName))
|
|
|
|
+ .WhereIF(dto.BeginTime.HasValue && dto.EndTime.HasValue, m => m.CreationTime >= dto.BeginTime.Value && m.CreationTime <= dto.EndTime.Value)
|
|
|
|
+ .Select<IndustryLogItemsOutDto>();
|
|
|
|
+ return query;
|
|
|
|
+ }
|
|
|
|
+
|
|
#endregion
|
|
#endregion
|
|
}
|
|
}
|