|
@@ -107,8 +107,8 @@ class OrderView(View):
|
|
|
omqs = omqs.annotate(rank__title=F('rank__lang__title'), rank__content=F('rank__lang__content'))
|
|
|
order_ql = omqs.values("orderID", "UID", "channel", "desc", "price", "currency",
|
|
|
"addTime", "rank__lang__new_title", "rank__pixel_level", "rank__commodity_code",
|
|
|
- "updTime", "paypal", "rank__day", "payType",
|
|
|
- "rank__price", "status", "rank__is_ai", "rank__pay_type__id",
|
|
|
+ "updTime", "paypal", "rank__day", "payType", 'ai_rank', 'ai_rank__lang__title',
|
|
|
+ "rank__price", "status", "rank__is_ai", "rank__pay_type__id", 'ai_rank__lang__content',
|
|
|
"rank__content", "rank__title", "rank__currency",
|
|
|
"rank_id", "rank__expire", 'store_meal_name', 'order_type')[
|
|
|
(page - 1) * line:page * line]
|
|
@@ -163,7 +163,10 @@ class OrderView(View):
|
|
|
if d['order_type'] == 0:
|
|
|
d['rank__title'] = d['rank__lang__new_title'].get('1', '')
|
|
|
elif d['order_type'] == 1:
|
|
|
- d['rank__title'] = d['rank__lang__new_title'].get('2', '')
|
|
|
+ if d['ai_rank'] != 1:
|
|
|
+ d['rank__title'] = d['ai_rank__lang__title'] + '-' + d['ai_rank__lang__content']
|
|
|
+ else:
|
|
|
+ d['rank__title'] = d['rank__lang__new_title'].get('2', '')
|
|
|
else: # cdk套餐
|
|
|
if d['rank__pay_type__id'] != 11:
|
|
|
if d['rank__pixel_level'] == 0 and d['rank__is_ai'] == 0:
|