From 871972f549897b9cf3d9bd9da8ebfc897dc9fb1a Mon Sep 17 00:00:00 2001 From: 101captain <237651143@qq.com> Date: 星期五, 17 六月 2022 17:57:53 +0800 Subject: [PATCH] Merge branch 'huacheng_test' into huacheng --- 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