diff --git a/netcore/src/Modularity/Extend/NCC.Extend.Entitys/Dto/LqStatistics/EmployeePerformanceStatisticsOutput.cs b/netcore/src/Modularity/Extend/NCC.Extend.Entitys/Dto/LqStatistics/EmployeePerformanceStatisticsOutput.cs index 5cbe83d..3ded29a 100644 --- a/netcore/src/Modularity/Extend/NCC.Extend.Entitys/Dto/LqStatistics/EmployeePerformanceStatisticsOutput.cs +++ b/netcore/src/Modularity/Extend/NCC.Extend.Entitys/Dto/LqStatistics/EmployeePerformanceStatisticsOutput.cs @@ -71,12 +71,12 @@ namespace NCC.Extend.Entitys.Dto.LqStatistics public int PersonCount { get; set; } /// - /// 开单项目数 + /// 开单项目数(项目次数总和) /// public int BillingProjectCount { get; set; } /// - /// 消耗项目数 + /// 消耗项目数(项目次数总和) /// public int ConsumeProjectCount { get; set; } } diff --git a/netcore/src/Modularity/Extend/NCC.Extend/LqStatisticsService.cs b/netcore/src/Modularity/Extend/NCC.Extend/LqStatisticsService.cs index 3d68fae..4ead485 100644 --- a/netcore/src/Modularity/Extend/NCC.Extend/LqStatisticsService.cs +++ b/netcore/src/Modularity/Extend/NCC.Extend/LqStatisticsService.cs @@ -3411,10 +3411,10 @@ namespace NCC.Extend.LqStatistics /// - AppointmentCount: 预约人数 /// - BillingCount: 开单数量 /// - BillingAmount: 开单金额 - /// - BillingProjectCount: 开单项目数 + /// - BillingProjectCount: 开单项目数(项目次数总和) /// - ConsumeCount: 消耗数量 /// - ConsumeAmount: 消耗金额 - /// - ConsumeProjectCount: 消耗项目数 + /// - ConsumeProjectCount: 消耗项目数(项目次数总和) /// - RefundCount: 退卡数量 /// - RefundAmount: 退卡金额 /// - HeadCount: 人头(月度去重客户数) @@ -3636,12 +3636,12 @@ namespace NCC.Extend.LqStatistics } /// - /// 统计开单项目数 + /// 统计开单项目数(项目次数总和) /// private async Task GetBillingProjectCount(string userId, string month) { var sql = $@" - SELECT COUNT(DISTINCT pxmx.px) as Count + SELECT COALESCE(SUM(pxmx.F_ProjectNumber), 0) as Count FROM lq_kd_jksyj jksyj INNER JOIN lq_kd_pxmx pxmx ON jksyj.F_kdpxid = pxmx.F_Id WHERE jksyj.jkszh = '{userId}' @@ -3653,12 +3653,12 @@ namespace NCC.Extend.LqStatistics } /// - /// 统计消耗项目数 + /// 统计消耗项目数(项目次数总和) /// private async Task GetConsumeProjectCount(string userId, string month) { var sql = $@" - SELECT COUNT(DISTINCT pxmx.px) as Count + SELECT COALESCE(SUM(pxmx.F_ProjectNumber), 0) as Count FROM lq_xh_jksyj jksyj INNER JOIN lq_xh_hyhk hyhk ON jksyj.glkdbh = hyhk.F_Id INNER JOIN lq_xh_pxmx pxmx ON pxmx.F_ConsumeInfoId = hyhk.F_Id