Parcourir la source

未续约月度统计,销售数据

xyxie il y a 1 an
Parent
commit
7d4f505a00
1 fichiers modifiés avec 3 ajouts et 1 suppressions
  1. 3 1
      models/company/company_renewal_record.go

+ 3 - 1
models/company/company_renewal_record.go

@@ -89,7 +89,9 @@ WHERE
 	AND modify_time BETWEEN ? 
 	AND ? 
 	AND product_id = ?
-	AND seller_id in (` + sellerIds + `)
+	AND (share_seller_id in (` + sellerIds + `)
+	OR seller_id in (` + sellerIds + `))
+
 `
 	_, err = o.Raw(sql, startDate, endDate, productId).QueryRows(&list)