| 
					
				 | 
			
			
				@@ -1,10 +1,20 @@ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 package com.ozs.web.controller.system; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+import java.net.UnknownHostException; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 import java.util.List; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+import java.util.stream.Collectors; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 import javax.servlet.http.HttpServletResponse; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+import javax.validation.constraints.NotEmpty; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 import com.baomidou.mybatisplus.core.metadata.IPage; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+import com.baomidou.mybatisplus.extension.plugins.pagination.Page; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+import com.ozs.base.domain.BasePolicy; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+import com.ozs.base.vo.BasePolicyPageReqVo; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+import com.ozs.common.constant.ModularConstans; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 import com.ozs.common.core.domain.R; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+import com.ozs.common.utils.file.FileUtils; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+import com.ozs.common.vo.EsMessage; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 import com.ozs.system.domain.vo.requestVo.SysMenuIdsRequestVo; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 import com.ozs.system.domain.vo.requestVo.SysRoleRequestVo; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 import com.ozs.system.domain.vo.requestVo.SysStatusRequestVo; 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -14,6 +24,7 @@ import org.apache.lucene.search.similarities.Distribution; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 import org.springframework.beans.BeanUtils; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 import org.springframework.beans.factory.annotation.Autowired; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 import org.springframework.security.access.prepost.PreAuthorize; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+import org.springframework.util.ObjectUtils; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 import org.springframework.validation.annotation.Validated; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 import org.springframework.web.bind.annotation.DeleteMapping; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 import org.springframework.web.bind.annotation.GetMapping; 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -67,14 +78,25 @@ public class SysRoleController extends BaseController 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     @Autowired 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     private ISysDeptService deptService; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+//    @PreAuthorize("@ss.hasPermi('system:role:list')") 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+//    @GetMapping("/list") 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+//    @ApiOperation("根据条件分页查询角色数据") 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+//    public TableDataInfo list(SysRole role) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+//    { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+//        startPage(); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+//        List<SysRole> list = roleService.selectRoleList(role); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+//        return getDataTable(list); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+//    } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     @PreAuthorize("@ss.hasPermi('system:role:list')") 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-    @GetMapping("/list") 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    @PostMapping("/list") 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     @ApiOperation("根据条件分页查询角色数据") 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-    public TableDataInfo list(SysRole role) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-    { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        startPage(); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        List<SysRole> list = roleService.selectRoleList(role); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        return getDataTable(list); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    public AjaxResult page(@NotEmpty(message = "数据为空") 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                           @RequestBody SysRoleRequestVo vo) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        LambdaQueryWrapper<SysRole> lw = new LambdaQueryWrapper<>(); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        IPage<SysRole> page = roleService.page(new Page<>(vo.getPageNum(), vo.getPageSize()), lw); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        return success(page); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     @Log(title = "角色管理", businessType = BusinessType.EXPORT) 
			 |