|  |  | 
 |  |  | import com.ruoyi.basic.service.StructureTestObjectService; | 
 |  |  | import com.ruoyi.common.exception.base.BaseException; | 
 |  |  | import lombok.AllArgsConstructor; | 
 |  |  | import lombok.extern.slf4j.Slf4j; | 
 |  |  | import org.springframework.stereotype.Service; | 
 |  |  | import org.springframework.transaction.annotation.Transactional; | 
 |  |  |  | 
 |  |  | 
 |  |  |  */ | 
 |  |  | @Service | 
 |  |  | @AllArgsConstructor | 
 |  |  | @Slf4j | 
 |  |  | public class StandardTreeServiceImpl extends ServiceImpl<StandardTreeMapper, StandardTree> | 
 |  |  |         implements StandardTreeService { | 
 |  |  |  | 
 |  |  | 
 |  |  |     @Override | 
 |  |  |     public List<FactoryDto> selectStandardTreeList() { | 
 |  |  |         List<FactoryDto> factoryDtos = standardTreeMapper.selectStandardTreeList(); | 
 |  |  |         log.info("FactoryDtoOne:{}", factoryDtos); | 
 |  |  |         for (FactoryDto factoryDto : factoryDtos) { | 
 |  |  |             for (LaboratoryDto laboratoryDto : factoryDto.getChildren()) { | 
 |  |  |                 laboratoryDto.getChildren().sort((o1, o2) -> (o1.getSort() == null ? 0 : o1.getSort()) | 
 |  |  | 
 |  |  |                 } | 
 |  |  |             } | 
 |  |  |         } | 
 |  |  |         log.info("FactoryDtoTwo:{}", factoryDtos); | 
 |  |  |         return factoryDtos; | 
 |  |  |     } | 
 |  |  |  |