From 21dbabc2e716a0263130ac23747f726d4d128e4a Mon Sep 17 00:00:00 2001 From: 101captain <237651143@qq.com> Date: 星期六, 28 五月 2022 18:43:35 +0800 Subject: [PATCH] bug修改 --- springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/java/com/panzhihua/service_community/service/impl/ComMngVillageServiceImpl.java | 8 +++++--- 1 files changed, 5 insertions(+), 3 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 7b1ed42..edd0d31 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 @@ -81,11 +81,13 @@ public R listComActVillage(ComMngVillageVO comMngVillageVO) { List<ComMngVillageDO> vos = Lists.newArrayList(); LambdaQueryWrapper<ComMngVillageDO> param = new QueryWrapper<ComMngVillageDO>().lambda(); - param.eq(ComMngVillageDO::getAlley, comMngVillageVO.getAlley()); + if(StringUtils.isNotEmpty(comMngVillageVO.getName())){ + param.like(ComMngVillageDO::getName, comMngVillageVO.getName()); + } param.eq(ComMngVillageDO::getCommunityId, comMngVillageVO.getCommunityId()); List<ComMngVillageDO> comMngVillageDOS = comActVillageDAO.selectList(param); - BeanUtils.copyProperties(vos, comMngVillageDOS); - return R.ok(vos); + BeanUtils.copyProperties(comMngVillageDOS, vos); + return R.ok(comMngVillageDOS); } @Override -- Gitblit v1.7.1