Skip to content

app join查询当in () 主表的数据为空时,导致整个数据都返会空 #748

@gxmanito

Description

@gxmanito

Description

1722344497945
目前想到的方案是targetValueList为空时,默认添加一个值,最终SQL:select xxx from xxx in (0),只是这个方案会走一个无用查询,但是不至于导致最终结果都为空,不知道作者有没有更好的方案?
image

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions