From 08f1b1f1804a8bd833d42f257908d80e88387b55 Mon Sep 17 00:00:00 2001
From: mitao <2763622819@qq.com>
Date: 星期五, 14 三月 2025 11:27:47 +0800
Subject: [PATCH] 3.5增加登录验证、修改密码、人员列表调整
---
springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/java/com/panzhihua/service_community/service/impl/SysConfServiceImpl.java | 50 ++++++++++++++++++++++++++++++++++++++++++--------
1 files changed, 42 insertions(+), 8 deletions(-)
diff --git a/springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/java/com/panzhihua/service_community/service/impl/SysConfServiceImpl.java b/springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/java/com/panzhihua/service_community/service/impl/SysConfServiceImpl.java
index b8b4395..39f8f05 100644
--- a/springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/java/com/panzhihua/service_community/service/impl/SysConfServiceImpl.java
+++ b/springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/java/com/panzhihua/service_community/service/impl/SysConfServiceImpl.java
@@ -2,6 +2,7 @@
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.panzhihua.common.constants.NeighborCircleConstants;
+import com.panzhihua.common.model.vos.community.CommunityPublicityVO;
import org.springframework.stereotype.Service;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
@@ -55,17 +56,17 @@
}
}
- /**
- * 编辑系统配置
- * @param communityId 社区id
- * @param status 配置值
- * @return 编辑结果
- */
@Override
public R editSysConfValue(Long communityId, Integer status){
- SysConfDO confDO = new SysConfDO();
+ String key = NeighborCircleConstants.NEIGHBOR_CIRCLE_AUTO_EXAMINE;
+
+ SysConfDO confDO = this.baseMapper.selectOne(new QueryWrapper<SysConfDO>().lambda().eq(SysConfDO::getCommunityId,communityId)
+ .eq(SysConfDO::getCode,key + communityId));
+ if(confDO == null){
+ return R.fail("未查询到该系统配置");
+ }
confDO.setCommunityId(communityId);
- confDO.setCode(NeighborCircleConstants.NEIGHBOR_CIRCLE_AUTO_EXAMINE + communityId);
+ confDO.setCode(key + communityId);
confDO.setValue(status+"");
if(this.baseMapper.updateById(confDO) > 0){
return R.ok(confDO.getValue());
@@ -74,4 +75,37 @@
}
}
+
+
+
+ @Override
+ public CommunityPublicityVO getData(String communityId) {
+ return baseMapper.getData(communityId);
+ }
+
+ @Override
+ public int addDate(CommunityPublicityVO item)
+ {
+ CommunityPublicityVO vo=baseMapper.getData(item.getCommunityId());
+ if(vo==null)
+ {
+ return baseMapper.addDate(item);
+ }
+ else
+ {
+ return baseMapper.editDate(item);
+ }
+ }
+
+ @Override
+ public int editDate(CommunityPublicityVO item) {
+ return baseMapper.editDate(item);
+ }
+
+ @Override
+ public int deleteData(String communityId) {
+ return baseMapper.deleteData(communityId);
+ }
+
+
}
--
Gitblit v1.7.1