222

parent cec7c4b7
......@@ -367,10 +367,7 @@ def getAllOrders(args):
).count()
res = tamp_user_session.query(OrderFlow).filter(
and_(OrderFlow.createby == user_id, OrderFlow.ab_status == 'SUCCESS')
).order_by(OrderFlow.ab_type.desc(), OrderFlow.createtime.desc()).offset(offset).limit(pageSize)
res = tamp_user_session.query(OrderFlow).filter(OrderFlow.createby == user_id).order_by(
OrderFlow.createtime.desc()
).offset(offset).limit(pageSize)
).order_by(OrderFlow.createtime.desc()).offset(offset).limit(pageSize)
curriculum_column = {r[0]: {'title': r[1], 'cover': r[2], 'info': r[3]} for r in curriculum_column}
curriculum_res = {r[0]: {'title': r[1], 'cover': r[2], 'info': r[3]} for r in curriculum_res}
orders = [r.to_dict() for r in res if r.to_dict()['ab_status'] == 'SUCCESS']
......
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