Browse Source

Merge branch 'CRM_15.6' into debug

zwxi 11 months ago
parent
commit
5504c6ea90
1 changed files with 1 additions and 1 deletions
  1. 1 1
      models/company/company.go

+ 1 - 1
models/company/company.go

@@ -1962,6 +1962,6 @@ func GetCompanyListByCondition(condition string, pars []interface{}, fieldArr []
 func GetOverseasCompanys() (items []*Company, err error) {
 	o := orm.NewOrm()
 	sql := ` SELECT * FROM company where region_type= '海外' `
-	err = o.Raw(sql).QueryRow(&items)
+	_, err = o.Raw(sql).QueryRows(&items)
 	return
 }