fix(watch): 修复手表设备绑定时部门归属逻辑错误

- 修改异步导入服务中手表设备的部门归属逻辑,以用户部门为准而非设备原有部门
- 为部门统计数据服务添加详细的JavaDoc注释说明业务逻辑
- 优化部门统计数据显示逻辑,支持一级、二级、三级部门的正确展示
- 移除手表绑定时的单位限制校验,允许跨单位绑定
- 在设备绑定时根据员工信息更新手表的单位组织编码
- 修复上传工具类中tar/apk文件上传的日志描述
- 调整Shiro配置中文件下载路径的安全策略
This commit is contained in:
2026-05-06 14:59:19 +08:00
parent 42c7d223c9
commit 86fa43c284
6 changed files with 130 additions and 18 deletions
@@ -128,9 +128,9 @@ public class MyUploadUtil {
bizPath = StrAttackFilter.filter(bizPath);
// .tar 文件固定走 MyUpload
if (fileName != null && fileName.endsWith(".tar")) {
log.info("上传文件为tar文件,使用MyUploadUtil上传");
log.info("上传文件为tar/apk文件,使用MyUploadUtil上传");
try {
return upload(file.getInputStream(), bizPath, fileName);
return upload(file.getInputStream(), bizPath, fileName,true);
} catch (Exception e) {
log.error("upload error {}", e.getMessage(), e);
return null;
@@ -185,8 +185,8 @@ public class ShiroConfig {
filterChainDefinitionMap.put("/version/getSysVersionDetailByPackageName", "anon");
filterChainDefinitionMap.put("/sys/api/notice/selectIosUpdate", "anon");
filterChainDefinitionMap.put("/sys/upload/down/**", "anon");
filterChainDefinitionMap.put("/sys/upload/show/**", "anon");
// filterChainDefinitionMap.put("/sys/upload/down/**", "anon");
// filterChainDefinitionMap.put("/sys/upload/show/**", "anon");
// 添加自己的过滤器并且取名为jwt
Map<String, Filter> filterMap = new HashMap<String, Filter>(1);