From db14fe70664ec38f190e6a9a64e7ba3809e45b50 Mon Sep 17 00:00:00 2001 From: WendyYang Date: Wed, 10 Jan 2024 19:26:11 +0800 Subject: [PATCH] =?UTF-8?q?=E5=A2=9E=E5=8A=A0=E7=BB=84=E7=BB=87=E6=A0=91?= =?UTF-8?q?=E6=8E=A5=E5=8F=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- hz-pm-api/src/main/java/com/hz/pm/api/user/manage/MhUnitManage.java | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/hz-pm-api/src/main/java/com/hz/pm/api/user/manage/MhUnitManage.java b/hz-pm-api/src/main/java/com/hz/pm/api/user/manage/MhUnitManage.java index 92982e4..0678e6a 100644 --- a/hz-pm-api/src/main/java/com/hz/pm/api/user/manage/MhUnitManage.java +++ b/hz-pm-api/src/main/java/com/hz/pm/api/user/manage/MhUnitManage.java @@ -3,7 +3,6 @@ package com.hz.pm.api.user.manage; import cn.hutool.core.bean.BeanUtil; import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper; import com.baomidou.mybatisplus.core.toolkit.Wrappers; -import com.hz.pm.api.common.model.constant.BizConst; import com.hz.pm.api.user.model.dto.MhUnitTreeDTO; import com.hz.pm.api.user.model.entity.MhUnit; import com.hz.pm.api.user.service.IMhUnitService; @@ -29,7 +28,7 @@ public class MhUnitManage { public List getMhUnitTree() { LambdaQueryWrapper query = Wrappers.lambdaQuery(MhUnit.class) - .select(MhUnit::getSort, MhUnit::getId, MhUnit::getParentId, MhUnit::getName); + .select(MhUnit::getId, MhUnit::getName, MhUnit::getParentId, MhUnit::getSort); List units = mhUnitService.list(query); List nodes = BeanUtil.copyToList(units, MhUnitTreeDTO.class); return TreeUtil.convertToTree(nodes, 0L);