|
@@ -163,12 +163,13 @@ type GetOutboundPersonnelRep struct {
|
|
|
RealName string `description:"姓名"`
|
|
|
Mobile string `description:"手机号"`
|
|
|
CompanyName string `description:"公司名称"`
|
|
|
+ Position string `description:"职位"`
|
|
|
}
|
|
|
|
|
|
// 列表
|
|
|
func GetOutboundPersonnelList(name string) (items []*GetOutboundPersonnelRep, err error) {
|
|
|
o := orm.NewOrm()
|
|
|
- sql := `SELECT u.user_id,u.real_name,u.mobile,p.company_name FROM wx_user as u INNER JOIN company AS p ON p.company_id = u.company_id WHERE real_name LIKE '%` + name + `%' AND u.company_id >1 GROUP BY u.user_id ORDER BY user_id ASC`
|
|
|
+ sql := `SELECT u.position,u.user_id,u.real_name,u.mobile,p.company_name FROM wx_user as u INNER JOIN company AS p ON p.company_id = u.company_id WHERE real_name LIKE '%` + name + `%' AND u.company_id >1 GROUP BY u.user_id ORDER BY user_id ASC`
|
|
|
_, err = o.Raw(sql).QueryRows(&items)
|
|
|
return
|
|
|
}
|