mybatis中 choose when 使用

<choose>
    <when test="group_type != '' and group_type== 3">
        GROUP BY k.goods_purchase_sku_id
    </when>
    <otherwise>
        GROUP BY k.goods_purchase_sku_id
    </otherwise>
</choose>

猜你喜欢

转载自blog.csdn.net/linlinlinfeng/article/details/85045073
今日推荐