| | |
| | | import java.nio.file.Files; |
| | | import java.nio.file.Path; |
| | | import java.nio.file.Paths; |
| | | import java.util.Optional; |
| | | |
| | | /** |
| | | * 机床文件 |
| | |
| | | public IPage<MachineFile> exceptionFilePageQuery(MachineFileExceptionQueryVO query) { |
| | | return baseMapper.exceptionFilePageQuery(Condition.getPage(query),query); |
| | | } |
| | | |
| | | /** |
| | | * 修改文件名成 |
| | | * @param id 文件id |
| | | * @param name 新名称 |
| | | */ |
| | | public void changeName(Long id, String name) { |
| | | |
| | | } |
| | | |
| | | public MachineFile getByNameAndMachineInDir(String name, String machineCode, String dirType) { |
| | | Optional<MachineFile> optFIle = this.lambdaQuery().eq(MachineFile::getName, name).eq(MachineFile::getMachineCode, machineCode) |
| | | .eq(MachineFile::getDirType, dirType).eq(MachineFile::getStatus, MachineFile.STATUS_NORMAL).oneOpt(); |
| | | return optFIle.orElse(null); |
| | | } |
| | | } |