|  |  | @ -1,7 +1,6 @@ | 
			
		
	
		
		
			
				
					
					|  |  |  | package com.glxp.api.admin.service.inventory.impl; |  |  |  | package com.glxp.api.admin.service.inventory.impl; | 
			
		
	
		
		
			
				
					
					|  |  |  | 
 |  |  |  | 
 | 
			
		
	
		
		
			
				
					
					|  |  |  | import cn.hutool.core.collection.CollUtil; |  |  |  | import cn.hutool.core.collection.CollUtil; | 
			
		
	
		
		
			
				
					
					|  |  |  | import cn.hutool.core.util.ReflectUtil; |  |  |  |  | 
			
		
	
		
		
			
				
					
					|  |  |  | import cn.hutool.core.util.StrUtil; |  |  |  | import cn.hutool.core.util.StrUtil; | 
			
		
	
		
		
			
				
					
					|  |  |  | import com.github.pagehelper.PageHelper; |  |  |  | import com.github.pagehelper.PageHelper; | 
			
		
	
		
		
			
				
					
					|  |  |  | import com.glxp.api.admin.dao.basic.BasicThirdSysDao; |  |  |  | import com.glxp.api.admin.dao.basic.BasicThirdSysDao; | 
			
		
	
	
		
		
			
				
					|  |  | @ -11,6 +10,7 @@ import com.glxp.api.admin.entity.inventory.InvSubWarehouseEntity; | 
			
		
	
		
		
			
				
					
					|  |  |  | import com.glxp.api.admin.req.basic.FilterBasicThirdSysRequest; |  |  |  | import com.glxp.api.admin.req.basic.FilterBasicThirdSysRequest; | 
			
		
	
		
		
			
				
					
					|  |  |  | import com.glxp.api.admin.req.inventory.FilterInvSubWarehouseRequest; |  |  |  | import com.glxp.api.admin.req.inventory.FilterInvSubWarehouseRequest; | 
			
		
	
		
		
			
				
					
					|  |  |  | import com.glxp.api.admin.req.inventory.FilterInvWarehouseRequest; |  |  |  | import com.glxp.api.admin.req.inventory.FilterInvWarehouseRequest; | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  | import com.glxp.api.admin.res.inventory.InvSubWarehouseResponse; | 
			
		
	
		
		
			
				
					
					|  |  |  | import com.glxp.api.admin.res.inventory.InvWarehouseThirdSysResponse; |  |  |  | import com.glxp.api.admin.res.inventory.InvWarehouseThirdSysResponse; | 
			
		
	
		
		
			
				
					
					|  |  |  | import com.glxp.api.admin.service.inventory.InvSubWarehouseService; |  |  |  | import com.glxp.api.admin.service.inventory.InvSubWarehouseService; | 
			
		
	
		
		
			
				
					
					|  |  |  | import org.springframework.stereotype.Service; |  |  |  | import org.springframework.stereotype.Service; | 
			
		
	
	
		
		
			
				
					|  |  | @ -177,4 +177,17 @@ public class InvSubWarehouseServiceImpl implements InvSubWarehouseService { | 
			
		
	
		
		
			
				
					
					|  |  |  |         return invSubWarehouseDao.updateThridId(id, null, sysId); |  |  |  |         return invSubWarehouseDao.updateThridId(id, null, sysId); | 
			
		
	
		
		
			
				
					
					|  |  |  | 
 |  |  |  | 
 | 
			
		
	
		
		
			
				
					
					|  |  |  |     } |  |  |  |     } | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  | 
 | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |     @Override | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |     public List<InvSubWarehouseResponse> filterInvSubWarehouseResponse(FilterInvSubWarehouseRequest filterInvSubWarehouseRequest) { | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |         if (filterInvSubWarehouseRequest == null) { | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |             return Collections.emptyList(); | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |         } | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |         if (filterInvSubWarehouseRequest.getPage() != null) { | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |             int offset = (filterInvSubWarehouseRequest.getPage() - 1) * filterInvSubWarehouseRequest.getLimit(); | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |             PageHelper.offsetPage(offset, filterInvSubWarehouseRequest.getLimit()); | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |         } | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |         List<InvSubWarehouseResponse> data = invSubWarehouseDao.filterInvSubWarehouseResponse(filterInvSubWarehouseRequest); | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |         return data; | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |     } | 
			
		
	
		
		
			
				
					
					|  |  |  | } |  |  |  | } | 
			
		
	
	
		
		
			
				
					|  |  | 
 |