| | |
| | | import com.panzhihua.common.model.dtos.grid.ComMngVillageListAppDTO; |
| | | import com.panzhihua.common.model.dtos.grid.PageComMngVillageBuildHouseAppDTO; |
| | | import com.panzhihua.common.model.dtos.grid.admin.ComMngPopulationListDTO; |
| | | import com.panzhihua.common.model.dtos.grid.admin.ComMngVillageListExportAdminDTO; |
| | | 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.common.model.vos.grid.ComMngVillageBuildingHouseVO; |
| | | import com.panzhihua.common.model.vos.grid.ComMngVillageBuildingVO; |
| | | import com.panzhihua.common.model.vos.grid.admin.ComMngVillageStatisticsVO; |
| | | import com.panzhihua.common.utlis.Snowflake; |
| | | import com.panzhihua.common.utlis.StringUtils; |
| | | import com.panzhihua.service_community.dao.ComActDAO; |
| | |
| | | return R.ok(villageBuildingList); |
| | | } |
| | | |
| | | @Override |
| | | public R delGridVillage(List<Long> villageIds){ |
| | | |
| | | if(villageIds.isEmpty()){ |
| | | return R.fail("请选择需要删除的小区"); |
| | | } |
| | | //查询需要删除的小区下面是否绑定的有房屋 |
| | | Integer count = this.baseMapper.getVillageHouseCount(villageIds); |
| | | if(count > 0){ |
| | | return R.fail("您选择的小区已被引用,无法删除"); |
| | | } |
| | | if(this.baseMapper.deleteBatchIds(villageIds) > 0){ |
| | | return R.ok(); |
| | | } |
| | | return R.fail("删除失败"); |
| | | } |
| | | |
| | | @Override |
| | | public R getGridVillageStatistics(){ |
| | | return R.ok(this.baseMapper.getGridVillageStatistics()); |
| | | } |
| | | |
| | | @Override |
| | | public R getGridVillageListExport(ComMngVillageListExportAdminDTO villageListAppDTO){ |
| | | return R.ok(this.baseMapper.getGridVillageLists(villageListAppDTO)); |
| | | } |
| | | |
| | | } |