Browse Source

服务组,续约率跟客单价排序方式修改

zhangchuanxing 1 week ago
parent
commit
8b8e02c75b
1 changed files with 2 additions and 2 deletions
  1. 2 2
      controllers/statistic/rai_data_summary.go

+ 2 - 2
controllers/statistic/rai_data_summary.go

@@ -887,7 +887,7 @@ func (this *StatisticRaiDataSummaryController) RaiDataSummaryList() {
 				case "RenewedContractData": //续约合同
 					mapSortDateService[vS.AdminId] = mapRenewedContractMoneyServer[keyMap]
 				case "RenewalRateData": //续约率
-					if mapRenewedContractMoney[keyMap] == 0 || mapExpiredContractMoneyServer[keyMap] == 0 {
+					if mapRenewedContractMoneyServer[keyMap] == 0 || mapExpiredContractMoneyServer[keyMap] == 0 {
 						mapSortDateService[vS.AdminId] = 0
 					} else {
 						mapSortDateService[vS.AdminId] = mapRenewedContractMoneyServer[keyMap] / mapExpiredContractMoneyServer[keyMap]
@@ -903,7 +903,7 @@ func (this *StatisticRaiDataSummaryController) RaiDataSummaryList() {
 				case "SignedClientCount": //签约客户数量
 					mapSortDateService[vS.AdminId] = float64(mapSignedClientNumServer[keyMap])
 				case "AverageRevenueCount": //客单价
-					if mapSignedClientNum[keyMap] == 0 || mapSignedClientMoneyServer[keyMap] == 0 {
+					if mapSignedClientNumServer[keyMap] == 0 || mapSignedClientMoneyServer[keyMap] == 0 {
 						mapSortDateService[vS.AdminId] = 0
 					} else {
 						mapSortDateService[vS.AdminId] = mapSignedClientMoneyServer[keyMap] / float64(mapSignedClientNumServer[keyMap])