| | |
| | | /** |
| | | * 批量删除实有人口 |
| | | * |
| | | * @param Ids |
| | | * @param ids |
| | | * 实有人口id集合 |
| | | * @return 删除结果 |
| | | */ |
| | | @PostMapping("/common/data/population/delete") |
| | | R deletePopulations(@RequestBody List<Long> Ids); |
| | | R deletePopulations(@RequestBody List<Long> ids, Long communityId); |
| | | |
| | | /** |
| | | * 根据社区id查询所有实有人口 |
| | |
| | | |
| | | @ApiOperation(value = "批量删除实有人口") |
| | | @PostMapping("/delete") |
| | | public R deletePopulations(@RequestBody List<Long> Ids) { |
| | | return communityService.deletePopulations(Ids); |
| | | public R deletePopulations(@RequestBody List<Long> ids) { |
| | | return communityService.deletePopulations(ids,this.getCommunityId()); |
| | | } |
| | | |
| | | private List<List<String>> headDataFilling() { |
| | |
| | | /** |
| | | * 批量删除实有人口 |
| | | * |
| | | * @param Ids |
| | | * @param ids |
| | | * 删除id集合 |
| | | * @return 删除结果 |
| | | */ |
| | | @PostMapping("/population/delete") |
| | | public R deletePopulations(@RequestBody List<Long> Ids) { |
| | | return comMngPopulationService.deletePopulations(Ids); |
| | | public R deletePopulations(@RequestBody List<Long> ids, Long communityId) { |
| | | return comMngPopulationService.deletePopulations(ids,communityId); |
| | | } |
| | | |
| | | /** |
| | |
| | | |
| | | void updateAll(@Param("comMngPopulationCommunityTagsDOS") List<ComMngPopulationCommunityTagsDO> comMngPopulationCommunityTagsDOS); |
| | | |
| | | /** |
| | | * 删除实有人口与社区绑定关系 |
| | | * @param ids 实有人口id集合 |
| | | * @param communityId 社区id |
| | | */ |
| | | void deletePopulationRelation(@Param("ids") List<Long> ids,@Param("communityId") Long communityId); |
| | | |
| | | } |
| | |
| | | /** |
| | | * 批量删除实有人口 |
| | | * |
| | | * @param Ids |
| | | * @param ids |
| | | * 实有人口id集合 |
| | | * @return 删除结果 |
| | | */ |
| | | R deletePopulations(List<Long> Ids); |
| | | R deletePopulations(List<Long> ids, Long communityId); |
| | | |
| | | /** |
| | | * 根据社区id查询所有实有人口 |
| | |
| | | /** |
| | | * 批量删除实有人口 |
| | | * |
| | | * @param Ids |
| | | * @return |
| | | * @param ids 实有人口id集合 |
| | | * @return 删除结果 |
| | | */ |
| | | @Override |
| | | @Transactional(rollbackFor = Exception.class) |
| | | public R deletePopulations(List<Long> Ids) { |
| | | if (!Ids.isEmpty()) { |
| | | Ids.forEach(id -> { |
| | | // 清除用户房屋居住信息 |
| | | comMngPopulationHouseUserDAO.deletePopulationHouseByUserId(id); |
| | | }); |
| | | } |
| | | int delete = populationDAO.deleteBatchIds(Ids); |
| | | if (delete > 0) { |
| | | public R deletePopulations(List<Long> ids, Long communityId) { |
| | | comMngPopulationCommunityTagsDAO.deletePopulationRelation(ids,communityId); |
| | | return R.ok(); |
| | | } |
| | | return R.fail(); |
| | | } |
| | | |
| | | /** |
| | |
| | | return R.fail("id有误!"); |
| | | } |
| | | BeanUtils.copyProperties(comMngVillageVO, comMngVillageDO); |
| | | comMngVillageDO.setName(comMngVillageVO.getGroupAt()); |
| | | ComActDO comActDO = comActDAO.selectById(comMngVillageDO.getCommunityId()); |
| | | if (comActDO == null || comActDO.getStreetId() == null) { |
| | | return R.fail("社区没有绑定街道,请绑定后操作!"); |
| | |
| | | and cmv.alley like concat(#{pageBuildingListDto.keyWord},'%') |
| | | </if> |
| | | </where> |
| | | order by cmb.create_at desc |
| | | order by alley asc |
| | | </select> |
| | | |
| | | <select id="buildingListHeaderStatisticsAdmin" resultType="com.panzhihua.common.model.vos.community.building.admin.BuildingListHeaderStatisticsAdminVo"> |
| | |
| | | ; |
| | | </update> |
| | | |
| | | <delete id="deletePopulationRelation"> |
| | | delete from com_mng_population_community_tags where community_id = #{communityId} and population_id in |
| | | <foreach item="item" collection="ids" separator="," open="(" close=")" index=""> |
| | | #{item} |
| | | </foreach> |
| | | </delete> |
| | | |
| | | </mapper> |