动态sql中,where嵌套choose when

select * from table 
<where>
    <if test = "....">
        ....
    </if>

    <choose>
        <when test = "...."> 
            and ...
        </when>
    </choose>
</where>

如图

猜你喜欢

转载自blog.csdn.net/a1085578081/article/details/108063856