| | |
| | | |
| | | import javax.annotation.Resource; |
| | | |
| | | import com.panzhihua.common.model.dtos.community.AddComActDynTypeDTO; |
| | | import com.panzhihua.common.model.vos.grid.EventGridCommunityAdminVO; |
| | | import org.springframework.validation.annotation.Validated; |
| | | import org.springframework.web.bind.annotation.*; |
| | |
| | | administratorsUserVO.setRoleId(999999999l); |
| | | administratorsUserVO.setUserId(this.getUserId()); |
| | | administratorsUserVO.setAppid(this.getAppId()); |
| | | addType(communityId,"资金公开"); |
| | | addType(communityId,"资产公开"); |
| | | addType(communityId,"资源公开"); |
| | | addType(communityId,"村集体经济组织项目"); |
| | | R r1 = userService.addUserBackstage(administratorsUserVO); |
| | | |
| | | if (!R.isOk(r1)) { |
| | | communityService.delectCommunity(communityId); |
| | | } |
| | |
| | | return r; |
| | | } |
| | | |
| | | |
| | | private void addType(Long communityId,String name) |
| | | { |
| | | AddComActDynTypeDTO comActDynTypeDTO=new AddComActDynTypeDTO(); |
| | | comActDynTypeDTO.setCommunityId(communityId); |
| | | comActDynTypeDTO.setName(name); |
| | | comActDynTypeDTO.setColor("#FF0000"); |
| | | comActDynTypeDTO.setCategory(2); |
| | | communityService.addDynTypeByAdmin(comActDynTypeDTO); |
| | | } |
| | | |
| | | @ApiOperation("编辑社区") |
| | | @PutMapping("community") |
| | | @OperLog(operModul = "社区管理", operType = 2) |