浏览代码

Merge branch 'feature/crm14.9_contract_change' into debug

xyxie 1 年之前
父节点
当前提交
ce7e62b210
共有 1 个文件被更改,包括 3 次插入1 次删除
  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)