Browse Source

no message

zhangchuanxing 2 tuần trước cách đây
mục cha
commit
1f49b894a2
1 tập tin đã thay đổi với 0 bổ sung10 xóa
  1. 0 10
      controllers/statistic/rai_data_summary.go

+ 0 - 10
controllers/statistic/rai_data_summary.go

@@ -889,7 +889,6 @@ func (this *StatisticRaiDataSummaryController) RaiDataSummaryDetail() {
 
 		if sellerId != "" {
 			condition += ` AND a.seller_id_last  IN (` + sellerId + `) `
-			pars = append(pars, sellerId)
 		}
 
 		condition += ` AND  a.status = 1  AND a.end_date >= ?  AND a.end_date <= ?   AND a.end_date < ? `
@@ -943,7 +942,6 @@ func (this *StatisticRaiDataSummaryController) RaiDataSummaryDetail() {
 	case "续约合同":
 		if sellerId != "" {
 			condition += ` AND a.seller_id_last  IN (` + sellerId + `) `
-			pars = append(pars, sellerId)
 		}
 
 		condition += ` AND  a.status = 1  AND a.inherit_end_date >= ?  AND a.inherit_end_date <= ?  AND  a.inherit_company_contract_id > 0  `
@@ -1142,10 +1140,8 @@ func (this *StatisticRaiDataSummaryController) RaiDataSummaryDetail() {
 		var parsEnd []interface{}
 		if sellerId != "" {
 			condition += ` AND a.seller_id_last  IN (` + sellerId + `) `
-			pars = append(pars, sellerId)
 
 			conditionEnd += ` AND a.seller_id_last  IN (` + sellerId + `) `
-			parsEnd = append(parsEnd, sellerId)
 		}
 
 		condition += ` AND  a.product_id = 2  AND  a.status = 1  AND  a.end_date >= ?  AND  a.end_date <= ? AND a.end_date <= ?  `
@@ -1285,7 +1281,6 @@ func (this *StatisticRaiDataSummaryController) RaiDataSummaryDetail() {
 	case "客单价":
 		if sellerId != "" {
 			condition += ` AND a.seller_id_last  IN (` + sellerId + `) `
-			pars = append(pars, sellerId)
 		}
 		condition += " AND  a.product_id = 2  AND  a.status = 1  AND  a.start_date >= ?  AND  a.start_date <= ? "
 		pars = append(pars, startDate, endDate)
@@ -1315,7 +1310,6 @@ func (this *StatisticRaiDataSummaryController) RaiDataSummaryDetail() {
 	case "开票金额":
 		if sellerId != "" {
 			condition += ` AND a.rai_seller_id  IN (` + sellerId + `) `
-			pars = append(pars, sellerId)
 		}
 		condition += " AND  a.is_deleted = 0    AND  a.start_date >= ?  AND  a.start_date <= ?  AND  invoiced_amount > 0   AND product_ids LIKE '%2%' "
 		pars = append(pars, startDate, endDate)
@@ -1361,7 +1355,6 @@ func (this *StatisticRaiDataSummaryController) RaiDataSummaryDetail() {
 	case "到款金额":
 		if sellerId != "" {
 			condition += ` AND a.rai_seller_id  IN (` + sellerId + `) `
-			pars = append(pars, sellerId)
 		}
 		condition += " AND  a.is_deleted = 0    AND  a.start_date >= ?  AND  a.start_date <= ?  AND  payment_amount > 0   AND product_ids LIKE '%2%' "
 		pars = append(pars, startDate, endDate)
@@ -1408,7 +1401,6 @@ func (this *StatisticRaiDataSummaryController) RaiDataSummaryDetail() {
 	case "未到款比例":
 		if sellerId != "" {
 			condition += ` AND a.rai_seller_id  IN (` + sellerId + `) `
-			pars = append(pars, sellerId)
 		}
 		condition += " AND  a.is_deleted = 0   AND  a.start_date >= ?  AND  a.start_date <= ?    AND product_ids LIKE '%2%' "
 		pars = append(pars, startDate, endDate)
@@ -1431,7 +1423,6 @@ func (this *StatisticRaiDataSummaryController) RaiDataSummaryDetail() {
 	case "新客开票":
 		if sellerId != "" {
 			condition += ` AND a.rai_seller_id  IN (` + sellerId + `) `
-			pars = append(pars, sellerId)
 		}
 		condition += " AND  a.is_deleted = 0  AND contract_type = 1   AND  a.start_date >= ?  AND  a.start_date <= ?   AND product_ids LIKE '%2%' "
 		pars = append(pars, startDate, endDate)
@@ -1477,7 +1468,6 @@ func (this *StatisticRaiDataSummaryController) RaiDataSummaryDetail() {
 	case "新客到款":
 		if sellerId != "" {
 			condition += ` AND a.rai_seller_id  IN (` + sellerId + `) `
-			pars = append(pars, sellerId)
 		}
 		condition += " AND  a.is_deleted = 0    AND contract_type = 1   AND  a.start_date >= ?  AND  a.start_date <= ?  AND  payment_amount > 0   AND product_ids LIKE '%2%' "
 		pars = append(pars, startDate, endDate)