jpz最新1.0

newone
jpz 2023-12-27 10:55:24 +08:00
parent b68b6af04c
commit ba362b66f7
2 changed files with 2 additions and 0 deletions

View File

@ -9,6 +9,7 @@ import net.srt.vo.MetadataVO;
import java.util.List; import java.util.List;
public interface MetadataService extends BaseService<MetadataEntity> { public interface MetadataService extends BaseService<MetadataEntity> {
List<TreeNodeVo> listByParentId(Long parentId); List<TreeNodeVo> listByParentId(Long parentId);
List<TreeNodeVo> listFloder(); List<TreeNodeVo> listFloder();

View File

@ -39,6 +39,7 @@ public class MetadataServiceImpl extends BaseServiceImpl<MetadataDao, MetadataEn
@Override @Override
public List<TreeNodeVo> listByParentId(Long parentId) { public List<TreeNodeVo> listByParentId(Long parentId) {
LambdaQueryWrapper<MetadataEntity> wrapper = new LambdaQueryWrapper<>(); LambdaQueryWrapper<MetadataEntity> wrapper = new LambdaQueryWrapper<>();
wrapper.eq(MetadataEntity::getParentId,parentId) wrapper.eq(MetadataEntity::getParentId,parentId)
.orderByAsc(MetadataEntity::getOrderNo); .orderByAsc(MetadataEntity::getOrderNo);