def METHOD_NAME(workflow_id):
    """
    判断SQL上线是否无需审批，无需审批的提交会自动审核通过
    :param workflow_id:
    :return:
    """
    workflow = SqlWorkflow.objects.get(id=workflow_id)
    auto_review_tags = SysConfig().get("auto_review_tag", "").split(",")
    auto_review_db_type = SysConfig().get("auto_review_db_type", "").split(",")
    # TODO 这里也可以放到engine中实现，但是配置项可能会相对复杂
    if (
        workflow.instance.db_type in auto_review_db_type
        and workflow.instance.instance_tag.filter(
            tag_code__in=auto_review_tags
        ).exists()
    ):
        # 获取正则表达式
        auto_review_regex = SysConfig().get(
            "auto_review_regex", "^alter|^create|^drop|^truncate|^rename|^delete"
        )
        p = re.compile(auto_review_regex, re.I)
        # 判断是否匹配到需要手动审核的语句
        auto_review = True
        all_affected_rows = 0
        review_content = workflow.sqlworkflowcontent.review_content
        for review_row in json.loads(review_content):
            review_result = ReviewResult(**review_row)
            # 去除SQL注释 https://github.com/hhyo/Archery/issues/949
            sql = remove_comments(review_result.sql).replace("\n", "").replace("\r", "")
            # 正则匹配
            if p.match(sql):
                auto_review = False
                break
            # 影响行数加测, 总语句影响行数超过指定数量则需要人工审核
            all_affected_rows += int(review_result.affected_rows)
        if all_affected_rows > int(SysConfig().get("auto_review_max_update_rows", 50)):
            auto_review = False
    else:
        auto_review = False
    return auto_review