Эх сурвалжийг харах

Merge branch 'rai_record' into debug

ziwen 2 жил өмнө
parent
commit
b4ef02d59b

+ 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) {
 	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
-			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()
 	_, err = o.Raw(sql).QueryRows(&list)
 	return