Browse Source

no message

xingzai 7 months ago
parent
commit
f820c19a19
1 changed files with 1 additions and 1 deletions
  1. 1 1
      models/wx_user.go

+ 1 - 1
models/wx_user.go

@@ -649,7 +649,7 @@ func GetWxUserisMakerByCompanyIds(companyIds []int) (items []*WxUser, err error)
 	if lenArr == 0 {
 		return
 	}
-	sql := `SELECT user_id  FROM wx_user  WHERE company_id in (` + utils.GetOrmInReplace(lenArr) + `)  `
+	sql := `SELECT user_id  FROM wx_user  WHERE company_id in (` + utils.GetOrmInReplace(lenArr) + `) AND is_maker = 1   `
 	o := orm.NewOrmUsingDB("weekly_report")
 	_, err = o.Raw(sql, companyIds).QueryRows(&items)
 	return