|
@@ -21,7 +21,7 @@ namespace Hotline.Application.JudicialManagement
|
|
|
private readonly IRepository<JudicialManagementOrders> _judicialManagementOrdersRepository;
|
|
|
private readonly IMapper _mapper;
|
|
|
private readonly ISessionContext _sessionContext;
|
|
|
- private readonly IRepository<LawEnforcementAgencies> _lawEnforcementAgenciesRepository;
|
|
|
+ private readonly IRepository<EnforcementOrdersHandler> _enforcementOrdersHandlerRepository;
|
|
|
|
|
|
/// <summary>
|
|
|
///
|
|
@@ -35,12 +35,12 @@ namespace Hotline.Application.JudicialManagement
|
|
|
IRepository<JudicialManagementOrders> judicialManagementOrdersRepository,
|
|
|
IMapper mapper,
|
|
|
ISessionContext sessionContext,
|
|
|
- IRepository<LawEnforcementAgencies> lawEnforcementAgenciesRepository)
|
|
|
+ IRepository<EnforcementOrdersHandler> enforcementOrdersHandlerRepository)
|
|
|
{
|
|
|
_judicialManagementOrdersRepository = judicialManagementOrdersRepository;
|
|
|
_mapper = mapper;
|
|
|
_sessionContext = sessionContext;
|
|
|
- _lawEnforcementAgenciesRepository = lawEnforcementAgenciesRepository;
|
|
|
+ _enforcementOrdersHandlerRepository = enforcementOrdersHandlerRepository;
|
|
|
}
|
|
|
|
|
|
/// <summary>
|
|
@@ -143,7 +143,7 @@ namespace Hotline.Application.JudicialManagement
|
|
|
/// <returns></returns>
|
|
|
public ISugarQueryable<EmDepartmentalProcessingStatisticsDto> GetDepartmentalProcessingStatisticsAsync(DateTime StartTime, DateTime EndTime)
|
|
|
{
|
|
|
- return _lawEnforcementAgenciesRepository.Queryable()
|
|
|
+ return _enforcementOrdersHandlerRepository.Queryable()
|
|
|
.LeftJoin<JudicialManagementOrders>((h, o) => h.OrderId == o.Id)
|
|
|
.Where((h, o) => o.CreationTime >= StartTime && o.CreationTime <= EndTime && o.IsItCounted == true)
|
|
|
.GroupBy((h, o) => new
|
|
@@ -170,7 +170,7 @@ namespace Hotline.Application.JudicialManagement
|
|
|
/// <returns></returns>
|
|
|
public ISugarQueryable<EnforcementOrderListDto> GetDepartmentalProcessingStatisticsOrderListAsync(QueryDepartmentalProcessingStatisticsDto dto)
|
|
|
{
|
|
|
- return _lawEnforcementAgenciesRepository.Queryable()
|
|
|
+ return _enforcementOrdersHandlerRepository.Queryable()
|
|
|
.LeftJoin<JudicialManagementOrders>((x, o) => x.OrderId == o.Id)
|
|
|
.Where((x, o) => o.CreationTime >= dto.StartTime && o.CreationTime <= dto.EndTime && o.Id != null && o.IsItCounted == true)
|
|
|
.WhereIF(!string.IsNullOrEmpty(dto.OrgCode) && dto.OrgCode == "001", (x, o) => x.OrgCode == dto.OrgCode)
|