From 00a59b93c16b24e7be77c6f1ce4866c75a2e0431 Mon Sep 17 00:00:00 2001 From: 101captain <237651143@qq.com> Date: 星期二, 19 四月 2022 16:32:21 +0800 Subject: [PATCH] 花城E+防疫修改 --- springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/java/com/panzhihua/service_community/service/impl/ComPropertyPublicityServiceImpl.java | 36 ++---------------------------------- 1 files changed, 2 insertions(+), 34 deletions(-) diff --git a/springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/java/com/panzhihua/service_community/service/impl/ComPropertyPublicityServiceImpl.java b/springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/java/com/panzhihua/service_community/service/impl/ComPropertyPublicityServiceImpl.java index 0c764c1..c54dce1 100644 --- a/springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/java/com/panzhihua/service_community/service/impl/ComPropertyPublicityServiceImpl.java +++ b/springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/java/com/panzhihua/service_community/service/impl/ComPropertyPublicityServiceImpl.java @@ -9,6 +9,8 @@ import javax.annotation.Resource; +import com.panzhihua.common.model.vos.community.ComMngVillageVO; +import com.panzhihua.common.utlis.StringUtils; import org.springframework.beans.BeanUtils; import org.springframework.stereotype.Service; import org.springframework.util.ObjectUtils; @@ -108,11 +110,6 @@ if (isNull(comPropertyPublicityDO)) { return R.fail("信息不存在"); } - Long userId = comPropertyPublicityDTO.getUserId(); - ComProperty comProperty = comPropertyDao.selectOne(new QueryWrapper<ComProperty>().lambda().eq(ComProperty::getUserId, userId)); - if (isNull(comProperty) || !comProperty.getId().equals(comPropertyPublicityDO.getPropertyId())) { - return R.fail("暂无权限"); - } BeanUtils.copyProperties(comPropertyPublicityDTO, comPropertyPublicityDO); comPropertyPublicityDO.setUpdatedAt(new Date()); int result = this.baseMapper.updateById(comPropertyPublicityDO); @@ -160,35 +157,6 @@ propertyList = comPropertyDao.selectList(new QueryWrapper<ComProperty>().lambda().eq(ComProperty::getCommunityId, communityId)); } return R.ok(propertyList); - } - - /** - * 小区列表 - * @param propertyId - * @param communityId - * @return - */ - @Override - public R listVillage(Long propertyId, Long communityId) { - List<ComMngStructAreaVO> comMngStructAreaVOS = new ArrayList<>(); - List<ComMngStructAreaDO> comMngStructAreaDOS; - if (nonNull(propertyId)) { - ComProperty comProperty = comPropertyDao.selectById(propertyId); - comMngStructAreaDOS = comMngStructAreaDAO.selectList( - new QueryWrapper<ComMngStructAreaDO>().lambda().eq(ComMngStructAreaDO::getId, comProperty.getAreaId())); - } else { - comMngStructAreaDOS = comMngStructAreaDAO.selectList( - new QueryWrapper<ComMngStructAreaDO>().lambda().eq(ComMngStructAreaDO::getCommunityId, communityId)); - } - if (!ObjectUtils.isEmpty(comMngStructAreaDOS)) { - comMngStructAreaDOS.forEach(comMngStructAreaDO -> { - ComMngStructAreaVO comMngStructAreaVO = new ComMngStructAreaVO(); - BeanUtils.copyProperties(comMngStructAreaDO, comMngStructAreaVO); - comMngStructAreaVOS.add(comMngStructAreaVO); - }); - - } - return R.ok(comMngStructAreaVOS); } /** -- Gitblit v1.7.1