| 
					
				 | 
			
			
				@@ -22,9 +22,7 @@ import com.jeeplus.sys.domain.*; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 import com.jeeplus.sys.feign.IUserApi; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 import com.jeeplus.sys.mapper.OfficeMapper; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 import com.jeeplus.sys.mapper.UserMapper; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-import com.jeeplus.sys.service.dto.CertDTO; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-import com.jeeplus.sys.service.dto.OfficeDTO; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-import com.jeeplus.sys.service.dto.UserDTO; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+import com.jeeplus.sys.service.dto.*; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 import com.jeeplus.sys.service.mapstruct.CertWrapper; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 import com.jeeplus.sys.service.mapstruct.UserWrapper; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 import com.jeeplus.sys.utils.UserUtils; 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -252,7 +250,32 @@ public class UserService extends ServiceImpl <UserMapper, User> { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				      */ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     public IPage <UserDTO> findPage(Page <UserDTO> page, QueryWrapper queryWrapper) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         queryWrapper.eq ( "a.del_flag", CommonConstants.NOT_DELETED ); // 排除已经删除 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        return baseMapper.findList ( page, queryWrapper ); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        IPage<UserDTO> list = baseMapper.findList(page, queryWrapper); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        for (UserDTO record : list.getRecords()) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            if (CollectionUtil.isNotEmpty(record.getRoleDTOList())){ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                StringBuilder names = new StringBuilder(); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                for (RoleDTO roleDTO : record.getRoleDTOList()) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                    if (names.length() > 0) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                        names.append(",");  // 只有在已有内容的情况下才添加逗号 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                    } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                    names.append(roleDTO.getName()); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                record.setRole(names.toString()); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            if (CollectionUtil.isNotEmpty(record.getPostDTOList())){ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                StringBuilder names = new StringBuilder(); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                for (PostDTO postDTO : record.getPostDTOList()) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                    if (names.length() > 0) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                        names.append(",");  // 只有在已有内容的情况下才添加逗号 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                    } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                    names.append(postDTO.getName()); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                record.setPost(names.toString()); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        return list; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     } 
			 |