|  |  |  | @ -29,7 +29,6 @@ import org.springframework.transaction.annotation.Transactional; | 
			
		
	
		
			
				
					|  |  |  |  | import javax.annotation.Resource; | 
			
		
	
		
			
				
					|  |  |  |  | import javax.servlet.http.HttpServletResponse; | 
			
		
	
		
			
				
					|  |  |  |  | import java.math.BigDecimal; | 
			
		
	
		
			
				
					|  |  |  |  | import java.util.ArrayList; | 
			
		
	
		
			
				
					|  |  |  |  | import java.util.Date; | 
			
		
	
		
			
				
					|  |  |  |  | import java.util.List; | 
			
		
	
		
			
				
					|  |  |  |  | import java.util.Map; | 
			
		
	
	
		
			
				
					|  |  |  | @ -106,19 +105,7 @@ public class CarCheckRecordServiceImpl extends ServiceImpl<CarCheckRecordMapper, | 
			
		
	
		
			
				
					|  |  |  |  |             } | 
			
		
	
		
			
				
					|  |  |  |  |             // 拼装检查列表
 | 
			
		
	
		
			
				
					|  |  |  |  |             List<CarCheckItemEntity> itemList = carCheckItemService.getListByCarCheckRecordId(id); | 
			
		
	
		
			
				
					|  |  |  |  |             List<CarCheckItemEntity> checkItemList = new ArrayList<>(); | 
			
		
	
		
			
				
					|  |  |  |  |             itemList.forEach(item -> { | 
			
		
	
		
			
				
					|  |  |  |  |                 String[] contents = item.getCheckContent().split(",|,"); | 
			
		
	
		
			
				
					|  |  |  |  |                 String[] results = item.getCheckResult().split(",|,"); | 
			
		
	
		
			
				
					|  |  |  |  |                 for (int i = 0; i < contents.length; i++) { | 
			
		
	
		
			
				
					|  |  |  |  |                     CarCheckItemEntity carCheckItemEntity = new CarCheckItemEntity(); | 
			
		
	
		
			
				
					|  |  |  |  |                     carCheckItemEntity.setCheckItem(item.getCheckItem()); | 
			
		
	
		
			
				
					|  |  |  |  |                     carCheckItemEntity.setCheckContent(contents[i]); | 
			
		
	
		
			
				
					|  |  |  |  |                     carCheckItemEntity.setCheckResult(results[i]); | 
			
		
	
		
			
				
					|  |  |  |  |                     checkItemList.add(carCheckItemEntity); | 
			
		
	
		
			
				
					|  |  |  |  |                 } | 
			
		
	
		
			
				
					|  |  |  |  |             }); | 
			
		
	
		
			
				
					|  |  |  |  |             carCheckRecordDetailVO.setCheckItemList(checkItemList); | 
			
		
	
		
			
				
					|  |  |  |  |             carCheckRecordDetailVO.setCheckItemList(itemList); | 
			
		
	
		
			
				
					|  |  |  |  |             return carCheckRecordDetailVO; | 
			
		
	
		
			
				
					|  |  |  |  |         } | 
			
		
	
		
			
				
					|  |  |  |  |         return null; | 
			
		
	
	
		
			
				
					|  |  |  | @ -187,7 +174,6 @@ public class CarCheckRecordServiceImpl extends ServiceImpl<CarCheckRecordMapper, | 
			
		
	
		
			
				
					|  |  |  |  |         List<CarCheckItemEntity> itemList = carCheckRecordDTO.getItemList(); | 
			
		
	
		
			
				
					|  |  |  |  |         itemList.forEach(x -> { | 
			
		
	
		
			
				
					|  |  |  |  |             x.setCarCheckRecordId(carCheckRecordDTO.getId()); | 
			
		
	
		
			
				
					|  |  |  |  | //            x.setId(null);
 | 
			
		
	
		
			
				
					|  |  |  |  |         }); | 
			
		
	
		
			
				
					|  |  |  |  |         return carCheckItemService.saveBatch(itemList); | 
			
		
	
		
			
				
					|  |  |  |  |     } | 
			
		
	
	
		
			
				
					|  |  |  | 
 |