Commit 5904a932 by Aeolus

update

parent 5e17dee8
......@@ -350,7 +350,8 @@ def run_nfc_card_user_pay_record():
if not total_count:
return BaseResponse(data=[], total_count=0, page=page, page_size=page_size)
pay_records = NfcCardPayRecord.query.filter_by(card_no=card_no, status=1).all()
pay_records = NfcCardPayRecord.query.filter_by(card_no=card_no, status=1).offset((page - 1) * page_size).limit(
page_size).all()
result_data = []
for record in pay_records:
tmp_data = {
......@@ -416,7 +417,8 @@ def run_nfc_card_user_load_record():
if not total_count:
return BaseResponse(data=[], total_count=0, page=page, page_size=page_size)
pay_records = NfcCardPayRecord.query.filter_by(card_no=card_no, status=2).all()
pay_records = NfcCardPayRecord.query.filter_by(card_no=card_no, status=2).offset((page - 1) * page_size).limit(
page_size).all()
result_data = []
for record in pay_records:
tmp_data = {
......
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