切换mysql为达梦数据库-代码审查
1.systemboot模块
This commit is contained in:
@@ -109,7 +109,7 @@ public class SupvProblemServiceImpl extends ServiceImpl<SupvProblemMapper, SupvP
|
||||
LambdaQueryWrapper<SupvFile> fileLambdaQueryWrapper = new LambdaQueryWrapper<>();
|
||||
fileLambdaQueryWrapper.in(SupvFile::getBusiId, problemIds);
|
||||
List<SupvFile> supvFileList = supvFileMapper.selectList(fileLambdaQueryWrapper);
|
||||
supvFileList.forEach(item-> fileStorageUtil.downloadStream(item.getFileUrl()));
|
||||
supvFileList.forEach(item-> fileStorageUtil.getFileStream(item.getFileUrl()));
|
||||
supvFileMapper.delete(fileLambdaQueryWrapper);
|
||||
}
|
||||
return true;
|
||||
|
||||
@@ -863,7 +863,7 @@ public class ThsSuperviseServiceImpl extends ServiceImpl<ThsSuperviseMapper, Ths
|
||||
PmsMonitorParam pmsMonitorParam = new PmsMonitorParam();
|
||||
pmsMonitorParam.setMonitorIds(Collections.singletonList(runLog.getLineIndex()));
|
||||
HttpResult<List<PmsMonitorDTO>> monitorInfoListByCond = monitorClient.getMonitorInfoListByCond(pmsMonitorParam);
|
||||
InputStream inputStream = fileStorageUtil.downloadStream(entry.getValue());
|
||||
InputStream inputStream = fileStorageUtil.getFileStream(entry.getValue());
|
||||
// 对于每一个要被存放到压缩包的文件,都必须调用ZipOutputStream对象的putNextEntry()方法,确保压缩包里面文件不同名
|
||||
zos.putNextEntry(new ZipEntry(monitorInfoListByCond.getData().get(0).getName() + ticketTypeEnum.getMessage() + entry.getValue().substring(entry.getValue().lastIndexOf("."))));
|
||||
int bytesRead = 0;
|
||||
|
||||
Reference in New Issue
Block a user