Browse Source

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

zhangchuanxing 3 months ago
parent
commit
9afa294161
2 changed files with 4 additions and 1 deletions
  1. 3 0
      controllers/statistic_company_merge.go
  2. 1 1
      models/statistic_report.go

+ 3 - 0
controllers/statistic_company_merge.go

@@ -242,6 +242,9 @@ func (this *StatisticCompanyMergerController) MergeCompanyList() {
 				br.ErrMsg = "获取失败,Err:" + err.Error()
 				return
 			}
+			for _, v := range tmpList {
+				v.SellerName = v.SellerNameInit
+			}
 			list = tmpList
 			dataTotal = total
 		}

+ 1 - 1
models/statistic_report.go

@@ -901,7 +901,7 @@ func GetIncrementalCompanyListByOperationRecordMerge(condition string, pars []in
 	o := orm.NewOrm()
 
 	//查询真正的数据
-	sql := `SELECT a.company_contract_id,a.contract_type ,a.company_product_id ,a.contract_code ,a.pay_method ,a.pay_channel ,a.package_difference ,a.company_id, a.start_date, a.end_date, a.money, b.company_name, c.seller_id, c.seller_name, a.product_id, a.product_name, a.create_time, b.region_type, c.renewal_reason, c.renewal_todo, c.status FROM company_contract a
+	sql := `SELECT a.company_contract_id,a.contract_type ,a.company_product_id ,a.contract_code ,a.pay_method ,a.pay_channel ,a.package_difference ,a.company_id, a.start_date, a.end_date, a.money, b.company_name, c.seller_id, a.seller_name_init as  seller_name, a.product_id, a.product_name, a.create_time, b.region_type, c.renewal_reason, c.renewal_todo, c.status ,c.share_seller FROM company_contract a
 		RIGHT JOIN company b ON a.company_id = b.company_id
 		JOIN company_product c ON b.company_id = c.company_id 
 		AND a.product_id = c.product_id  where 1=1  `