@@ -662,7 +662,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)