浏览代码

Merge branch 'rai_record' into debug

ziwen 2 年之前
父节点
当前提交
b4ef02d59b
共有 1 个文件被更改,包括 1 次插入2 次删除
  1. 1 2
      models/company_report_record.go

+ 1 - 2
models/company_report_record.go

@@ -37,8 +37,7 @@ func GetExistCompanyReportRecord(endDate string) (list []*CompanyReportRecord, e
 func GetCompanyList(endDate string) (list []*CompanyReportRecord, err error) {
 func GetCompanyList(endDate string) (list []*CompanyReportRecord, err error) {
 	sql := ` SELECT a.company_id,a.company_name,a.credit_code,b.status,b.start_date,b.end_date,b.seller_id,b.seller_name,b.company_product_id
 	sql := ` SELECT a.company_id,a.company_name,a.credit_code,b.status,b.start_date,b.end_date,b.seller_id,b.seller_name,b.company_product_id
 			FROM  company AS a
 			FROM  company AS a
-			INNER JOIN company_product AS b ON a.company_id=b.company_id
-			WHERE b.product_id=1`
+			INNER JOIN company_product AS b ON a.company_id=b.company_id `
 	o := orm.NewOrm()
 	o := orm.NewOrm()
 	_, err = o.Raw(sql).QueryRows(&list)
 	_, err = o.Raw(sql).QueryRows(&list)
 	return
 	return