From 6286bda7ef17f4f3df5a416f14747479db356fa6 Mon Sep 17 00:00:00 2001
From: 101captain <237651143@qq.com>
Date: 星期五, 17 六月 2022 15:38:57 +0800
Subject: [PATCH] bug修改

---
 springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/java/com/panzhihua/service_community/service/impl/ComMngVillageServiceImpl.java |    4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)

diff --git a/springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/java/com/panzhihua/service_community/service/impl/ComMngVillageServiceImpl.java b/springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/java/com/panzhihua/service_community/service/impl/ComMngVillageServiceImpl.java
index edd0d31..3e10cf6 100644
--- a/springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/java/com/panzhihua/service_community/service/impl/ComMngVillageServiceImpl.java
+++ b/springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/java/com/panzhihua/service_community/service/impl/ComMngVillageServiceImpl.java
@@ -84,7 +84,9 @@
         if(StringUtils.isNotEmpty(comMngVillageVO.getName())){
             param.like(ComMngVillageDO::getName, comMngVillageVO.getName());
         }
-        param.eq(ComMngVillageDO::getCommunityId, comMngVillageVO.getCommunityId());
+        if(comMngVillageVO.getCommunityId()!=0){
+            param.eq(ComMngVillageDO::getCommunityId, comMngVillageVO.getCommunityId());
+        }
         List<ComMngVillageDO> comMngVillageDOS = comActVillageDAO.selectList(param);
         BeanUtils.copyProperties(comMngVillageDOS, vos);
         return R.ok(comMngVillageDOS);

--
Gitblit v1.7.1