| 
						
						
							
								
							
						
						
					 | 
				
				 | 
				
					@ -115,12 +115,13 @@ public class PrVistRecordServiceImpl extends BaseServiceImpl<PrVistRecordDao, Pr | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					    public PrVistRecordDTO getNewestRecord(String staffId) { | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					        LambdaQueryWrapper<PrVistRecordEntity> wrapper = new LambdaQueryWrapper<>(); | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					        wrapper.eq(PrVistRecordEntity::getUserId, staffId); | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					        wrapper.orderByDesc(PrVistRecordEntity::getCreatedTime); | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					        wrapper.orderByDesc(PrVistRecordEntity::getUpdatedTime); | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					        wrapper.last("limit 1"); | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					        List<PrVistRecordEntity> list = baseDao.selectList(wrapper); | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					        if (CollectionUtils.isEmpty(list)) { | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					            return null; | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					        } | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					        return ConvertUtils.sourceToTarget(list, PrVistRecordDTO.class).get(0); | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					        return ConvertUtils.sourceToTarget(list.get(0), PrVistRecordDTO.class); | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					    } | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					
 | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					} |