涂抹完成后添加涂抹日期

This commit is contained in:
2024-07-18 09:19:46 +08:00
parent 44490723dd
commit 33cf259212

View File

@@ -208,7 +208,9 @@ def main():
# 涂抹完成更新标识
session = MysqlSession()
update_flag = (update(ZxPhhd).where(ZxPhhd.pk_phhd == pk_phhd).values(paint_flag="8"))
update_flag = (update(ZxPhhd).where(ZxPhhd.pk_phhd == pk_phhd).values(
paint_flag="8",
paint_date=util.get_default_datetime()))
session.execute(update_flag)
session.commit()
session.close()