hongze 1 year ago
parent
commit
6f5e510c49
1 changed files with 2 additions and 2 deletions
  1. 2 2
      controllers/overseas_custom/custom.go

+ 2 - 2
controllers/overseas_custom/custom.go

@@ -419,7 +419,7 @@ func (this *OverseasCustomController) CustomStatistics() {
 
 		companyIds = append(companyIds, enCompanyIds...)
 
-		condition += fmt.Sprintf(` AND c.company_id IN (%s) `, utils.GetOrmInReplace(len(companyIds)))
+		condition += fmt.Sprintf(` AND m.company_id IN (%s) `, utils.GetOrmInReplace(len(companyIds)))
 		pars = append(pars, companyIds)
 	}
 	if sellerId > 0 {
@@ -528,7 +528,7 @@ func (this *OverseasCustomController) CustomLabelStatistics() {
 
 		companyIds = append(companyIds, enCompanyIds...)
 
-		condition += fmt.Sprintf(` AND c.company_id IN (%s) `, utils.GetOrmInReplace(len(companyIds)))
+		condition += fmt.Sprintf(` AND m.company_id IN (%s) `, utils.GetOrmInReplace(len(companyIds)))
 		pars = append(pars, companyIds)
 	}
 	if sellerId > 0 {