|
@@ -643,7 +643,13 @@ namespace Hotline.Api.Controllers.Bi
|
|
|
OrgName = x.VisitOrgName,
|
|
|
OrgCode = x.VisitOrgCode,
|
|
|
TotalSumCount = SqlFunc.AggregateCount(x.VisitOrgCode),
|
|
|
- VerySatisfiedCount = SqlFunc.AggregateSum(SqlFunc.IIF(SqlFunc.JsonListObjectAny(x.OrgProcessingResults, "key", "5"), 1, 0)),//非常满意数
|
|
|
+ VerySatisfiedCount = SqlFunc.AggregateSum(SqlFunc.IIF(SqlFunc.JsonListObjectAny(x.OrgProcessingResults, "Key", "5"), 1, 0)),//非常满意数
|
|
|
+ SatisfiedCount = SqlFunc.AggregateSum(SqlFunc.IIF(SqlFunc.JsonListObjectAny(x.OrgProcessingResults, "Key", "4"),1,0)), //满意数
|
|
|
+ GeneralSatisfiedCount = SqlFunc.AggregateSum(SqlFunc.IIF(SqlFunc.JsonListObjectAny(x.OrgProcessingResults, "Key", "3"),1,0))+ SqlFunc.AggregateSum(SqlFunc.IIF(SqlFunc.JsonListObjectAny(x.OrgProcessingResults, "Key", "0"), 1, 0)),//一般满意
|
|
|
+ NoSatisfiedCount = SqlFunc.AggregateSum(SqlFunc.IIF(SqlFunc.JsonListObjectAny(x.OrgProcessingResults, "Key", "2"),1,0)),//不满意
|
|
|
+ VeryNoSatisfiedCount = SqlFunc.AggregateSum(SqlFunc.IIF(SqlFunc.JsonListObjectAny(x.OrgProcessingResults, "Key", "1"),1,0)),//非常不满意
|
|
|
+ NoEvaluateCount = SqlFunc.AggregateSum(SqlFunc.IIF(SqlFunc.JsonListObjectAny(x.OrgProcessingResults, "Key", "7"),1,0)),//未做评价
|
|
|
+ NoPutThroughCount = SqlFunc.AggregateSum(SqlFunc.IIF(SqlFunc.JsonListObjectAny(x.OrgProcessingResults, "Key", "6"),1,0)),//未接通
|
|
|
})
|
|
|
.ToListAsync();
|
|
|
|