Commit 77d14e06 by 周杭

调整代码顺序

1 parent 6a522050
...@@ -436,13 +436,14 @@ def handle_process(jsonData): ...@@ -436,13 +436,14 @@ def handle_process(jsonData):
log.info(delete_sql2) log.info(delete_sql2)
cursor.execute(delete_sql2) cursor.execute(delete_sql2)
connection.commit() connection.commit()
ocr_vin(path, data, connection, cursor, original_image)
# 删除数据库里的sn旧数据 # 删除数据库里的sn旧数据
delete_sql1 = "DELETE FROM sys_order_ocr_sn_result WHERE order_id = {}".format(order_id) delete_sql1 = "DELETE FROM sys_order_ocr_sn_result WHERE order_id = {}".format(order_id)
log.info(delete_sql1) log.info(delete_sql1)
cursor.execute(delete_sql1) cursor.execute(delete_sql1)
connection.commit() connection.commit()
#识别vin
ocr_vin(path, data, connection, cursor, original_image)
#识别sn
ocr_sn(dst, path, data, connection, cursor, original_image) ocr_sn(dst, path, data, connection, cursor, original_image)
if file_type == 1: if file_type == 1:
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!