zhangchuanxing 2 semanas atrás
pai
commit
fddda36d53
1 arquivos alterados com 6 adições e 1 exclusões
  1. 6 1
      controllers/statistic/rai_data_summary.go

+ 6 - 1
controllers/statistic/rai_data_summary.go

@@ -254,7 +254,7 @@ func (this *StatisticRaiDataSummaryController) RaiDataSummaryList() {
 
 		mapSignedClientMoney[keyMapTtoal] += v.Money
 
-		if !mapCompanyData[keySigned] {
+		if !mapCompanyData[keySigned] && v.RaiContractType == "新签合同" {
 			mapSignedClientNum[keyMap]++
 			mapSignedClientNum[keyMapTtoal]++
 			mapCompanyData[keySigned] = true
@@ -307,6 +307,11 @@ func (this *StatisticRaiDataSummaryController) RaiDataSummaryList() {
 			mapRenewedContractNum[keyMapTtoal]++
 			mapKeyMapCompanyData[keyMapCompany] = true
 		}
+		if !mapCompanyData[keySigned] && v.RaiContractType == "续约合同" {
+			mapSignedClientNum[keyMap]++
+			mapSignedClientNum[keyMapTtoal]++
+			mapCompanyData[keySigned] = true
+		}
 	}
 
 	//确认不续约、到期合同部分的数据