bug修复

This commit is contained in:
2025-10-31 11:08:00 +08:00
parent f441015e1d
commit 367ddff4ec
4 changed files with 0 additions and 47 deletions

View File

@@ -78,15 +78,10 @@ public interface SystemMapper {
int addSystemLoadcaseNode(SystemNodeBean nodeBean);
// LoadcaseNodeBean getSystemLoadcaseNode(@Param("nodeName") String nodeName, @Param("parentNodeId") long parentNodeId,
// @Param("poolName") String poolName, @Param("discipline") String discipline);
List<SystemNodeBean> getSystemLoadcaseChildNode(@Param("poolName") String poolName, @Param("parentNodeCode") String parentNodeCode, @Param("company") String company);
int addSystemLoadcasePerformance(SystemLoadcasePerformanceBean performanceBean);
// int delSystemLoadcase(@Param("loadcaseName") String loadcaseName, @Param("discipline") String discipline, @Param("nodeId") long nodeId, @Param("poolName") String poolName);
int delSystemAllNodeLoadcase(@Param("poolName") String poolName, @Param("discipline") String discipline, @Param("nodeId") long nodeId);
int delSystemAllNodeLoadcaseVersion(@Param("poolName") String poolName, @Param("nodeCode") String nodeCode, @Param("version") String version);

View File

@@ -40,7 +40,6 @@ public class ProjectLoadcaseBean implements Serializable {
public String standard;
public String confidence;
public String description;
// public String loadcasePath;
public String createTime;
public String beginTime;
public String endTime;

View File

@@ -29,19 +29,6 @@ public class AuthFilter implements Filter {
@Override
public void doFilter(ServletRequest servletRequest, ServletResponse servletResponse, FilterChain filterChain) throws IOException, ServletException {
if (servletRequest instanceof HttpServletRequest httpServletRequest) {
// String userInfo = httpServletRequest.getHeader("user");
// if (StringUtils.isNotBlank(userInfo)) {
// try {
// User user = JSON.parseObject(userInfo, User.class);
// user.setName(URLDecoder.decode(user.getName(), StandardCharsets.UTF_8));
// ThreadLocalContext.getCommonHeader().setUserContext(new UserContext(user));
// ThreadLocalContext.getCommonHeader().setIdCode(user.getJobNumber());
// } catch (Exception e) {
// log.error("AuthFilter parseObject User error", e);
// }
// } else {
// log.error("请求头用户信息为空");
// }
String url = httpServletRequest.getRequestURI();
User user;
// 不校验用户

View File

@@ -86,10 +86,6 @@ public class DataServiceImpl implements DataService {
e.printStackTrace();
return Constant.DIR_CREATE_FAIL;
}
/*if(dir.mkdir())
return Constant.DIR_CREATE_SUCCESS;
else
return Constant.DIR_CREATE_FAIL;*/
return Constant.DIR_CREATE_SUCCESS;
}
@@ -494,30 +490,6 @@ public class DataServiceImpl implements DataService {
raf.seek(offset);
byte[] fileBytes = inputStream.readAllBytes();
raf.write(fileBytes);
//
// // 第二步调用RandomAccessFile的getChannel()方法,打开文件通道 FileChannel
// FileChannel fileChannel = raf.getChannel();
// // 第三步 获取当前是第几个分块,计算文件的最后偏移量
// long offset = (req.getChunk() - 1) * req.getSize();
// // 第四步:获取当前文件分块的字节数组,用于获取文件字节长度
// byte[] fileData = file.getBytes();
// // 第五步使用文件通道FileChannel类的 map方法创建直接字节缓冲器 MappedByteBuffer
// MappedByteBuffer buffer = mappers.get(savePath);
// if (buffer == null) {
// MappedByteBuffer mappedByteBuffer = fileChannel.map(FileChannel.MapMode.READ_WRITE, offset, fileData.length);
// // 第六步:将分块的字节数组放入到当前位置的缓冲区内
// mappedByteBuffer.put(fileData);
// // 第七步:释放缓冲区
// FilesUtil.freedMappedByteBuffer(mappedByteBuffer);
// mappers.put(savePath, mappedByteBuffer);
// } else {
// buffer = fileChannel.map(FileChannel.MapMode.READ_WRITE, offset, fileData.length);
// // 第六步:将分块的字节数组放入到当前位置的缓冲区内
// buffer.put(fileData);
// // 第七步:释放缓冲区
// FilesUtil.freedMappedByteBuffer(buffer);
// }
// fileChannel.close();
raf.close();
// 第八步:检查文件是否全部完成上传
boolean isComplete = Objects.equals(req.getChunk(), req.getChunkTotal());