09041854:编写规则引擎要调用的接口

master
冷调 2024-09-04 18:54:31 +08:00
parent f2e65ffd1f
commit dee2093d34
2 changed files with 1 additions and 3 deletions

View File

@ -1,6 +1,5 @@
package com.muyu.source.controller; package com.muyu.source.controller;
import cn.hutool.core.collection.CollectionUtil;
import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper; import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.dtflys.forest.annotation.NotNull; import com.dtflys.forest.annotation.NotNull;
import com.dtflys.forest.springboot.annotation.ForestScannerRegister; import com.dtflys.forest.springboot.annotation.ForestScannerRegister;
@ -22,7 +21,6 @@ import org.springframework.web.bind.annotation.*;
import java.util.HashSet; import java.util.HashSet;
import java.util.List; import java.util.List;
import java.util.stream.Collectors;
/** /**
* @author Lenovo * @author Lenovo

View File

@ -35,7 +35,7 @@ public class StructureServiceImpl extends ServiceImpl<StructureMapper, Structure
@Override @Override
public List<Long> findTableIdByStructureId(Long parentId) { public List<Long> findTableIdByStructureId(Long parentId) {
List<Long> list = structureMapper.selectObjs(new LambdaQueryWrapper<>() {{ List<Long> list = structureMapper.selectObjs(new LambdaQueryWrapper<>() {{
eq(Structure::getId, parentId); eq(Structure::getTableId, parentId);
}}); }});
return list; return list;
} }