| | |
| | | |
| | | import javax.annotation.Resource; |
| | | |
| | | import com.panzhihua.common.model.dtos.grid.AddComMngHousePopulationDTO; |
| | | import com.panzhihua.common.model.dtos.grid.DelComMngHousePopulationDTO; |
| | | import org.springframework.transaction.annotation.Transactional; |
| | | import org.springframework.validation.annotation.Validated; |
| | | import org.springframework.web.bind.annotation.*; |
| | |
| | | private ComMngPopulationHouseService comMngPopulationHouseService; |
| | | @Resource |
| | | private ComMngVillageService comMngVillageService; |
| | | @Resource |
| | | private ComMngPopulationHouseUserService comMngPopulationHouseUserService; |
| | | |
| | | /** |
| | | * 小程序用户车辆登记 |
| | |
| | | } |
| | | |
| | | /** |
| | | * 新增实有房屋信息 |
| | | * |
| | | * @param houseEditAdminDTO |
| | | * 请求参数 |
| | | * @return 编辑结果 |
| | | */ |
| | | @PostMapping("/population/house/insert") |
| | | public R insertHouse(@RequestBody ComMngPopulationHouseInsertAdminDTO houseEditAdminDTO) { |
| | | return comMngPopulationHouseService.insertHouse(houseEditAdminDTO); |
| | | } |
| | | |
| | | /** |
| | | * 根据房屋id列表删除房屋信息 |
| | | * |
| | | * @param Ids |
| | |
| | | public R villageStatistics(@RequestParam("communityId") Long communityId) { |
| | | return comMngVillageService.villageStatistics(communityId); |
| | | } |
| | | |
| | | /** |
| | | * 编辑实有房屋信息 |
| | | * |
| | | * @param comMngPopulationHouseUserVO |
| | | * 请求参数 |
| | | * @return 编辑结果 |
| | | */ |
| | | @PostMapping("/population/house/user/edit") |
| | | public R editHouseUser(@RequestBody ComMngPopulationHouseUserVO comMngPopulationHouseUserVO) { |
| | | return comMngPopulationHouseUserService.updateAll(comMngPopulationHouseUserVO); |
| | | } |
| | | |
| | | /** |
| | | * 新增实有房屋信息 |
| | | * |
| | | * @param comMngPopulationHouseUserVO |
| | | * 请求参数 |
| | | * @return 编辑结果 |
| | | */ |
| | | @PostMapping("/population/house/user/insert") |
| | | public R insertHouseUser(@RequestBody ComMngPopulationHouseUserVO comMngPopulationHouseUserVO) { |
| | | return comMngPopulationHouseUserService.insert(comMngPopulationHouseUserVO); |
| | | } |
| | | |
| | | /** |
| | | * 根据房屋id列表删除房屋信息 |
| | | * |
| | | * @param comMngPopulationHouseUserVO |
| | | * 请求参数 |
| | | * @return 删除结果 |
| | | */ |
| | | @PostMapping("/population/house/user/delete") |
| | | public R deleteHousesUser(@RequestBody ComMngPopulationHouseUserVO comMngPopulationHouseUserVO) { |
| | | return comMngPopulationHouseUserService.delete(comMngPopulationHouseUserVO); |
| | | } |
| | | |
| | | /** |
| | | * 根据id查询 |
| | | * |
| | | * @param id |
| | | * 请求参数 |
| | | * @return 删除结果 |
| | | */ |
| | | @GetMapping("/population/house/user/detail") |
| | | public R detailHousesUser(@RequestParam("id") Long id) { |
| | | return comMngPopulationHouseUserService.detail(id); |
| | | } |
| | | } |