xingzai il y a 1 an
Parent
commit
45d7e4488d
1 fichiers modifiés avec 1 ajouts et 1 suppressions
  1. 1 1
      models/activity_attendance_detail.go

+ 1 - 1
models/activity_attendance_detail.go

@@ -151,7 +151,7 @@ type WxUserOutboundMobile struct {
 }
 
 func GetWxUserOutboundMobile(mobileStr string) (item []*WxUserOutboundMobile, err error) {
-	o := orm.NewOrm()
+	o := orm.NewOrmUsingDB("weekly_report")
 	sql := `SELECT u.real_name,u.mobile,u.outbound_mobile,u.company_id,p.company_name ,GROUP_CONCAT( DISTINCT p.seller_name SEPARATOR '/' ) AS seller_name
 			FROM wx_user as u 
 			INNER JOIN company_product AS p ON p.company_id = u.company_id