| | |
| | | import java.util.Date; |
| | | import java.util.List; |
| | | |
| | | import com.panzhihua.common.model.dtos.community.ComMngPopulationHouseUserVO; |
| | | import org.springframework.beans.BeanUtils; |
| | | import org.springframework.stereotype.Service; |
| | | import org.springframework.transaction.annotation.Transactional; |
| | | |
| | |
| | | new Page(villagePopulationDTO.getPageNum(), villagePopulationDTO.getPageSize()), villagePopulationDTO)); |
| | | } |
| | | |
| | | @Override |
| | | public R insert(ComMngPopulationHouseUserVO comMngPopulationHouseUserVO) { |
| | | ComMngPopulationHouseUserDO comMngPopulationHouseUserDO=new ComMngPopulationHouseUserDO(); |
| | | BeanUtils.copyProperties(comMngPopulationHouseUserVO,comMngPopulationHouseUserDO); |
| | | comMngPopulationHouseUserDO.setId(Snowflake.getId()); |
| | | this.baseMapper.insert(comMngPopulationHouseUserDO); |
| | | return R.ok(); |
| | | } |
| | | |
| | | @Override |
| | | public R updateAll(ComMngPopulationHouseUserVO comMngPopulationHouseUserVO) { |
| | | ComMngPopulationHouseUserDO comMngPopulationHouseUserDO=new ComMngPopulationHouseUserDO(); |
| | | BeanUtils.copyProperties(comMngPopulationHouseUserVO,comMngPopulationHouseUserDO); |
| | | this.baseMapper.updateById(comMngPopulationHouseUserDO); |
| | | return R.ok(); |
| | | } |
| | | |
| | | @Override |
| | | public R delete(ComMngPopulationHouseUserVO comMngPopulationHouseUserVO) { |
| | | return R.ok(this.baseMapper.deleteById(comMngPopulationHouseUserVO.getId())); |
| | | } |
| | | |
| | | @Override |
| | | public R detail(Long id) { |
| | | return R.ok(this.baseMapper.detail(id)); |
| | | } |
| | | |
| | | } |