Переглянути джерело

Merge branch 'crm/crm_16.1' of http://8.136.199.33:3000/hongze/hz_crm_api into debug

zhangchuanxing 3 місяців тому
батько
коміт
1599083e88
1 змінених файлів з 3 додано та 4 видалено
  1. 3 4
      controllers/statistic_company_merge.go

+ 3 - 4
controllers/statistic_company_merge.go

@@ -391,7 +391,7 @@ func (this *StatisticCompanyMergerController) MergeCompanyList() {
 		}
 		notRenewalCompanyTotal = total
 
-		notRenewalCompanyToBeConfirmTotal, err = company.GetIncrementalRenewalCompanyProductMergeCount(notRenewalToBeCondition, notRenewalToBePars)
+		notRenewalCompanyToBeConfirmTotal, err = company.GetIncrementalRenewalCompanyProductMergeCount(notRenewalToBeCondition+` AND a.not_renewal_hide = 0  AND c.status not in ("永续","正式","关闭") `, notRenewalToBePars)
 		if err != nil && err.Error() != utils.ErrNoRow() {
 			br.Msg = "获取失败"
 			br.ErrMsg = "获取失败,Err:" + err.Error()
@@ -399,8 +399,7 @@ func (this *StatisticCompanyMergerController) MergeCompanyList() {
 		}
 
 		if isConfirm != 2 {
-			condition1 += `  AND a.not_renewal_hide = 0 `
-			condition1 += ` AND c.status not in ("永续","正式","关闭")  `
+			condition1 += `  AND a.not_renewal_hide = 0  AND c.status not in ("永续","正式","关闭") `
 		}
 
 		//if isConfirm == 1 {
@@ -519,7 +518,7 @@ func (this *StatisticCompanyMergerController) MergeCompanyList() {
 		v.PermissionName = mappermissionName[v.CompanyContractId]
 		v.IsUserMaker = mapIsUserMaker[v.CompanyId]
 	}
-	notRenewalCompanyToBeConfirmTotal = notRenewalTryOut // 展示数据替换
+
 	page := paging.GetPaging(currentIndex, pageSize, dataTotal)
 	resp := response.IncrementalCompanyListResp{
 		Paging:                            page,