|
@@ -7,14 +7,14 @@ import (
|
|
|
|
|
|
|
|
|
|
|
|
-func GetPublicMeetingList() (list []*RsCalendarResearcher, err error) {
|
|
|
+func GetPublicMeetingList(endDate string) (list []*RsCalendarResearcher, err error) {
|
|
|
sql := ` SELECT b.* FROM rs_calendar AS a
|
|
|
INNER JOIN rs_calendar_researcher AS b ON a.rs_calendar_id=b.rs_calendar_id
|
|
|
- WHERE activity_type='公开会议'
|
|
|
- AND a.union_code=''
|
|
|
+ WHERE a.source=0 AND activity_type='公开会议'
|
|
|
+ AND b.end_date>=?
|
|
|
ORDER BY a.rs_calendar_id ASC `
|
|
|
o := orm.NewOrm()
|
|
|
- _, err = o.Raw(sql).QueryRows(&list)
|
|
|
+ _, err = o.Raw(sql, endDate).QueryRows(&list)
|
|
|
return
|
|
|
}
|
|
|
|