|
@@ -115,8 +115,8 @@ def start_tagging(id:str, instucde: Optional[str] = None):
|
|
|
logger.info(f"机构{instucde}在白名单中")
|
|
logger.info(f"机构{instucde}在白名单中")
|
|
|
is_marine = 1 if rows[0][0] == 'marine' else 0
|
|
is_marine = 1 if rows[0][0] == 'marine' else 0
|
|
|
dao.execute(
|
|
dao.execute(
|
|
|
- """UPDATE aitag_tag_log SET state = %s, is_marine = %s, ai_result_starttime = %s WHERE id = %s""",
|
|
|
|
|
- (TAGGING_STATE.BEGIN.value, is_marine, datetime.now(), id)
|
|
|
|
|
|
|
+ """UPDATE aitag_tag_log SET state = %s, is_marine = %s,org_code = %s, ai_result_starttime = %s WHERE id = %s""",
|
|
|
|
|
+ (TAGGING_STATE.BEGIN.value, is_marine, instucde, datetime.now(), id)
|
|
|
)
|
|
)
|
|
|
|
|
|
|
|
|
|
|