| | |
| | | } |
| | | |
| | | @Override |
| | | public Areas getById(Integer id) { |
| | | return areasMapper.selectById(id); |
| | | } |
| | | |
| | | @Override |
| | | public Areas findById(Integer id) { |
| | | if(ALL_AREA_LIST!=null){ |
| | | for(Areas a : ALL_AREA_LIST){ |
| | |
| | | return areasMapper.selectOne(qw); |
| | | } |
| | | |
| | | @Override |
| | | public void updateStatus(Areas areas) { |
| | | if (areas == null || areas.getId() == null) { |
| | | throw new BusinessException(ResponseStatus.BAD_REQUEST); |
| | | } |
| | | Areas update = new Areas(); |
| | | update.setId(areas.getId()); |
| | | update.setStatus(areas.getStatus()); |
| | | areasMapper.updateById(update); |
| | | } |
| | | |
| | | } |