Commit 31416e2e authored by wang zhengwei's avatar wang zhengwei

fix bug

parent cfdfac27
......@@ -162,7 +162,7 @@ class CurriculumOrderService:
# 找出 1栏目表 , 3直播间信息表, [4,5]课程资源, 7附件 的list id
orders = [r.to_dict() for r in res if r.to_dict()['ab_status'] == 'SUCCESS']
orders_dict = {'1':[], '3':[], '45':[], '7':[]}
orders_dict = {'1':[], '3':[], '4':[], '5':[], '7':[]}
for i in orders:
prod_type = i.get('ab_type', '')
prod_id = i.get('ab_proid', '')
......@@ -176,7 +176,7 @@ class CurriculumOrderService:
filter(CurriculumColumn.id.in_(orders_dict["1"])).all()
curriculum_res = tamp_user_session.query(CurriculumRes.id, CurriculumRes.title,
CurriculumRes.cover, CurriculumRes.teacher_name).\
filter(CurriculumRes.id.in_(orders_dict["45"])).all()
filter(CurriculumRes.id.in_(orders_dict["4"] + orders_dict["5"])).all()
zhibo = tamp_zhibo_session.query(ZhiboTheme.id, ZhiboTheme.zt_name, ZhiboTheme.zt_img,
ZhiboTheme.manager_name, ZhiboTheme.zt_starttime).\
filter(ZhiboTheme.id.in_(orders_dict["3"])).all()
......@@ -440,7 +440,7 @@ def getAllOrders(args):
# 找出 1栏目表 , 3直播间信息表, [4,5]课程资源, 7附件 的list id
orders = [r.to_dict() for r in res if r.to_dict()['ab_status'] == 'SUCCESS']
orders_dict = {'1':[], '3':[], '45':[], '7':[]}
orders_dict = {'1':[], '3':[], '4':[], '5':[], '7':[]}
for i in orders:
prod_type = i.get('ab_type', '')
prod_id = i.get('ab_proid', '')
......@@ -453,7 +453,7 @@ def getAllOrders(args):
filter(CurriculumColumn.id.in_(orders_dict["1"])).all()
curriculum_res = tamp_user_session.query(CurriculumRes.id, CurriculumRes.title,
CurriculumRes.cover, CurriculumRes.teacher_name).\
filter(CurriculumRes.id.in_(orders_dict["45"])).all()
filter(CurriculumRes.id.in_(orders_dict["4"] + orders_dict["5"])).all()
zhibo = tamp_zhibo_session.query(ZhiboTheme.id, ZhiboTheme.zt_name, ZhiboTheme.zt_img,
ZhiboTheme.manager_name, ZhiboTheme.zt_starttime).\
filter(ZhiboTheme.id.in_(orders_dict["3"])).all()
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment