fix: enm/task 水泥批号插入

This commit is contained in:
zty 2024-08-06 16:11:27 +08:00
parent 50cdbf9428
commit 4d498f99a3
1 changed files with 3 additions and 3 deletions

View File

@ -90,13 +90,13 @@ def db_ins_mplogx():
WHERE bill_date > %s
ORDER BY id, bill_date
"""
# date_obj = datetime.datetime.strptime(bill_date, '%Y-%m-%d %H:%M:%S')
cursor.execute(query, (bill_date,))
rows = cursor.fetchall() # 获取数据后保存至本地
if rows:
bill_date = rows[-1][0]
print(rows)
bill_date = rows[-1][-1]
db_insert_mplogx_batch(rows)
update_sysconfig({'enm1': {'bill_date': bill_date}})
update_sysconfig({'enm1': {'bill_date': str(bill_date)}})