feat:[REQ-3282] 协同关系增加默认值查询

This commit is contained in:
liuyang 2024-12-25 17:13:47 +08:00
parent 864e8426e4
commit 050642ac35

View File

@ -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());