瀏覽代碼

no message

zhangchuanxing 2 周之前
父節點
當前提交
fddda36d53
共有 1 個文件被更改,包括 6 次插入1 次删除
  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
+		}
 	}
 
 	//确认不续约、到期合同部分的数据