jjzjj

customSqlSegment

全部标签

若依DataScopeAspect数据权限解析和ew.customSqlSegment源码解析

目录一、DataScopeAspect使用场景二、ew.customSqlSegment${ew.customSqlSegment}build:this.normal:queryWrapperwhere条件不为空的时候,才有normalget第二次进来add(),已经拼接完ew.customSqlSegment了,因为@DataPermission注解进来的动态拼接Mybatis-plus在自定义的sql语句中调用QueryWrapper的查询条件需求解决分析注意这里,如果没有where条件,不拼接customSqlSegment扩展end查看源码中:是根据所有的get方法,经过处理保存到:g