| 
					
				 | 
			
			
				@@ -6,6 +6,7 @@ import cn.hutool.core.util.ObjectUtil; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 import com.ankaibei.workFlow.common.log.annotation.OperationLog; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 import com.ankaibei.workFlow.common.log.model.constant.SysOperationLogType; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 import com.ankaibei.workFlow.webadmin.ankaibei.entity.UserInfoEntity; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+import com.ankaibei.workFlow.webadmin.upms.dao.SysDeptMapper; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 import com.github.pagehelper.page.PageMethod; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 import com.ankaibei.workFlow.webadmin.upms.vo.*; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 import com.ankaibei.workFlow.webadmin.upms.dto.*; 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -36,7 +37,8 @@ import java.util.stream.Collectors; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 @RestController 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 @RequestMapping("/admin/upms/sysDept") 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 public class SysDeptController { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				- 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    @Autowired 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    private SysDeptMapper sysDeptMapper; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     @Resource 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     private SysDeptService sysDeptService; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     @Resource 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -202,7 +204,7 @@ public class SysDeptController { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				      * @return 应答结果对象,包含对象详情。 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				      */ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     @GetMapping("/view") 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-    public ResponseResult<SysDeptVo> view(@RequestParam Long deptId) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    public ResponseResult<SysDeptVo> view(@RequestParam String deptId) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         if (MyCommonUtil.existBlankArgument(deptId)) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             return ResponseResult.error(ErrorCodeEnum.ARGUMENT_NULL_EXIST); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         } 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -225,7 +227,7 @@ public class SysDeptController { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				      */ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     @PostMapping("/listNotInSysDeptPost") 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     public ResponseResult<MyPageData<SysPostVo>> listNotInSysDeptPost( 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-            @MyRequestBody Long deptId, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            @MyRequestBody String deptId, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             @MyRequestBody SysPostDto sysPostDtoFilter, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             @MyRequestBody MyOrderParam orderParam, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             @MyRequestBody MyPageParam pageParam) { 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -286,7 +288,7 @@ public class SysDeptController { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             return ResponseResult.error(ErrorCodeEnum.DATA_VALIDATED_FAILED, errorMessage); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         Set<String> postIdSet = sysDeptPostDtoList.stream().map(SysDeptPostDto::getPostId).collect(Collectors.toSet()); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        if (!sysDeptService.existId(Long.valueOf(deptId)) || !sysPostService.existUniqueKeyList("postId", postIdSet)) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        if (!sysDeptService.existId(deptId) || !sysPostService.existUniqueKeyList("postId", postIdSet)) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             return ResponseResult.error(ErrorCodeEnum.INVALID_RELATED_RECORD_ID); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         List<SysDeptPost> sysDeptPostList = MyModelUtil.copyCollectionTo(sysDeptPostDtoList, SysDeptPost.class); 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -384,7 +386,7 @@ public class SysDeptController { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				      * @return 应答结果对象,包含字典形式的数据集合。 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				      */ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     @PostMapping("/listDictByIds") 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-    public ResponseResult<List<Map<String, String>>> listDictByIds(@MyRequestBody List<Long> dictIds) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    public ResponseResult<List<Map<String, String>>> listDictByIds(@MyRequestBody List<String> dictIds) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         List<SysDept> resultList = sysDeptService.getInList(new HashSet<>(dictIds)); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         List<Map<String, Object>> mapList = BeanQuery.select("parentId as parentId", "deptId as id", "deptName as name").executeFrom(resultList); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         return ResponseResult.success(sysDeptService.lossOfAccuracy(mapList)); 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -398,7 +400,7 @@ public class SysDeptController { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				      * @return 按照字典的形式返回下级数据列表。 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				      */ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     @GetMapping("/listDictByParentId") 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-    public ResponseResult<List<Map<String, String>>> listDictByParentId(@RequestParam(required = false) Long parentId) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    public ResponseResult<List<Map<String, String>>> listDictByParentId(@RequestParam(required = false) String parentId) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         List<SysDept> resultList = sysDeptService.getListByParentId("parentId", parentId); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         List<Map<String, Object>> mapList = BeanQuery.select("parentId as parentId", "deptId as id", "deptName as name").executeFrom(resultList); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         return ResponseResult.success(sysDeptService.lossOfAccuracy(mapList)); 
			 |