mirror of
				https://github.com/dromara/RuoYi-Vue-Plus.git
				synced 2025-11-04 16:23:42 +08:00 
			
		
		
		
	fix 修复 升级 mp 版本导致的问题
This commit is contained in:
		@@ -180,12 +180,12 @@ public interface BaseMapperPlus<M, T, V> extends BaseMapper<T> {
 | 
			
		||||
     * 分页查询VO
 | 
			
		||||
     */
 | 
			
		||||
    default <C, P extends IPage<C>> P selectVoPage(IPage<T> page, Wrapper<T> wrapper, Class<C> voClass) {
 | 
			
		||||
        IPage<T> pageData = this.selectPage(page, wrapper);
 | 
			
		||||
        IPage<C> voPage = new Page<>(pageData.getCurrent(), pageData.getSize(), pageData.getTotal());
 | 
			
		||||
        if (CollUtil.isEmpty(pageData.getRecords())) {
 | 
			
		||||
        List<T> list = this.selectList(page, wrapper);
 | 
			
		||||
        IPage<C> voPage = new Page<>(page.getCurrent(), page.getSize(), page.getTotal());
 | 
			
		||||
        if (CollUtil.isEmpty(list)) {
 | 
			
		||||
            return (P) voPage;
 | 
			
		||||
        }
 | 
			
		||||
        voPage.setRecords(BeanCopyUtils.copyList(pageData.getRecords(), voClass));
 | 
			
		||||
        voPage.setRecords(BeanCopyUtils.copyList(list, voClass));
 | 
			
		||||
        return (P) voPage;
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
@@ -33,7 +33,7 @@ public interface TestDemoMapper extends BaseMapperPlus<TestDemoMapper, TestDemo,
 | 
			
		||||
        @DataColumn(key = "deptName", value = "dept_id"),
 | 
			
		||||
        @DataColumn(key = "userName", value = "user_id")
 | 
			
		||||
    })
 | 
			
		||||
    <P extends IPage<TestDemo>> P selectPage(P page, @Param(Constants.WRAPPER) Wrapper<TestDemo> queryWrapper);
 | 
			
		||||
    List<TestDemo> selectList(IPage<TestDemo> page, @Param(Constants.WRAPPER) Wrapper<TestDemo> queryWrapper);
 | 
			
		||||
 | 
			
		||||
    @Override
 | 
			
		||||
    @DataPermission({
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user