|
@@ -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 + `) `
|
|
|
}
|
|
|
|