${ew.customSqlSegment} 将直接添加到前面 where
@Select(select * from a ${
ew.customSqlSegment}) List<a> getA(@Param(Constants.WRAPPER)QueryWrapper queryWrapper)
${ew.sqlSegment} 只有条件句
@Select(select * from a where ${
ew.sqlSegment}) List<a> getA(@Param(Constants.WRAPPER)QueryWrapper queryWrapper)
${ew.sqlSelect} 就是 queryWrapper.select(****) 您定义了需要查询的字段
@Select(select ${
ew.sqlSelect} from a ) List<a> getA(@Param(Constants.WRAPPER)QueryWrapper queryWrapper)