|  |  |  | @ -8,6 +8,7 @@ import com.glxp.api.annotation.AuthRuleAnnotation; | 
			
		
	
		
			
				
					|  |  |  |  | import com.glxp.api.common.enums.ResultEnum; | 
			
		
	
		
			
				
					|  |  |  |  | import com.glxp.api.common.res.BaseResponse; | 
			
		
	
		
			
				
					|  |  |  |  | import com.glxp.api.common.util.ResultVOUtils; | 
			
		
	
		
			
				
					|  |  |  |  | import com.glxp.api.dto.DictDto; | 
			
		
	
		
			
				
					|  |  |  |  | import com.glxp.api.entity.auth.AuthAdmin; | 
			
		
	
		
			
				
					|  |  |  |  | import com.glxp.api.entity.auth.DeptEntity; | 
			
		
	
		
			
				
					|  |  |  |  | import com.glxp.api.entity.auth.DeptUserEntity; | 
			
		
	
	
		
			
				
					|  |  |  | @ -31,6 +32,7 @@ import org.springframework.web.bind.annotation.RestController; | 
			
		
	
		
			
				
					|  |  |  |  | import javax.annotation.Resource; | 
			
		
	
		
			
				
					|  |  |  |  | import javax.validation.Valid; | 
			
		
	
		
			
				
					|  |  |  |  | import java.util.*; | 
			
		
	
		
			
				
					|  |  |  |  | import java.util.stream.Collectors; | 
			
		
	
		
			
				
					|  |  |  |  | 
 | 
			
		
	
		
			
				
					|  |  |  |  | @RestController | 
			
		
	
		
			
				
					|  |  |  |  | public class DeptController { | 
			
		
	
	
		
			
				
					|  |  |  | @ -67,6 +69,19 @@ public class DeptController { | 
			
		
	
		
			
				
					|  |  |  |  |         return ResultVOUtils.success(invWarehouseEntities); | 
			
		
	
		
			
				
					|  |  |  |  |     } | 
			
		
	
		
			
				
					|  |  |  |  | 
 | 
			
		
	
		
			
				
					|  |  |  |  |     @AuthRuleAnnotation("") | 
			
		
	
		
			
				
					|  |  |  |  |     @GetMapping("spms/inv/warehouse/filterAllOptimize") | 
			
		
	
		
			
				
					|  |  |  |  |     public BaseResponse filterAllInvWarehouseOptimize(FilterInvWarehouseRequest filterInvWarehouseRequest) { | 
			
		
	
		
			
				
					|  |  |  |  |         filterInvWarehouseRequest.setPid(0L); | 
			
		
	
		
			
				
					|  |  |  |  |         filterInvWarehouseRequest.setStatus(1); | 
			
		
	
		
			
				
					|  |  |  |  |         List<DeptEntity> invWarehouseEntities = deptService.filterInvWarehouse(filterInvWarehouseRequest); | 
			
		
	
		
			
				
					|  |  |  |  |         List<DictDto> reList = invWarehouseEntities.stream().map(s-> { | 
			
		
	
		
			
				
					|  |  |  |  |             DictDto dictDto = new DictDto(s.getCode(),s.getName()); | 
			
		
	
		
			
				
					|  |  |  |  |             return dictDto; | 
			
		
	
		
			
				
					|  |  |  |  |         }).collect(Collectors.toList()); | 
			
		
	
		
			
				
					|  |  |  |  |         return ResultVOUtils.success(reList); | 
			
		
	
		
			
				
					|  |  |  |  |     } | 
			
		
	
		
			
				
					|  |  |  |  | 
 | 
			
		
	
		
			
				
					|  |  |  |  | 
 | 
			
		
	
		
			
				
					|  |  |  |  |     @AuthRuleAnnotation("") | 
			
		
	
		
			
				
					|  |  |  |  |     @GetMapping("spms/inv/warehouse/filterNext") | 
			
		
	
	
		
			
				
					|  |  |  | 
 |