|
@@ -96,6 +96,14 @@ func GetCygxOrderVirtualAssetdCount(condition string, pars []interface{}) (count
|
|
|
return
|
|
|
}
|
|
|
|
|
|
+// 获取数量
|
|
|
+func GetCygxOrderVirtualAssetdCountByVivo(sourceId int) (count int, err error) {
|
|
|
+ o := orm.NewOrm()
|
|
|
+ sqlCount := ` SELECT COUNT(1) AS count FROM cygx_order_virtual_asset WHERE source IN ('activityvideo','activityvoice') AND source_id = ? `
|
|
|
+ err = o.Raw(sqlCount, sourceId).QueryRow(&count)
|
|
|
+ return
|
|
|
+}
|
|
|
+
|
|
|
// 获取购买的单场活动
|
|
|
func GetCygxOrderVirtualAssetActivityList(sourceIds []int, mobile string) (items []*CygxOrderVirtualAsset, err error) {
|
|
|
lenArr := len(sourceIds)
|