fix (farm): 物种库维护
- 分页查询条件bug
This commit is contained in:
@@ -386,7 +386,7 @@ public class SpeciesLibraryServiceImpl implements SpeciesLibraryService {
|
||||
List<TwoDictDO> allDicts = twoDictMapper.selectList(wrapperX);
|
||||
|
||||
List<TwoDictDO> matchedDicts = null;
|
||||
if (StringUtils.isEmpty(req.getName() )) {
|
||||
if (!StringUtils.isEmpty(req.getName() )) {
|
||||
// 查找匹配的节点
|
||||
matchedDicts = allDicts.stream().filter(dict -> dict.getName().equals(req.getName())).collect(Collectors.toList());
|
||||
if (matchedDicts.isEmpty()) {
|
||||
|
||||
Reference in New Issue
Block a user