From 050642ac35d7475516d6887b450d9016326813e4 Mon Sep 17 00:00:00 2001 From: liuyang Date: Wed, 25 Dec 2024 17:13:47 +0800 Subject: [PATCH] =?UTF-8?q?feat:[REQ-3282]=20=E5=8D=8F=E5=90=8C=E5=85=B3?= =?UTF-8?q?=E7=B3=BB=E5=A2=9E=E5=8A=A0=E9=BB=98=E8=AE=A4=E5=80=BC=E6=9F=A5?= =?UTF-8?q?=E8=AF=A2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../repository/impl/CooperateShipQueryRepositoryImpl.java | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/orgmanax-infra/src/main/java/cn/axzo/orgmanax/infra/dao/cooperateship/repository/impl/CooperateShipQueryRepositoryImpl.java b/orgmanax-infra/src/main/java/cn/axzo/orgmanax/infra/dao/cooperateship/repository/impl/CooperateShipQueryRepositoryImpl.java index cab9c05..843a903 100644 --- a/orgmanax-infra/src/main/java/cn/axzo/orgmanax/infra/dao/cooperateship/repository/impl/CooperateShipQueryRepositoryImpl.java +++ b/orgmanax-infra/src/main/java/cn/axzo/orgmanax/infra/dao/cooperateship/repository/impl/CooperateShipQueryRepositoryImpl.java @@ -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());