| | |
| | | } |
| | | } |
| | | |
| | | /** |
| | | * 编辑系统配置 |
| | | * @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()); |