无线系统实时数据功能
This commit is contained in:
@@ -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;
|
||||
|
||||
|
||||
@@ -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));
|
||||
|
||||
Reference in New Issue
Block a user