| | |
| | | import com.baomidou.mybatisplus.extension.plugins.pagination.Page; |
| | | import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; |
| | | import com.panzhihua.common.model.dtos.community.ComMngPopulationDTO; |
| | | import com.panzhihua.common.model.dtos.community.ComMngPopulationTagDTO; |
| | | import com.panzhihua.common.model.dtos.community.PageComActDTO; |
| | | import com.panzhihua.common.model.vos.R; |
| | | import com.panzhihua.common.model.vos.community.ComActActivityVO; |
| | |
| | | } |
| | | return R.ok(populationVOS); |
| | | } |
| | | |
| | | /** |
| | | * 根据id修改实有人口标签 |
| | | * @param populationTagDTO 请求参数 |
| | | * @return 修改结果 |
| | | */ |
| | | @Override |
| | | public R editTagPopulation(ComMngPopulationTagDTO populationTagDTO) { |
| | | ComMngPopulationDO comMngPopulationDO = populationDAO.selectById(populationTagDTO.getId()); |
| | | if (comMngPopulationDO == null) { |
| | | return R.fail("未查询到人口记录"); |
| | | } |
| | | BeanUtils.copyProperties(populationTagDTO,comMngPopulationDO); |
| | | |
| | | int nub = populationDAO.updateById(comMngPopulationDO); |
| | | if(nub < 1){ |
| | | return R.fail(); |
| | | } |
| | | return R.ok(); |
| | | } |
| | | } |