Mybatis--动态sql之choose、when、otherwise语句(只匹配其中的一个条件)1. Mybatis–动态sql之choose、when、otherwise语句
1. Mybatis–动态sql之choose、when、otherwise语句有时候,我们不想使用所有的条件,而只是想从多个条件中选择一个使用。针对这种情况,MyBatis 提供了 choose 元素,它有点像 Java 中的 switch 语句。数据库表 mybatis.blog1.1 Mapper接口BlogMapper.javaList<Blog> queryBlogChoose(Map map);1.2 Mapper.xml <selec