浏览代码

no message

zhangchuanxing 1 月之前
父节点
当前提交
64e8e029ac
共有 1 个文件被更改,包括 4 次插入5 次删除
  1. 4 5
      controllers/statistic/rai_data_summary.go

+ 4 - 5
controllers/statistic/rai_data_summary.go

@@ -910,7 +910,6 @@ func (this *StatisticRaiDataSummaryController) RaiDataSummaryDetail() {
 	{
 		var conditionNew string
 		var parsNew []interface{}
-		fmt.Println("sellerId", sellerId)
 		if sellerId != "" {
 			conditionNew += ` AND a.seller_id_last IN (` + sellerId + `) `
 		}
@@ -1406,10 +1405,10 @@ func (this *StatisticRaiDataSummaryController) RaiDataSummaryDetail() {
 		if sellerId != "" {
 			if isServerSeller {
 				condition += ` AND a.share_seller_id_init  IN (` + sellerId + `) `
-				conditionInherit += ` AND a.share_seller_id_init  IN (` + sellerId + `) `
+				conditionInherit += ` AND a.share_seller_id_last  IN (` + sellerId + `) `
 			} else {
 				condition += ` AND a.seller_id_init IN (` + sellerId + `) `
-				conditionInherit += ` AND a.seller_id_init  IN (` + sellerId + `) `
+				conditionInherit += ` AND a.seller_id_last  IN (` + sellerId + `) `
 			}
 		}
 		condition += " AND  a.product_id = 2  AND  a.status = 1  AND  a.start_date >= ?  AND  a.start_date <= ?  AND a.rai_contract_type = '新签合同' "
@@ -1477,10 +1476,10 @@ func (this *StatisticRaiDataSummaryController) RaiDataSummaryDetail() {
 		var parsInherit []interface{}
 		if sellerId != "" {
 			if isServerSeller {
-				condition += ` AND a.share_seller_id_last  IN (` + sellerId + `) `
+				condition += ` AND a.share_seller_id_init  IN (` + sellerId + `) `
 				conditionInherit += ` AND a.share_seller_id_last  IN (` + sellerId + `) `
 			} else {
-				condition += ` AND a.seller_id_last  IN (` + sellerId + `) `
+				condition += ` AND a.seller_id_init  IN (` + sellerId + `) `
 				conditionInherit += ` AND a.seller_id_last  IN (` + sellerId + `) `
 			}