bme框架常见问题

1查询条件可能为空:

       <[and t.operator_id=:operatorId]>    语句中没有where

 

              <@

                <[and ROLE_ID=:roleId]>

                <[and ROLE_NAME=:roleName]>   语句中有where

   @>    

2.类似于mybatis中t.level1_id in (1,2,3)的情况

       t.level1_id in (<%:firstLevelId%>)

3.分页查询

然后在dao层将pageCondition参数传入findList方法中,

在sql.xml文件中的sql语句中不需要用limit处理,bme框架会自动拼接

猜你喜欢

转载自blog.csdn.net/qq_41536539/article/details/91981595
今日推荐