| | |
| | | import com.qianwen.smartman.modules.dnc.vo.SpaceRootNodeVO; |
| | | |
| | | @Service |
| | | /* loaded from: blade-api.jar:BOOT-INF/classes/org/springblade/modules/dnc/service/impl/DncFixedSpaceServiceImpl.class */ |
| | | public class DncFixedSpaceServiceImpl extends BaseServiceImpl<DncFixedSpaceMapper, DncFixedSpace> implements IDncFixedSpaceService { |
| | | @Autowired |
| | | @Lazy |
| | |
| | | private ITransferDirectoryFileService directoryFileService; |
| | | |
| | | |
| | | @Override // org.springblade.modules.dnc.service.IDncFixedSpaceService |
| | | @Override |
| | | public boolean initializeRootNode(String workstationId, String workstationName, String tdId) { |
| | | DncFixedSpace space = getOne(Wrappers.<DncFixedSpace>lambdaQuery().eq(DncFixedSpace::getName, workstationName) |
| | | .eq(DncFixedSpace::getParentId, workstationId).eq(DncFixedSpace::getTdId, tdId)); |
| | |
| | | return result; |
| | | } |
| | | |
| | | @Override // org.springblade.modules.dnc.service.IDncFixedSpaceService |
| | | @Override |
| | | public Boolean updateName(DncFixedSpaceUpVO dncFixedSpaceUpVO) { |
| | | return Boolean.valueOf(update(Wrappers.<DncFixedSpace>lambdaUpdate().eq(DncFixedSpace::getTdId, Long.parseLong(dncFixedSpaceUpVO.getDirectoryId())) |
| | | .eq(DncFixedSpace::getId, dncFixedSpaceUpVO.getId()) |
| | |
| | | }, dncFixedSpaceUpVO.getName())));*/ |
| | | } |
| | | |
| | | @Override // org.springblade.modules.dnc.service.IDncFixedSpaceService |
| | | @Override |
| | | @Transactional(rollbackFor = {Exception.class}) |
| | | public DncFixSpaceVO saveFixSpace(DncFixedSpaceAdVO dncFixedSpaceAdVO) { |
| | | DncFixSpaceVO dncFixSpaceVO = new DncFixSpaceVO(); |
| | |
| | | return dncFixSpaceVO.setId(dncFixedSpace.getId()).setAllPath(parentDncFixedSpace.getAllPath() + "/" + dncFixedSpace.getId()).setName(dncFixedSpaceAdVO.getName()).setParentId(Long.valueOf(Long.parseLong(dncFixedSpaceAdVO.getParentId()))).setTdId(Long.valueOf(Long.parseLong(dncFixedSpaceAdVO.getDirectoryId()))); |
| | | } |
| | | |
| | | @Override // org.springblade.modules.dnc.service.IDncFixedSpaceService |
| | | @Override |
| | | public boolean deleteFixSpace(String id) { |
| | | DncFixedSpace dncFixedSpace = (DncFixedSpace) getById(id); |
| | | if (dncFixedSpace == null) { |
| | |
| | | return removeById(Long.valueOf(Long.parseLong(id))); |
| | | } |
| | | |
| | | @Override // org.springblade.modules.dnc.service.IDncFixedSpaceService |
| | | @Override |
| | | public List<DncFixSpaceVO> getFixSpaceTree(String workstationId, String nodeId) { |
| | | DncWsRelationTd dncWsRelationTd = this.wsRelationTdService.getOne(Wrappers.<DncWsRelationTd>lambdaQuery().eq(DncWsRelationTd::getWorkstationId, workstationId)); |
| | | /* |
| | |
| | | return dncFixSpace; |
| | | }).collect(Collectors.toList()); |
| | | } |
| | | return new ArrayList(); |
| | | return new ArrayList<>(); |
| | | } |
| | | |
| | | @Override // org.springblade.modules.dnc.service.IDncFixedSpaceService |
| | | @Override |
| | | public SpaceRootNodeVO getRootNodeId(String workstationId) { |
| | | SpaceRootNodeVO spaceRootNodeVO = new SpaceRootNodeVO(); |
| | | DncWsRelationTd dncWsRelationTd = this.wsRelationTdService.getOne(Wrappers.<DncWsRelationTd>lambdaQuery().eq(DncWsRelationTd::getWorkstationId, workstationId)); |
| | |
| | | return spaceRootNodeVO; |
| | | } |
| | | |
| | | @Override // org.springblade.modules.dnc.service.IDncFixedSpaceService |
| | | @Override |
| | | public Boolean isRootSpace(Long fixId) { |
| | | DncFixedSpace dncFixedSpace = getOne(Wrappers.<DncFixedSpace>lambdaQuery() |
| | | .eq(DncFixedSpace::getId, fixId).eq(DncFixedSpace::getSpaceLocation, CommonConstant.ASSOCIATED_DIRECTORY)); |
| | |
| | | return Boolean.FALSE; |
| | | } |
| | | |
| | | @Override // org.springblade.modules.dnc.service.IDncFixedSpaceService |
| | | @Override |
| | | public Map<Long, String> getFixSpaceLocation(Long workstationId) { |
| | | Map<Long, String> map = new HashMap<>(16); |
| | | List<DncFixedSpace> list = list(); |
| | |
| | | return null; |
| | | } |
| | | |
| | | @Override // org.springblade.modules.dnc.service.IDncFixedSpaceService |
| | | @Override |
| | | public Map<Long, DncWsRelationTd> getWorkstationRelationDirectory() { |
| | | return this.wsRelationTdService.list().stream().collect(Collectors.toMap((v0) -> { |
| | | return v0.getWorkstationId(); |
| | | }, Function.identity())); |
| | | } |
| | | |
| | | @Override // org.springblade.modules.dnc.service.IDncFixedSpaceService |
| | | @Override |
| | | public List<DncFixSpaceTreeVO> getFixSpaceDirectLoadingTree(Long workstationId) { |
| | | DncWsRelationTd dncWsRelationTd = this.wsRelationTdService.getOne(Wrappers.<DncWsRelationTd>lambdaQuery().eq(DncWsRelationTd::getWorkstationId, workstationId)); |
| | | /* |
| | |
| | | return new ArrayList<>(); |
| | | } |
| | | |
| | | @Override // org.springblade.modules.dnc.service.IDncFixedSpaceService |
| | | @Override |
| | | public Map<Long, DncFixedSpace> getRootSpace() { |
| | | List<DncFixedSpace> list = list(Wrappers.<DncFixedSpace>lambdaQuery().eq(DncFixedSpace::getSpaceLocation,1)); |
| | | /* |