|  |  |  | @ -52,7 +52,16 @@ public class InvRemindSetServiceImpl implements InvRemindSetService { | 
			
		
	
		
			
				
					|  |  |  |  |         if (null != filterInvRemindSetRequest.getPage() && null != filterInvRemindSetRequest.getLimit()) { | 
			
		
	
		
			
				
					|  |  |  |  |             PageHelper.offsetPage((filterInvRemindSetRequest.getPage() - 1) * filterInvRemindSetRequest.getLimit(), filterInvRemindSetRequest.getLimit()); | 
			
		
	
		
			
				
					|  |  |  |  |         } | 
			
		
	
		
			
				
					|  |  |  |  |         return invRemindSetDao.filterList(filterInvRemindSetRequest); | 
			
		
	
		
			
				
					|  |  |  |  |         List<InvRemindSetResponse> list = invRemindSetDao.filterList(filterInvRemindSetRequest); | 
			
		
	
		
			
				
					|  |  |  |  |         if (CollUtil.isNotEmpty(list)) { | 
			
		
	
		
			
				
					|  |  |  |  |             list.forEach(invRemindSetResponse -> { | 
			
		
	
		
			
				
					|  |  |  |  |                 if (invRemindSetResponse.getIsDateBy() == 1 && null != invRemindSetResponse.getRecentDateTime()) { | 
			
		
	
		
			
				
					|  |  |  |  |                     //将近效期预警值由小时换算成天
 | 
			
		
	
		
			
				
					|  |  |  |  |                     invRemindSetResponse.setRecentDateTime(invRemindSetResponse.getRecentDateTime() / 24); | 
			
		
	
		
			
				
					|  |  |  |  |                 } | 
			
		
	
		
			
				
					|  |  |  |  |             }); | 
			
		
	
		
			
				
					|  |  |  |  |         } | 
			
		
	
		
			
				
					|  |  |  |  |         return list; | 
			
		
	
		
			
				
					|  |  |  |  |     } | 
			
		
	
		
			
				
					|  |  |  |  | 
 | 
			
		
	
		
			
				
					|  |  |  |  |     @Override | 
			
		
	
	
		
			
				
					|  |  |  | @ -115,6 +124,20 @@ public class InvRemindSetServiceImpl implements InvRemindSetService { | 
			
		
	
		
			
				
					|  |  |  |  |     public BaseResponse getInfoByInvId(Integer invId) { | 
			
		
	
		
			
				
					|  |  |  |  |         InvRemindSetResponse response = invRemindSetDao.selectInfoByInvId(invId); | 
			
		
	
		
			
				
					|  |  |  |  |         if (null != response) { | 
			
		
	
		
			
				
					|  |  |  |  |             //查询是否已有库存预警设置信息,若已存在预警设置,则回显旧数据
 | 
			
		
	
		
			
				
					|  |  |  |  |             InvRemindSetEntity invRemindSetEntity = invRemindSetDao.selectOne(new QueryWrapper<InvRemindSetEntity>() | 
			
		
	
		
			
				
					|  |  |  |  |                     .eq("deptCode", response.getDeptCode()) | 
			
		
	
		
			
				
					|  |  |  |  |                     .eq("invCode", response.getInvCode()) | 
			
		
	
		
			
				
					|  |  |  |  |                     .eq("relId", response.getRelId()) | 
			
		
	
		
			
				
					|  |  |  |  |             ); | 
			
		
	
		
			
				
					|  |  |  |  | 
 | 
			
		
	
		
			
				
					|  |  |  |  |             if (null != invRemindSetEntity) { | 
			
		
	
		
			
				
					|  |  |  |  |                 response.setLackStock(invRemindSetEntity.getLackStock()); | 
			
		
	
		
			
				
					|  |  |  |  |                 response.setLowStock(invRemindSetEntity.getLowStock()); | 
			
		
	
		
			
				
					|  |  |  |  |                 response.setOverStock(invRemindSetEntity.getOverStock()); | 
			
		
	
		
			
				
					|  |  |  |  |                 response.setExpireDate(invRemindSetEntity.getExpireDate()); | 
			
		
	
		
			
				
					|  |  |  |  |                 response.setRecentDate(invRemindSetEntity.getRecentDate()); | 
			
		
	
		
			
				
					|  |  |  |  |             } | 
			
		
	
		
			
				
					|  |  |  |  |             if (response.getIsDateBy() == 1 && null != response.getRecentDateTime()) { | 
			
		
	
		
			
				
					|  |  |  |  |                 //将近效期预警值由小时换算成天
 | 
			
		
	
		
			
				
					|  |  |  |  |                 response.setRecentDateTime(response.getRecentDateTime() / 24); | 
			
		
	
	
		
			
				
					|  |  |  | 
 |