| | |
| | | |
| | | import com.panzhihua.common.model.dtos.community.PageComMngVillageDTO; |
| | | import com.panzhihua.common.model.vos.R; |
| | | import com.panzhihua.common.model.vos.community.ComMngVillageServeExcelVO; |
| | | import com.panzhihua.common.model.vos.community.ComMngVillageVO; |
| | | import com.panzhihua.service_community.service.ComMngVillageService; |
| | | import lombok.extern.slf4j.Slf4j; |
| | | import org.springframework.transaction.annotation.Transactional; |
| | | import org.springframework.web.bind.annotation.PostMapping; |
| | | import org.springframework.web.bind.annotation.RequestBody; |
| | | import org.springframework.web.bind.annotation.RequestMapping; |
| | | import org.springframework.web.bind.annotation.RestController; |
| | | import org.springframework.web.bind.annotation.*; |
| | | |
| | | import javax.annotation.Resource; |
| | | import javax.validation.Valid; |
| | |
| | | return R.ok(r); |
| | | } |
| | | |
| | | |
| | | /** |
| | | * 社区后台导入实有房屋 |
| | | * @param list 数据 |
| | | * @param communityId 社区编号 |
| | | * @return |
| | | */ |
| | | @PostMapping("/village/import") |
| | | @Transactional(rollbackFor = Exception.class) |
| | | public R listSaveMngCarExcelVO(@RequestBody List<ComMngVillageServeExcelVO> list, @RequestParam(value = "communityId") Long communityId){ |
| | | return comMngVillageService.listSaveVillage(list,communityId); |
| | | } |
| | | |
| | | |
| | | /** |
| | | * 编辑实有房屋 |
| | | * @param villageId 动态id |
| | | * @return 删除结果 |
| | | */ |
| | | @PostMapping("editvillage/{villageId}") |
| | | @Transactional(rollbackFor = Exception.class) |
| | | public R editvillage(@PathVariable("villageId")Long villageId,@Valid @RequestBody ComMngVillageVO comMngVillageVO) { |
| | | return comMngVillageService.editVillage(villageId,comMngVillageVO); |
| | | } |
| | | |
| | | /** |
| | | * 小区详情 |
| | | * @param villageId 小区id |
| | | * @return 小区详情 |
| | | */ |
| | | @PostMapping("/village/getVillage") |
| | | public R getVillage(@RequestParam("villageId") Long villageId) { |
| | | return comMngVillageService.getVillage(villageId); |
| | | } |
| | | |
| | | |
| | | } |