|
@@ -996,7 +996,8 @@ func AddCygxActivity(item *CygxActivity) (lastId int64, err error) {
|
|
|
// 列表
|
|
|
func GetActivityListByYidong(condition string) (items []*ActivityDetail, err error) {
|
|
|
o := orm.NewOrm()
|
|
|
- sql := `SELECT * FROM cygx_activity WHERE yidong_activity_id != '' OR yidong_activity_id_by_cygx != '' `
|
|
|
+ sql := `SELECT * FROM cygx_activity WHERE 1 = 1
|
|
|
+ AND ( yidong_activity_id != '' OR yidong_activity_id_by_cygx != '' ) `
|
|
|
if condition != "" {
|
|
|
sql += condition
|
|
|
}
|