Commit 8a4a7948 by Aeolus

update

parent c27ccbe1
......@@ -213,6 +213,7 @@ def run_nfc_card_pay_record():
json_data = request.get_json()
page = json_data["page"]
page_size = json_data["pageSize"]
card_no = json_data.get("card_no", None)
pay_year = json_data.get("pay_year", None)
pay_month = json_data.get("pay_month", None)
......@@ -220,6 +221,8 @@ def run_nfc_card_pay_record():
NfcCardPayRecord.user_id == g.user.id
]
if card_no:
filter_list.append(NfcCardPayRecord.card_no == card_no)
if pay_year:
filter_list.append(extract('year', NfcCardPayRecord.created_at) == pay_year)
if pay_month:
......
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