|
@@ -2186,7 +2186,7 @@ namespace Hotline.Api.Controllers.Bi
|
|
})
|
|
})
|
|
.FirstAsync();
|
|
.FirstAsync();
|
|
|
|
|
|
- if (listInfo != null && listInfo.Rows.Count > 0 && orderAgingData != null)
|
|
|
|
|
|
+ if (listInfo != null && listInfo.Rows.Count > 0 && orderAgingData != null)
|
|
{
|
|
{
|
|
orderAgingData.OrderCount = orderAgingData.OrderCount + Convert.ToInt32(listInfo.Rows[0]["AllCount"]);
|
|
orderAgingData.OrderCount = orderAgingData.OrderCount + Convert.ToInt32(listInfo.Rows[0]["AllCount"]);
|
|
orderAgingData.CompletedAging = orderAgingData.CompletedAging + Convert.ToInt32(listInfo.Rows[0]["OrderWorkTime"]);
|
|
orderAgingData.CompletedAging = orderAgingData.CompletedAging + Convert.ToInt32(listInfo.Rows[0]["OrderWorkTime"]);
|
|
@@ -2636,7 +2636,7 @@ namespace Hotline.Api.Controllers.Bi
|
|
})
|
|
})
|
|
.FirstAsync();
|
|
.FirstAsync();
|
|
|
|
|
|
- enterpriseOrderDto.InProgressCount = enterpriseOrderData.InProgressCount;
|
|
|
|
|
|
+ enterpriseOrderDto.InProgressCount = enterpriseOrderData.InProgressCount;
|
|
enterpriseOrderDto.CompletedCount = enterpriseOrderData.CompletedCount;
|
|
enterpriseOrderDto.CompletedCount = enterpriseOrderData.CompletedCount;
|
|
enterpriseOrderDto.CenterCount = enterpriseOrderData.CenterCount;
|
|
enterpriseOrderDto.CenterCount = enterpriseOrderData.CenterCount;
|
|
enterpriseOrderDto.CityCount = enterpriseOrderData.CityCount;
|
|
enterpriseOrderDto.CityCount = enterpriseOrderData.CityCount;
|
|
@@ -2648,20 +2648,20 @@ namespace Hotline.Api.Controllers.Bi
|
|
.Where((it, so) => it.VisitTarget == EVisitTarget.Org && it.OrderVisit.VisitTime >= StartTime && it.OrderVisit.VisitTime <= EndTime && it.OrderVisit.VisitState == EVisitState.Visited && it.OrderVisit.Order.IdentityType == EIdentityType.Enterprise)
|
|
.Where((it, so) => it.VisitTarget == EVisitTarget.Org && it.OrderVisit.VisitTime >= StartTime && it.OrderVisit.VisitTime <= EndTime && it.OrderVisit.VisitState == EVisitState.Visited && it.OrderVisit.Order.IdentityType == EIdentityType.Enterprise)
|
|
.GroupBy((it, so) => it.Id)
|
|
.GroupBy((it, so) => it.Id)
|
|
.Select((it, so) => new EnterpriseOrderDto
|
|
.Select((it, so) => new EnterpriseOrderDto
|
|
- {
|
|
|
|
- VisitdCount = SqlFunc.AggregateCount(1),
|
|
|
|
- Dissatisfied = SqlFunc.AggregateSum(SqlFunc.IIF(SqlFunc.JsonListObjectAny(it.OrgProcessingResults, "key", "1") || SqlFunc.JsonListObjectAny(it.OrgProcessingResults, "key", "2"), 1, 0)),
|
|
|
|
- Satisfied = SqlFunc.AggregateSum(SqlFunc.IIF(!SqlFunc.JsonListObjectAny(it.OrgProcessingResults, "key", "1") && !SqlFunc.JsonListObjectAny(it.OrgProcessingResults, "key", "2"), 1, 0)),
|
|
|
|
- CityDissatisfied = SqlFunc.AggregateSum(SqlFunc.IIF((SqlFunc.JsonListObjectAny(it.OrgProcessingResults, "key", "1") || SqlFunc.JsonListObjectAny(it.OrgProcessingResults, "key", "2")) && so.OrgType == EOrgType.City, 1, 0)),
|
|
|
|
- CitySatisfied = SqlFunc.AggregateSum(SqlFunc.IIF(!SqlFunc.JsonListObjectAny(it.OrgProcessingResults, "key", "1") && !SqlFunc.JsonListObjectAny(it.OrgProcessingResults, "key", "2") && so.OrgType == EOrgType.City, 1, 0)),
|
|
|
|
- CountyDissatisfied = SqlFunc.AggregateSum(SqlFunc.IIF((SqlFunc.JsonListObjectAny(it.OrgProcessingResults, "key", "1") || SqlFunc.JsonListObjectAny(it.OrgProcessingResults, "key", "2")) && so.OrgType == EOrgType.County, 1, 0)),
|
|
|
|
- CountySatisfied = SqlFunc.AggregateSum(SqlFunc.IIF(!SqlFunc.JsonListObjectAny(it.OrgProcessingResults, "key", "1") && !SqlFunc.JsonListObjectAny(it.OrgProcessingResults, "key", "2") && so.OrgType == EOrgType.County, 1, 0)),
|
|
|
|
- })
|
|
|
|
|
|
+ {
|
|
|
|
+ VisitdCount = SqlFunc.AggregateCount(1),
|
|
|
|
+ Dissatisfied = SqlFunc.AggregateSum(SqlFunc.IIF(SqlFunc.JsonListObjectAny(it.OrgProcessingResults, "key", "1") || SqlFunc.JsonListObjectAny(it.OrgProcessingResults, "key", "2"), 1, 0)),
|
|
|
|
+ Satisfied = SqlFunc.AggregateSum(SqlFunc.IIF(!SqlFunc.JsonListObjectAny(it.OrgProcessingResults, "key", "1") && !SqlFunc.JsonListObjectAny(it.OrgProcessingResults, "key", "2"), 1, 0)),
|
|
|
|
+ CityDissatisfied = SqlFunc.AggregateSum(SqlFunc.IIF((SqlFunc.JsonListObjectAny(it.OrgProcessingResults, "key", "1") || SqlFunc.JsonListObjectAny(it.OrgProcessingResults, "key", "2")) && so.OrgType == EOrgType.City, 1, 0)),
|
|
|
|
+ CitySatisfied = SqlFunc.AggregateSum(SqlFunc.IIF(!SqlFunc.JsonListObjectAny(it.OrgProcessingResults, "key", "1") && !SqlFunc.JsonListObjectAny(it.OrgProcessingResults, "key", "2") && so.OrgType == EOrgType.City, 1, 0)),
|
|
|
|
+ CountyDissatisfied = SqlFunc.AggregateSum(SqlFunc.IIF((SqlFunc.JsonListObjectAny(it.OrgProcessingResults, "key", "1") || SqlFunc.JsonListObjectAny(it.OrgProcessingResults, "key", "2")) && so.OrgType == EOrgType.County, 1, 0)),
|
|
|
|
+ CountySatisfied = SqlFunc.AggregateSum(SqlFunc.IIF(!SqlFunc.JsonListObjectAny(it.OrgProcessingResults, "key", "1") && !SqlFunc.JsonListObjectAny(it.OrgProcessingResults, "key", "2") && so.OrgType == EOrgType.County, 1, 0)),
|
|
|
|
+ })
|
|
.ToListAsync();
|
|
.ToListAsync();
|
|
|
|
|
|
- if (enterpriseOrderDto2.Any())
|
|
|
|
|
|
+ if (enterpriseOrderDto2.Any())
|
|
{
|
|
{
|
|
- centerReportStatisticsDto.EnterpriseOrderDto.VisitdCount = enterpriseOrderDto2.Sum(x=>x.VisitdCount);
|
|
|
|
|
|
+ centerReportStatisticsDto.EnterpriseOrderDto.VisitdCount = enterpriseOrderDto2.Sum(x => x.VisitdCount);
|
|
centerReportStatisticsDto.EnterpriseOrderDto.Dissatisfied = enterpriseOrderDto2.Sum(x => x.Dissatisfied);
|
|
centerReportStatisticsDto.EnterpriseOrderDto.Dissatisfied = enterpriseOrderDto2.Sum(x => x.Dissatisfied);
|
|
centerReportStatisticsDto.EnterpriseOrderDto.CityDissatisfied = enterpriseOrderDto2.Sum(x => x.CityDissatisfied);
|
|
centerReportStatisticsDto.EnterpriseOrderDto.CityDissatisfied = enterpriseOrderDto2.Sum(x => x.CityDissatisfied);
|
|
centerReportStatisticsDto.EnterpriseOrderDto.CountyDissatisfied = enterpriseOrderDto2.Sum(x => x.CountyDissatisfied);
|
|
centerReportStatisticsDto.EnterpriseOrderDto.CountyDissatisfied = enterpriseOrderDto2.Sum(x => x.CountyDissatisfied);
|
|
@@ -3180,6 +3180,129 @@ namespace Hotline.Api.Controllers.Bi
|
|
return ExcelStreamResult(stream, "部门受理类型统计周期数据");
|
|
return ExcelStreamResult(stream, "部门受理类型统计周期数据");
|
|
}
|
|
}
|
|
|
|
|
|
|
|
+
|
|
|
|
+ /// <summary>
|
|
|
|
+ /// 部门受理类型统计(宜宾原始功能)
|
|
|
|
+ /// </summary>
|
|
|
|
+ /// <param name="dto"></param>
|
|
|
|
+ /// <returns></returns>
|
|
|
|
+ [HttpGet("department_acceptance_type_statistics_v1")]
|
|
|
|
+ public async Task<object> DepartmentAcceptanceTypeStatisticsV1([FromQuery] DepartmentKeyWordRequest dto)
|
|
|
|
+ {
|
|
|
|
+ var items = await _orderReportApplication.DepartmentAcceptanceTypeStatisticsV1(dto).ToListAsync();
|
|
|
|
+
|
|
|
|
+ var countySumModel = new DepartmentAcceptanceTypeStatisticsV1Dto()
|
|
|
|
+ {
|
|
|
|
+ OrgName = "区县合计",
|
|
|
|
+ OrgCode = "",
|
|
|
|
+ OrgTypeText = "",
|
|
|
|
+ ZxAllCount = items.Where(x => x.OrgType == EOrgType.County).Sum(p => p.ZxAllCount),
|
|
|
|
+ ZxAcceptanceTypeCode = "10",
|
|
|
|
+
|
|
|
|
+ JyAllCount = items.Where(x => x.OrgType == EOrgType.County).Sum(p => p.JyAllCount),
|
|
|
|
+ JyAcceptanceTypeCode = "15",
|
|
|
|
+
|
|
|
|
+ QzAllCount = items.Where(x => x.OrgType == EOrgType.County).Sum(p => p.QzAllCount),
|
|
|
|
+ QzAcceptanceTypeCode = "20",
|
|
|
|
+
|
|
|
|
+ ByAllCount = items.Where(x => x.OrgType == EOrgType.County).Sum(p => p.ByAllCount),
|
|
|
|
+ ByAcceptanceTypeCode = "25",
|
|
|
|
+
|
|
|
|
+ JbAllCount = items.Where(x => x.OrgType == EOrgType.County).Sum(p => p.JbAllCount),
|
|
|
|
+ JbAcceptanceTypeCode = "30",
|
|
|
|
+
|
|
|
|
+ TsAllCount = items.Where(x => x.OrgType == EOrgType.County).Sum(p => p.TsAllCount),
|
|
|
|
+ TsAcceptanceTypeCode = "35",
|
|
|
|
+
|
|
|
|
+ QtAllCount = items.Where(x => x.OrgType == EOrgType.County).Sum(p => p.QtAllCount),
|
|
|
|
+ QtAcceptanceTypeCode = "40",
|
|
|
|
+
|
|
|
|
+ YjAllCount = items.Where(x => x.OrgType == EOrgType.County).Sum(p => p.YjAllCount),
|
|
|
|
+ YjAcceptanceTypeCode = "1",
|
|
|
|
+
|
|
|
|
+ HmAllCount = items.Where(x => x.OrgType == EOrgType.County).Sum(p => p.HmAllCount),
|
|
|
|
+ HmAcceptanceTypeCode = "2",
|
|
|
|
+
|
|
|
|
+ DqAllCount = items.Where(x => x.OrgType == EOrgType.County).Sum(p => p.DqAllCount),
|
|
|
|
+ DqAcceptanceTypeCode = "3"
|
|
|
|
+ };
|
|
|
|
+
|
|
|
|
+ var citySumModel = new DepartmentAcceptanceTypeStatisticsV1Dto()
|
|
|
|
+ {
|
|
|
|
+ OrgName = "市直合计",
|
|
|
|
+ OrgCode = "",
|
|
|
|
+ OrgTypeText = "",
|
|
|
|
+ ZxAllCount = items.Where(x => x.OrgType == EOrgType.City && x.OrgCode != "001").Sum(p => p.ZxAllCount),
|
|
|
|
+ ZxAcceptanceTypeCode = "10",
|
|
|
|
+
|
|
|
|
+ JyAllCount = items.Where(x => x.OrgType == EOrgType.City && x.OrgCode != "001").Sum(p => p.JyAllCount),
|
|
|
|
+ JyAcceptanceTypeCode = "15",
|
|
|
|
+
|
|
|
|
+ QzAllCount = items.Where(x => x.OrgType == EOrgType.City && x.OrgCode != "001").Sum(p => p.QzAllCount),
|
|
|
|
+ QzAcceptanceTypeCode = "20",
|
|
|
|
+
|
|
|
|
+ ByAllCount = items.Where(x => x.OrgType == EOrgType.City && x.OrgCode != "001").Sum(p => p.ByAllCount),
|
|
|
|
+ ByAcceptanceTypeCode = "25",
|
|
|
|
+
|
|
|
|
+ JbAllCount = items.Where(x => x.OrgType == EOrgType.City && x.OrgCode != "001").Sum(p => p.JbAllCount),
|
|
|
|
+ JbAcceptanceTypeCode = "30",
|
|
|
|
+
|
|
|
|
+ TsAllCount = items.Where(x => x.OrgType == EOrgType.City && x.OrgCode != "001").Sum(p => p.TsAllCount),
|
|
|
|
+ TsAcceptanceTypeCode = "35",
|
|
|
|
+
|
|
|
|
+ QtAllCount = items.Where(x => x.OrgType == EOrgType.City && x.OrgCode != "001").Sum(p => p.QtAllCount),
|
|
|
|
+ QtAcceptanceTypeCode = "40",
|
|
|
|
+
|
|
|
|
+ YjAllCount = items.Where(x => x.OrgType == EOrgType.City && x.OrgCode != "001").Sum(p => p.YjAllCount),
|
|
|
|
+ YjAcceptanceTypeCode = "1",
|
|
|
|
+
|
|
|
|
+ HmAllCount = items.Where(x => x.OrgType == EOrgType.City && x.OrgCode != "001").Sum(p => p.HmAllCount),
|
|
|
|
+ HmAcceptanceTypeCode = "2",
|
|
|
|
+
|
|
|
|
+ DqAllCount = items.Where(x => x.OrgType == EOrgType.City && x.OrgCode != "001").Sum(p => p.DqAllCount),
|
|
|
|
+ DqAcceptanceTypeCode = "3"
|
|
|
|
+ };
|
|
|
|
+
|
|
|
|
+ var sumModel = new DepartmentAcceptanceTypeStatisticsV1Dto()
|
|
|
|
+ {
|
|
|
|
+ OrgName = "总计",
|
|
|
|
+ OrgCode = "",
|
|
|
|
+ OrgTypeText = "",
|
|
|
|
+ ZxAllCount = items.Sum(p => p.ZxAllCount),
|
|
|
|
+ ZxAcceptanceTypeCode = "10",
|
|
|
|
+
|
|
|
|
+ JyAllCount = items.Sum(p => p.JyAllCount),
|
|
|
|
+ JyAcceptanceTypeCode = "15",
|
|
|
|
+
|
|
|
|
+ QzAllCount = items.Sum(p => p.QzAllCount),
|
|
|
|
+ QzAcceptanceTypeCode = "20",
|
|
|
|
+
|
|
|
|
+ ByAllCount = items.Sum(p => p.ByAllCount),
|
|
|
|
+ ByAcceptanceTypeCode = "25",
|
|
|
|
+
|
|
|
|
+ JbAllCount = items.Sum(p => p.JbAllCount),
|
|
|
|
+ JbAcceptanceTypeCode = "30",
|
|
|
|
+
|
|
|
|
+ TsAllCount = items.Sum(p => p.TsAllCount),
|
|
|
|
+ TsAcceptanceTypeCode = "35",
|
|
|
|
+
|
|
|
|
+ QtAllCount = items.Sum(p => p.QtAllCount),
|
|
|
|
+ QtAcceptanceTypeCode = "40",
|
|
|
|
+
|
|
|
|
+ YjAllCount = items.Sum(p => p.YjAllCount),
|
|
|
|
+ YjAcceptanceTypeCode = "1",
|
|
|
|
+
|
|
|
|
+ HmAllCount = items.Sum(p => p.HmAllCount),
|
|
|
|
+ HmAcceptanceTypeCode = "2",
|
|
|
|
+
|
|
|
|
+ DqAllCount = items.Sum(p => p.DqAllCount),
|
|
|
|
+ DqAcceptanceTypeCode = "3"
|
|
|
|
+ };
|
|
|
|
+
|
|
|
|
+ return new { DataList = items, CountySumModel = countySumModel, CitySumModel = citySumModel, SumModel = sumModel };
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+
|
|
/// <summary>
|
|
/// <summary>
|
|
/// 部门办件统计表
|
|
/// 部门办件统计表
|
|
/// </summary>
|
|
/// </summary>
|
|
@@ -5861,123 +5984,123 @@ namespace Hotline.Api.Controllers.Bi
|
|
.ToListAsync(HttpContext.RequestAborted);
|
|
.ToListAsync(HttpContext.RequestAborted);
|
|
}
|
|
}
|
|
|
|
|
|
- /// <summary>
|
|
|
|
- /// 超期退回统计
|
|
|
|
- /// </summary>
|
|
|
|
- /// <param name="dto"></param>
|
|
|
|
- /// <returns></returns>
|
|
|
|
- [HttpGet("extended_sendback_statistics")]
|
|
|
|
- public async Task<List<ExtendedSendBackVo>> ExtendedSendBackStatistics([FromQuery] PagedKeywordRequest dto)
|
|
|
|
- {
|
|
|
|
- var quer = _orderApplication.ExtendedSendBackStatistics(dto);
|
|
|
|
|
|
+ /// <summary>
|
|
|
|
+ /// 超期退回统计
|
|
|
|
+ /// </summary>
|
|
|
|
+ /// <param name="dto"></param>
|
|
|
|
+ /// <returns></returns>
|
|
|
|
+ [HttpGet("extended_sendback_statistics")]
|
|
|
|
+ public async Task<List<ExtendedSendBackVo>> ExtendedSendBackStatistics([FromQuery] PagedKeywordRequest dto)
|
|
|
|
+ {
|
|
|
|
+ var quer = _orderApplication.ExtendedSendBackStatistics(dto);
|
|
var list = await quer.ToListAsync(HttpContext.RequestAborted);
|
|
var list = await quer.ToListAsync(HttpContext.RequestAborted);
|
|
- list.Add(new ExtendedSendBackVo()
|
|
|
|
- {
|
|
|
|
- OrgName ="合计",
|
|
|
|
- TotalNum = list.Sum(m => m.TotalNum),
|
|
|
|
- PassNum = list.Sum(p => p.PassNum),
|
|
|
|
- NoPassNum = list.Sum(m => m.NoPassNum),
|
|
|
|
- AuditNum = list.Sum(m => m.AuditNum)
|
|
|
|
- });
|
|
|
|
-
|
|
|
|
- return list;
|
|
|
|
- }
|
|
|
|
-
|
|
|
|
- /// <summary>
|
|
|
|
- /// 超期退回统计导出
|
|
|
|
- /// </summary>
|
|
|
|
- /// <returns></returns>
|
|
|
|
- [HttpPost("extended_sendback_statistics/_export")]
|
|
|
|
- public async Task<FileStreamResult> ExtendedSendBackStatisticsExport([FromBody] ExportExcelDto<PagedKeywordRequest> dto)
|
|
|
|
- {
|
|
|
|
- var query = _orderApplication.ExtendedSendBackStatistics(dto.QueryDto);
|
|
|
|
- List<ExtendedSendBackVo> data;
|
|
|
|
-
|
|
|
|
- data = await query.ToListAsync(HttpContext.RequestAborted);
|
|
|
|
-
|
|
|
|
- data.Add(new ExtendedSendBackVo()
|
|
|
|
- {
|
|
|
|
- OrgName = "合计",
|
|
|
|
- TotalNum = data.Sum(m => m.TotalNum),
|
|
|
|
- PassNum = data.Sum(p => p.PassNum),
|
|
|
|
- NoPassNum = data.Sum(m => m.NoPassNum),
|
|
|
|
- AuditNum = data.Sum(m => m.AuditNum)
|
|
|
|
- });
|
|
|
|
-
|
|
|
|
- dynamic? dynamicClass = DynamicClassHelper.CreateDynamicClass(dto.ColumnInfos);
|
|
|
|
-
|
|
|
|
- var dtos = data
|
|
|
|
- .Select(stu => _mapper.Map(stu, typeof(ExtendedSendBackVo), dynamicClass))
|
|
|
|
- .Cast<object>()
|
|
|
|
- .ToList();
|
|
|
|
-
|
|
|
|
- var stream = ExcelHelper.CreateStream(dtos);
|
|
|
|
-
|
|
|
|
- return ExcelStreamResult(stream, "超期退回统计");
|
|
|
|
- }
|
|
|
|
-
|
|
|
|
- /// <summary>
|
|
|
|
- /// 超期退回统计明细
|
|
|
|
- /// </summary>
|
|
|
|
- /// <param name="dto"></param>
|
|
|
|
- /// <returns></returns>
|
|
|
|
- [HttpGet("extended_sendback_detail")]
|
|
|
|
- public async Task<PagedDto<SendBackDto>> ExtendedSendBackDetail([FromQuery] ExtendedSendBackRequest dto)
|
|
|
|
- {
|
|
|
|
- var quer = _orderApplication.ExtendedSendBackDetail(dto);
|
|
|
|
- var (total, items) = await quer.ToPagedListAsync(dto.PageIndex, dto.PageSize);
|
|
|
|
-
|
|
|
|
- return new PagedDto<SendBackDto>(total, _mapper.Map<IReadOnlyList<SendBackDto>>(items));
|
|
|
|
- }
|
|
|
|
-
|
|
|
|
- /// <summary>
|
|
|
|
- /// 超期退回统计明细导出
|
|
|
|
- /// </summary>
|
|
|
|
- /// <returns></returns>
|
|
|
|
- [HttpPost("extended_sendback_detail/_export")]
|
|
|
|
- public async Task<FileStreamResult> ExtendedSendBackDetailExport([FromBody] ExportExcelDto<ExtendedSendBackRequest> dto)
|
|
|
|
- {
|
|
|
|
- var query = _orderApplication.ExtendedSendBackDetail(dto.QueryDto);
|
|
|
|
- List<OrderSendBackAudit> data;
|
|
|
|
- if (dto.IsExportAll)
|
|
|
|
- {
|
|
|
|
- data = await query.ToListAsync(HttpContext.RequestAborted);
|
|
|
|
- }
|
|
|
|
- else
|
|
|
|
- {
|
|
|
|
- var (_, items) = await query.ToPagedListAsync(dto.QueryDto, HttpContext.RequestAborted);
|
|
|
|
- data = items;
|
|
|
|
- }
|
|
|
|
-
|
|
|
|
- var dataDtos = _mapper.Map<ICollection<SendBackDto>>(data);
|
|
|
|
-
|
|
|
|
- dynamic? dynamicClass = DynamicClassHelper.CreateDynamicClass(dto.ColumnInfos);
|
|
|
|
-
|
|
|
|
- var dtos = dataDtos
|
|
|
|
- .Select(stu => _mapper.Map(stu, typeof(SendBackDto), dynamicClass))
|
|
|
|
- .Cast<object>()
|
|
|
|
- .ToList();
|
|
|
|
-
|
|
|
|
- var stream = ExcelHelper.CreateStream(dtos);
|
|
|
|
-
|
|
|
|
- return ExcelStreamResult(stream, "超期退回统计明细");
|
|
|
|
- }
|
|
|
|
-
|
|
|
|
- /// <summary>
|
|
|
|
- /// 列表页面基础数据
|
|
|
|
- /// </summary>
|
|
|
|
- /// <returns></returns>
|
|
|
|
- [HttpGet("extended_sendback_detail/base-data")]
|
|
|
|
- public async Task<object> ExtendedSendBackDetailBaseData()
|
|
|
|
- {
|
|
|
|
- var rsp = new
|
|
|
|
- {
|
|
|
|
- AcceptTypeOptions = _sysDicDataCacheManager.GetSysDicDataCache(SysDicTypeConsts.AcceptType),
|
|
|
|
- ChannelOptions = _sysDicDataCacheManager.GetSysDicDataCache(TimeLimitBaseDataConsts.SourceChannel),
|
|
|
|
- SendBackAuditState = EnumExts.GetDescriptions<ESendBackAuditState>()
|
|
|
|
- };
|
|
|
|
- return rsp;
|
|
|
|
- }
|
|
|
|
|
|
+ list.Add(new ExtendedSendBackVo()
|
|
|
|
+ {
|
|
|
|
+ OrgName = "合计",
|
|
|
|
+ TotalNum = list.Sum(m => m.TotalNum),
|
|
|
|
+ PassNum = list.Sum(p => p.PassNum),
|
|
|
|
+ NoPassNum = list.Sum(m => m.NoPassNum),
|
|
|
|
+ AuditNum = list.Sum(m => m.AuditNum)
|
|
|
|
+ });
|
|
|
|
+
|
|
|
|
+ return list;
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ /// <summary>
|
|
|
|
+ /// 超期退回统计导出
|
|
|
|
+ /// </summary>
|
|
|
|
+ /// <returns></returns>
|
|
|
|
+ [HttpPost("extended_sendback_statistics/_export")]
|
|
|
|
+ public async Task<FileStreamResult> ExtendedSendBackStatisticsExport([FromBody] ExportExcelDto<PagedKeywordRequest> dto)
|
|
|
|
+ {
|
|
|
|
+ var query = _orderApplication.ExtendedSendBackStatistics(dto.QueryDto);
|
|
|
|
+ List<ExtendedSendBackVo> data;
|
|
|
|
+
|
|
|
|
+ data = await query.ToListAsync(HttpContext.RequestAborted);
|
|
|
|
+
|
|
|
|
+ data.Add(new ExtendedSendBackVo()
|
|
|
|
+ {
|
|
|
|
+ OrgName = "合计",
|
|
|
|
+ TotalNum = data.Sum(m => m.TotalNum),
|
|
|
|
+ PassNum = data.Sum(p => p.PassNum),
|
|
|
|
+ NoPassNum = data.Sum(m => m.NoPassNum),
|
|
|
|
+ AuditNum = data.Sum(m => m.AuditNum)
|
|
|
|
+ });
|
|
|
|
+
|
|
|
|
+ dynamic? dynamicClass = DynamicClassHelper.CreateDynamicClass(dto.ColumnInfos);
|
|
|
|
+
|
|
|
|
+ var dtos = data
|
|
|
|
+ .Select(stu => _mapper.Map(stu, typeof(ExtendedSendBackVo), dynamicClass))
|
|
|
|
+ .Cast<object>()
|
|
|
|
+ .ToList();
|
|
|
|
+
|
|
|
|
+ var stream = ExcelHelper.CreateStream(dtos);
|
|
|
|
+
|
|
|
|
+ return ExcelStreamResult(stream, "超期退回统计");
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ /// <summary>
|
|
|
|
+ /// 超期退回统计明细
|
|
|
|
+ /// </summary>
|
|
|
|
+ /// <param name="dto"></param>
|
|
|
|
+ /// <returns></returns>
|
|
|
|
+ [HttpGet("extended_sendback_detail")]
|
|
|
|
+ public async Task<PagedDto<SendBackDto>> ExtendedSendBackDetail([FromQuery] ExtendedSendBackRequest dto)
|
|
|
|
+ {
|
|
|
|
+ var quer = _orderApplication.ExtendedSendBackDetail(dto);
|
|
|
|
+ var (total, items) = await quer.ToPagedListAsync(dto.PageIndex, dto.PageSize);
|
|
|
|
+
|
|
|
|
+ return new PagedDto<SendBackDto>(total, _mapper.Map<IReadOnlyList<SendBackDto>>(items));
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ /// <summary>
|
|
|
|
+ /// 超期退回统计明细导出
|
|
|
|
+ /// </summary>
|
|
|
|
+ /// <returns></returns>
|
|
|
|
+ [HttpPost("extended_sendback_detail/_export")]
|
|
|
|
+ public async Task<FileStreamResult> ExtendedSendBackDetailExport([FromBody] ExportExcelDto<ExtendedSendBackRequest> dto)
|
|
|
|
+ {
|
|
|
|
+ var query = _orderApplication.ExtendedSendBackDetail(dto.QueryDto);
|
|
|
|
+ List<OrderSendBackAudit> data;
|
|
|
|
+ if (dto.IsExportAll)
|
|
|
|
+ {
|
|
|
|
+ data = await query.ToListAsync(HttpContext.RequestAborted);
|
|
|
|
+ }
|
|
|
|
+ else
|
|
|
|
+ {
|
|
|
|
+ var (_, items) = await query.ToPagedListAsync(dto.QueryDto, HttpContext.RequestAborted);
|
|
|
|
+ data = items;
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ var dataDtos = _mapper.Map<ICollection<SendBackDto>>(data);
|
|
|
|
+
|
|
|
|
+ dynamic? dynamicClass = DynamicClassHelper.CreateDynamicClass(dto.ColumnInfos);
|
|
|
|
+
|
|
|
|
+ var dtos = dataDtos
|
|
|
|
+ .Select(stu => _mapper.Map(stu, typeof(SendBackDto), dynamicClass))
|
|
|
|
+ .Cast<object>()
|
|
|
|
+ .ToList();
|
|
|
|
+
|
|
|
|
+ var stream = ExcelHelper.CreateStream(dtos);
|
|
|
|
+
|
|
|
|
+ return ExcelStreamResult(stream, "超期退回统计明细");
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ /// <summary>
|
|
|
|
+ /// 列表页面基础数据
|
|
|
|
+ /// </summary>
|
|
|
|
+ /// <returns></returns>
|
|
|
|
+ [HttpGet("extended_sendback_detail/base-data")]
|
|
|
|
+ public async Task<object> ExtendedSendBackDetailBaseData()
|
|
|
|
+ {
|
|
|
|
+ var rsp = new
|
|
|
|
+ {
|
|
|
|
+ AcceptTypeOptions = _sysDicDataCacheManager.GetSysDicDataCache(SysDicTypeConsts.AcceptType),
|
|
|
|
+ ChannelOptions = _sysDicDataCacheManager.GetSysDicDataCache(TimeLimitBaseDataConsts.SourceChannel),
|
|
|
|
+ SendBackAuditState = EnumExts.GetDescriptions<ESendBackAuditState>()
|
|
|
|
+ };
|
|
|
|
+ return rsp;
|
|
|
|
+ }
|
|
|
|
|
|
/// <summary>
|
|
/// <summary>
|
|
/// 网上群众路线通报
|
|
/// 网上群众路线通报
|
|
@@ -5989,9 +6112,9 @@ namespace Hotline.Api.Controllers.Bi
|
|
{
|
|
{
|
|
var nowList = await _orderRepository.Queryable()
|
|
var nowList = await _orderRepository.Queryable()
|
|
.Where(x => x.CreationTime >= dto.StartTime && x.CreationTime <= dto.EndTime).ToListAsync();
|
|
.Where(x => x.CreationTime >= dto.StartTime && x.CreationTime <= dto.EndTime).ToListAsync();
|
|
-
|
|
|
|
|
|
|
|
- var oldList =await _orderRepository.Queryable()
|
|
|
|
|
|
+
|
|
|
|
+ var oldList = await _orderRepository.Queryable()
|
|
.Where(x => x.CreationTime >= dto.ChainStartTime && x.CreationTime <= dto.ChainEndTime).ToListAsync();
|
|
.Where(x => x.CreationTime >= dto.ChainStartTime && x.CreationTime <= dto.ChainEndTime).ToListAsync();
|
|
|
|
|
|
|
|
|
|
@@ -5999,7 +6122,7 @@ namespace Hotline.Api.Controllers.Bi
|
|
//市12345政务服务便民热线
|
|
//市12345政务服务便民热线
|
|
var Other = new OnlineMassLineReportRes();
|
|
var Other = new OnlineMassLineReportRes();
|
|
Other.SourceChannel = "市12345政务服务便民热线";
|
|
Other.SourceChannel = "市12345政务服务便民热线";
|
|
- Other.SumCount = nowList.Where(x => x.IsProvince==false && x.SourceChannelCode != "SZYSM").Count(); //市12345政务服务便民热线
|
|
|
|
|
|
+ Other.SumCount = nowList.Where(x => x.IsProvince == false && x.SourceChannelCode != "SZYSM").Count(); //市12345政务服务便民热线
|
|
Other.PreviousCount = oldList.Where(x => x.IsProvince == false && x.SourceChannelCode != "SZYSM").Count(); //市12345政务服务便民热线
|
|
Other.PreviousCount = oldList.Where(x => x.IsProvince == false && x.SourceChannelCode != "SZYSM").Count(); //市12345政务服务便民热线
|
|
returnList.Add(Other);
|
|
returnList.Add(Other);
|
|
//中国政府网“我向总理说句话”
|
|
//中国政府网“我向总理说句话”
|
|
@@ -6017,16 +6140,16 @@ namespace Hotline.Api.Controllers.Bi
|
|
//省12345政务服务便民热线
|
|
//省12345政务服务便民热线
|
|
var Province12345 = new OnlineMassLineReportRes();
|
|
var Province12345 = new OnlineMassLineReportRes();
|
|
Province12345.SourceChannel = "省12345政务服务便民热线";
|
|
Province12345.SourceChannel = "省12345政务服务便民热线";
|
|
- Province12345.SumCount = nowList.Where(x => x.IsProvince == true && x.ReceiveProvinceNo.StartsWith("GJZWFWPT")==false && x.ReceiveProvinceNo.StartsWith("ZGZFW")==false).Count(); //国家政务服务平台“投诉与建议”
|
|
|
|
- Province12345.PreviousCount = oldList.Where(x => x.IsProvince == true && x.ReceiveProvinceNo.StartsWith("GJZWFWPT")==false && x.ReceiveProvinceNo.StartsWith("ZGZFW")==false).Count(); //国家政务服务平台“投诉与建议”
|
|
|
|
|
|
+ Province12345.SumCount = nowList.Where(x => x.IsProvince == true && x.ReceiveProvinceNo.StartsWith("GJZWFWPT") == false && x.ReceiveProvinceNo.StartsWith("ZGZFW") == false).Count(); //国家政务服务平台“投诉与建议”
|
|
|
|
+ Province12345.PreviousCount = oldList.Where(x => x.IsProvince == true && x.ReceiveProvinceNo.StartsWith("GJZWFWPT") == false && x.ReceiveProvinceNo.StartsWith("ZGZFW") == false).Count(); //国家政务服务平台“投诉与建议”
|
|
returnList.Add(Province12345);
|
|
returnList.Add(Province12345);
|
|
//市政府网站“市长与网民”
|
|
//市政府网站“市长与网民”
|
|
var SZYSM = new OnlineMassLineReportRes();
|
|
var SZYSM = new OnlineMassLineReportRes();
|
|
SZYSM.SourceChannel = "市政府网站“市长与网民”";
|
|
SZYSM.SourceChannel = "市政府网站“市长与网民”";
|
|
- SZYSM.SumCount = nowList.Where(x => x.SourceChannelCode=="SZYSM").Count(); //国家政务服务平台“投诉与建议”
|
|
|
|
|
|
+ SZYSM.SumCount = nowList.Where(x => x.SourceChannelCode == "SZYSM").Count(); //国家政务服务平台“投诉与建议”
|
|
SZYSM.PreviousCount = oldList.Where(x => x.SourceChannelCode == "SZYSM").Count(); //国家政务服务平台“投诉与建议”
|
|
SZYSM.PreviousCount = oldList.Where(x => x.SourceChannelCode == "SZYSM").Count(); //国家政务服务平台“投诉与建议”
|
|
returnList.Add(SZYSM);
|
|
returnList.Add(SZYSM);
|
|
return returnList;
|
|
return returnList;
|
|
}
|
|
}
|
|
- }
|
|
|
|
|
|
+ }
|
|
}
|
|
}
|