mybatis @Select注解中当参数为空则不添加该参数的判断

@Select("select * from "+DEPTTABLE+" ") List<Dept> selectAllDept(); 在mybatis中不用xml文件的形式,selectDept方法执行的就是上面的Sql语句,若是是遇到动态的语句就须要用到下面的形式。java 1.用Provider去实现SQL拼接: mybatis @SelectProvider(type=DeptDynaS
相关文章
相关标签/搜索