|
@@ -102,18 +102,17 @@ ORDER BY
|
|
|
return
|
|
|
}
|
|
|
|
|
|
-func GetYbResearchSignupStatisticsItemsByMobile(mobile string) (items []*YbResearchSignupStatisticsItem, err error) {
|
|
|
+func GetYbResearchSignupStatisticsItemsByMobile(mobile string, bannerId int) (items []*YbResearchSignupStatisticsItem, err error) {
|
|
|
sql := ` SELECT
|
|
|
*
|
|
|
FROM
|
|
|
yb_research_signup_statistics
|
|
|
WHERE
|
|
|
- 1 = 1 and mobile = ?
|
|
|
-
|
|
|
+ 1 = 1 and mobile = ? and banner_id = ?
|
|
|
ORDER BY
|
|
|
create_time DESC `
|
|
|
o := orm.NewOrm()
|
|
|
- _, err = o.Raw(sql, mobile).QueryRows(&items)
|
|
|
+ _, err = o.Raw(sql, mobile, bannerId).QueryRows(&items)
|
|
|
return
|
|
|
}
|
|
|
|