Skip to content
This repository was archived by the owner on Oct 26, 2022. It is now read-only.
This repository was archived by the owner on Oct 26, 2022. It is now read-only.

get_child_statement时参数如何传 #12

@jinfeng202111

Description

@jinfeng202111

最后我获得的statment:
select * from test.nation where 1=1

        AND n_nationkey = ?
    -- if(n_nationkey != null and n_nationkey !='')

        AND n_regionkey = ?
    -- if(n_regionkey != null and n_regionkey !='')

但是我传入的参数是n_nationkey=None,
AND n_nationkey = ?这个条件不想要。请教如何传参数呢?
我的py代码:
statement = mybatis_mapper2sql.get_child_statement(mapper, "testIf",n_nationkey=None)
我的xml:
bfbd5a5469d20ae22afd766cdcb1eaa

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions