1.mapper中的接口这么写: IPage selectPosts(Page page, @Param(Constants.WRAPPER) QueryWrapper wrapper);
2.xml中, ${ew.customSqlSegment}就是querywrapper的条件
select * from user_collection ${ew.customSqlSegment}