数据备份新增

This commit is contained in:
huguanghan 2025-01-13 17:35:33 +08:00
parent 160650c086
commit 6c50871947

View File

@ -1,5 +1,6 @@
package com.das.modules.data.service.impl; package com.das.modules.data.service.impl;
import cn.hutool.core.io.FileUtil;
import cn.hutool.core.util.ZipUtil; import cn.hutool.core.util.ZipUtil;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper; import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.das.modules.data.service.TDEngineService; import com.das.modules.data.service.TDEngineService;
@ -9,6 +10,7 @@ import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired; import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Value; import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Service; import org.springframework.stereotype.Service;
import org.springframework.util.CollectionUtils;
import org.springframework.util.StopWatch; import org.springframework.util.StopWatch;
import java.io.BufferedWriter; import java.io.BufferedWriter;
@ -72,11 +74,11 @@ public class ExportTdDataServiceImpl {
}catch (Exception e){ }catch (Exception e){
log.error("导出风机数据zip失败{}",e); log.error("导出风机数据zip失败{}",e);
} }
// finally { finally {
// if (!CollectionUtils.isEmpty(fileList)){ if (!CollectionUtils.isEmpty(fileList)){
// FileUtil.del(new File(fileList.get(0).getParent())); FileUtil.del(new File(fileList.get(0).getParent()));
// } }
// } }
} }