新中大添加人员与银行绑定,并且修改报销与银行的绑定逻辑,修改建管添加批次需求计划的招标计划查询接口

This commit is contained in:
2025-11-18 17:20:26 +08:00
parent b6e8031cef
commit 321fc67c4f
16 changed files with 272 additions and 91 deletions

View File

@ -45,8 +45,7 @@ public class PlusWebSocketInterceptor implements HandshakeInterceptor {
String headerCid = ServletUtils.getRequest().getHeader(LoginHelper.CLIENT_KEY);
String paramCid = ServletUtils.getParameter(LoginHelper.CLIENT_KEY);
String clientId = StpUtil.getExtra(LoginHelper.CLIENT_KEY).toString();
String projectIdStr = ServletUtils.getRequest().getParameter("projectId");
Long projectId = Long.parseLong(projectIdStr);
String projectIdStr = ServletUtils.getRequest().getParameter(LoginHelper.PROJECT_KEY);
if (!StringUtils.equalsAny(clientId, headerCid, paramCid)) {
// token 无效
throw NotLoginException.newInstance(StpUtil.getLoginType(),
@ -55,7 +54,10 @@ public class PlusWebSocketInterceptor implements HandshakeInterceptor {
}
attributes.put(LOGIN_USER_KEY, loginUser);
attributes.put(PROJECT_ID,projectId);
if (projectIdStr != null && !projectIdStr.isEmpty()) {
Long projectId = Long.parseLong(projectIdStr);
attributes.put(PROJECT_ID,projectId);
}
return true;
} catch (NotLoginException e) {
log.error("WebSocket 认证失败'{}',无法访问系统资源", e.getMessage());