Skip to content

Commit 48e8529

Browse files
committed
merge build-error into dev
回退pom.xml 且 用户导入多部门分隔符变更 : -> / Created-by: kiki1373639299 Commit-by: kiki1373639299 Merged-by: Charles_7c Description: <!-- 非常感谢您的 PR!在提交之前,请务必确保您 PR 的代码经过了完整测试,并且通过了代码规范检查。 --> <!-- 在 [] 中输入 x 来勾选) --> ## PR 类型 <!-- 您的 PR 引入了哪种类型的变更? --> <!-- 只支持选择一种类型,如果有多种类型,可以在更新日志中增加 “类型” 列。 --> - [ ] 新 feature - [ ] Bug 修复 - [ ] 功能增强 - [ ] 文档变更 - [ ] 代码样式变更 - [ ] 重构 - [ ] 性能改进 - [ ] 单元测试 - [ ] CI/CD - [ ] 其他 ## PR 目的 <!-- 描述一下您的 PR 解决了什么问题。如果可以,请链接到相关 issues。 --> ## 解决方案 <!-- 详细描述您是如何解决的问题 --> ## PR 测试 <!-- 如果可以,请为您的 PR 添加或更新单元测试。 --> <!-- 请描述一下您是如何测试 PR 的。例如:创建/更新单元测试或添加相关的截图。 --> ## Changelog | 模块 | Changelog | Related issues | |-----|-----------| -------------- | | | | | <!-- 如果有多种类型的变更,可以在变更日志表中增加 “类型” 列,该列的值与上方 “PR 类型” 相同。 --> <!-- Related issues 格式为 Closes #<issue号>,或者 Fixes #<issue号>,或者 Resolves #<issue号>。 --> ## 其他信息 <!-- 请描述一下还有哪些注意事项。例如:如果引入了一个不向下兼容的变更,请描述其影响。 --> ## 提交前确认 - [X] PR 代码经过了完整测试,并且通过了代码规范检查 - [ ] 已经完整填写 Changelog,并链接到了相关 issues - [X] PR 代码将要提交到 dev 分支 See merge request: continew/continew-admin!14
2 parents a39f644 + ac2e16c commit 48e8529

File tree

3 files changed

+6
-14
lines changed

3 files changed

+6
-14
lines changed
0 Bytes
Binary file not shown.

continew-system/src/main/java/top/continew/admin/system/service/impl/UserServiceImpl.java

Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,6 @@
2424
import cn.hutool.core.lang.UUID;
2525
import cn.hutool.core.map.MapUtil;
2626
import cn.hutool.core.util.CharsetUtil;
27-
import java.util.HashMap;
28-
import java.util.Map;
2927
import cn.hutool.core.util.EnumUtil;
3028
import cn.hutool.core.util.ObjectUtil;
3129
import cn.hutool.core.util.StrUtil;
@@ -790,20 +788,20 @@ private Map<String, Long> buildMultiLevelDeptMapping(List<String> deptNames) {
790788
* <p>
791789
* 支持两种格式:
792790
* <ul>
793-
* <li>多级部门:公司A:研发部:前端组</li>
791+
* <li>多级部门:公司A/研发部/前端组</li>
794792
* <li>单级部门:研发部</li>
795793
* </ul>
796-
* 使用冒号(:)作为层级分隔符,会逐级查找对应的部门
794+
* 使用左斜杠/作为层级分隔符,会逐级查找对应的部门
797795
* </p>
798796
*
799797
* @param deptPath 部门路径
800798
* @return 部门信息,未找到时返回null
801799
*/
802800
private DeptDO findDeptByHierarchicalPath(String deptPath) {
803801
CheckUtils.throwIfBlank(deptPath, "部门路径不能为空");
804-
805-
// 根据是否包含冒号选择处理方式
806-
return deptPath.contains(":") ? findMultiLevelDept(deptPath) : findSingleLevelDept(deptPath.trim());
802+
return deptPath.contains(StringConstants.SLASH)
803+
? findMultiLevelDept(deptPath)
804+
: findSingleLevelDept(deptPath.trim());
807805
}
808806

809807
/**
@@ -816,7 +814,7 @@ private DeptDO findDeptByHierarchicalPath(String deptPath) {
816814
* @return 部门信息,未找到时返回null
817815
*/
818816
private DeptDO findMultiLevelDept(String deptPath) {
819-
String[] pathParts = deptPath.split(":");
817+
String[] pathParts = deptPath.split(StringConstants.SLASH);
820818
CheckUtils.throwIf(pathParts.length == 0, "部门路径格式错误:{}", deptPath);
821819

822820
// 从根部门开始逐级查找

pom.xml

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -114,12 +114,6 @@
114114
<groupId>org.apache.maven.plugins</groupId>
115115
<artifactId>maven-compiler-plugin</artifactId>
116116
<configuration>
117-
<annotationProcessorPaths>
118-
<path>
119-
<groupId>org.projectlombok</groupId>
120-
<artifactId>lombok</artifactId>
121-
</path>
122-
</annotationProcessorPaths>
123117
<compilerArgument>-parameters</compilerArgument>
124118
</configuration>
125119
</plugin>

0 commit comments

Comments
 (0)