refactor: mapstruct 转换方法命名统一

This commit is contained in:
ray
2024-08-13 19:53:01 +08:00
parent bf9fbde585
commit c8876578ac
11 changed files with 18 additions and 19 deletions

View File

@@ -86,7 +86,7 @@ public class SysDeptServiceImpl extends ServiceImpl<SysDeptMapper, SysDept> impl
return deptList.stream()
.filter(dept -> dept.getParentId().equals(parentId))
.map(dept -> {
DeptVO deptVO = deptConverter.convertToVo(dept);
DeptVO deptVO = deptConverter.toVo(dept);
List<DeptVO> children = recurDeptList(dept.getId(), deptList);
deptVO.setChildren(children);
return deptVO;