作者 yangfu

搜索修改

... ... @@ -134,7 +134,7 @@ func GetUserAllCompany(uid int64) (v []*UserCompany, err error) {
//@key CompanyId NickName
func GetUserCompanyIdAllBy(options map[string]interface{}) (v []int64, err error) {
o := orm.NewOrm()
sql := "select id from user_company "
sql := "select id from user_company where 1=1 "
if _, ok := options["CompanyId"]; ok {
sql += fmt.Sprintf(" and company_id=%v ", options["CompanyId"])
}
... ...