From 362ad90924f469cc17b79b0411f633515b84651f Mon Sep 17 00:00:00 2001
From: lidongdong <1459917685@qq.com>
Date: 星期三, 20 三月 2024 16:23:38 +0800
Subject: [PATCH] 修改党员双报到 列表积分不显示
---
springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/java/com/panzhihua/service_community/service/impl/ComPropertyPublicityServiceImpl.java | 38 +++-----------------------------------
1 files changed, 3 insertions(+), 35 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..0bd02ba 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;
@@ -62,7 +64,7 @@
} else {
//非物业用户查看是否拥有菜单权限
List<String> menuList = this.baseMapper.retrieveUserMenuList(userId);
- if (menuList.isEmpty() || !menuList.contains("物业宣传")) {
+ if (menuList.isEmpty() || !menuList.contains("物业宣传栏")) {
return R.fail("暂无权限");
}
}
@@ -107,11 +109,6 @@
ComPropertyPublicityDO comPropertyPublicityDO = this.baseMapper.selectById(comPropertyPublicityDTO.getId());
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());
@@ -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