feat:[REQ-3282] 协同关系增加默认值查询
This commit is contained in:
parent
864e8426e4
commit
050642ac35
@ -55,6 +55,11 @@ public class CooperateShipQueryRepositoryImpl implements CooperateShipQueryRepos
|
||||
return Collections.emptyList();
|
||||
}
|
||||
|
||||
// 为空默认为1
|
||||
if (CollUtil.isEmpty(req.getStatuses())) {
|
||||
wrapper.eq("status", 1);
|
||||
}
|
||||
|
||||
wrapper.eq("is_delete", 0);
|
||||
return cooperateShipDao.list(wrapper)
|
||||
.stream().map(e -> BeanUtil.toBean(e, SaasCooperateShip.class)).collect(Collectors.toList());
|
||||
|
||||
Loading…
Reference in New Issue
Block a user