| | |
| | | package com.panzhihua.service_community.service.impl; |
| | | |
| | | import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper; |
| | | import com.panzhihua.common.constants.NeighborCircleConstants; |
| | | import org.springframework.stereotype.Service; |
| | | |
| | | import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; |
| | |
| | | } |
| | | } |
| | | |
| | | /** |
| | | * 编辑系统配置 |
| | | * @param communityId 社区id |
| | | * @param status 配置值 |
| | | * @return 编辑结果 |
| | | */ |
| | | @Override |
| | | public R editSysConfValue(Long communityId, Integer status){ |
| | | SysConfDO confDO = new SysConfDO(); |
| | | confDO.setCommunityId(communityId); |
| | | confDO.setCode(NeighborCircleConstants.NEIGHBOR_CIRCLE_AUTO_EXAMINE + communityId); |
| | | confDO.setValue(status+""); |
| | | if(this.baseMapper.updateById(confDO) > 0){ |
| | | return R.ok(confDO.getValue()); |
| | | }else{ |
| | | return R.fail(); |
| | | } |
| | | } |
| | | |
| | | } |