|
@@ -685,6 +685,14 @@ func GetWxUserisMakerByCompanyIds(companyIds []int) (items []*WxUser, err error)
|
|
return
|
|
return
|
|
}
|
|
}
|
|
|
|
|
|
|
|
+// GetWxUserListByCompanyId 根据公司ID获取公司下面所有用户
|
|
|
|
+func GetWxUserListByCompanyId(companyId int) (items []*WxUser, err error) {
|
|
|
|
+ o := orm.NewOrmUsingDB("weekly_report")
|
|
|
|
+ sql := `SELECT user_id,mobile FROM wx_user WHERE company_id = ? `
|
|
|
|
+ _, err = o.Raw(sql, companyId).QueryRows(&items)
|
|
|
|
+ return
|
|
|
|
+}
|
|
|
|
+
|
|
// GetWxUserNumByCompanyIds 根据公司ID获取所有决策人ID
|
|
// GetWxUserNumByCompanyIds 根据公司ID获取所有决策人ID
|
|
func GetWxUserNumByCompanyIds(companyIds []int) (items []*WxUserNumGroup, err error) {
|
|
func GetWxUserNumByCompanyIds(companyIds []int) (items []*WxUserNumGroup, err error) {
|
|
lenArr := len(companyIds)
|
|
lenArr := len(companyIds)
|