无线系统实时数据功能

This commit is contained in:
xy
2024-10-11 18:18:30 +08:00
parent 68e28880d0
commit cfd395a11c
28 changed files with 868 additions and 122 deletions

View File

@@ -35,7 +35,6 @@ import lombok.extern.slf4j.Slf4j;
import org.influxdb.InfluxDB;
import org.influxdb.dto.BatchPoints;
import org.influxdb.dto.Point;
import org.springframework.beans.BeanUtils;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

View File

@@ -131,12 +131,8 @@ public class FileServiceImpl implements IFileService {
String lsFileName = generalInfo.getBusinessTempPath() + File.separator + fileName.split(StrUtil.SLASH)[fileName.split(StrUtil.SLASH).length - 1];
File lsFile = new File(generalInfo.getBusinessTempPath());
//如果文件夹不存在则创建
if (!lsFile.exists()) {
if (!lsFile.isDirectory()) {
lsFile .mkdirs();
} else {
lsFile.createNewFile();
}
if (!lsFile.exists() && !lsFile.isDirectory()) {
lsFile .mkdirs();
}
//获取缓存的文件信息
Object fileInfo = redisUtil.getObjectByKey(AppRedisKey.RMQ_FILE_CONSUME_KEY.concat(fileName));