添加识别中状态标识

This commit is contained in:
2024-07-07 10:28:52 +08:00
parent 0a4afd4d8d
commit 24590b230b

View File

@@ -432,6 +432,10 @@ def main():
session = MysqlSession() session = MysqlSession()
# 查询需要识别的案子 # 查询需要识别的案子
phhds = session.query(ZxPhhd.pk_phhd).filter(ZxPhhd.exsuccess_flag == '1').limit(PHHD_BATCH_SIZE).all() phhds = session.query(ZxPhhd.pk_phhd).filter(ZxPhhd.exsuccess_flag == '1').limit(PHHD_BATCH_SIZE).all()
# 将状态改为正在识别中
for phhd in phhds:
phhd.exsuccess_flag = 2
session.commit()
session.close() session.close()
if phhds: if phhds:
for phhd in phhds: for phhd in phhds: