fix: 修复查询bug
This commit is contained in:
parent
0fc9e69198
commit
e46e4f942c
@ -14,6 +14,7 @@ import org.springframework.stereotype.Service;
|
||||
|
||||
import javax.annotation.Resource;
|
||||
import java.util.*;
|
||||
import java.util.Objects;
|
||||
import java.util.stream.Collectors;
|
||||
|
||||
/**
|
||||
@ -137,7 +138,12 @@ public class TxwGxzxShqkbServiceImpl extends ServiceImpl<TxwGxzxShqkbMapper, Txw
|
||||
public List<String> getQyuuidsByBq(GxxxReqVO reqVO) {
|
||||
List<TxwGxzxGxxxbDO> list = gxxxbMapper.getQyuuidsByFwlxjh(reqVO.getFwlxjh());
|
||||
if (GyUtils.isNull(list)) return null;
|
||||
return list.stream().map(TxwGxzxGxxxbDO::getQyuuid).distinct().collect(Collectors.toList());
|
||||
return list.stream()
|
||||
.filter(Objects::nonNull)
|
||||
.map(TxwGxzxGxxxbDO::getQyuuid)
|
||||
.filter(Objects::nonNull)
|
||||
.distinct()
|
||||
.collect(Collectors.toList());
|
||||
}
|
||||
|
||||
@Override
|
||||
|
||||
@ -14,6 +14,7 @@ import org.springframework.stereotype.Service;
|
||||
|
||||
import javax.annotation.Resource;
|
||||
import java.util.*;
|
||||
import java.util.Objects;
|
||||
import java.util.stream.Collectors;
|
||||
|
||||
/**
|
||||
@ -137,7 +138,12 @@ public class TxwGxzxShqkbServiceImpl extends ServiceImpl<TxwGxzxShqkbMapper, Txw
|
||||
public List<String> getQyuuidsByBq(GxxxReqVO reqVO) {
|
||||
List<TxwGxzxGxxxbDO> list = gxxxbMapper.getQyuuidsByFwlxjh(reqVO.getFwlxjh());
|
||||
if (GyUtils.isNull(list)) return null;
|
||||
return list.stream().map(TxwGxzxGxxxbDO::getQyuuid).distinct().collect(Collectors.toList());
|
||||
return list.stream()
|
||||
.filter(Objects::nonNull)
|
||||
.map(TxwGxzxGxxxbDO::getQyuuid)
|
||||
.filter(Objects::nonNull)
|
||||
.distinct()
|
||||
.collect(Collectors.toList());
|
||||
}
|
||||
|
||||
@Override
|
||||
|
||||
Loading…
Reference in New Issue
Block a user