|
@@ -426,6 +426,19 @@ func GetScheduleCount(condition string, uid int) (count int, err error) {
|
|
|
return
|
|
|
}
|
|
|
|
|
|
+//获取我的日程数量
|
|
|
+func GetSpecialScheduleCount(uid int) (count int, err error) {
|
|
|
+ o := orm.NewOrm()
|
|
|
+ sqlCount := `
|
|
|
+SELECT COUNT( 1 ) AS count FROM
|
|
|
+ cygx_activity_special AS art
|
|
|
+ INNER JOIN cygx_activity_special_trip AS my ON my.activity_id = art.activity_id
|
|
|
+ WHERE
|
|
|
+ 1 = 1 AND my.user_id = ? AND my.is_cancel = 0`
|
|
|
+ err = o.Raw(sqlCount, uid).QueryRow(&count)
|
|
|
+ return
|
|
|
+}
|
|
|
+
|
|
|
//我的日程列表
|
|
|
func GetScheduleList(condition string, pars []interface{}, uid, startSize, pageSize int) (items []*ActivityDetail, err error) {
|
|
|
o := orm.NewOrm()
|