|
@@ -318,6 +318,19 @@ func GetActivityListByDateTime(startDate, endDate, activityIds, activityIdsLongT
|
|
|
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 GetActivityCount(condition string, playBack int, pars []interface{}, filter int) (count int, err error) {
|
|
|
var sqlJiontable string
|