第一步:构建QueryWrapper对象
第二步:在自定义xml查询 结合mp的Wrapper
注意添加注解@Param(Constants.WRAPPER) Wrapper
List<CartItemStockDTO> getCartItemStockByIds(@Param(Constants.WRAPPER) Wrapper ew);
第三步:通过${ew.customSqlSegment}可以获取mybatisPlus的条件构造器wrapper生成的条件语句
${ew.customSqlSegment}