@Override public ArticalTagDTO getById(Integer id) { if (id == null) { return null; } ArticalTag articalTag = new ArticalTag(); articalTag.setTagId(id); return tagDao.getTagByParam(articalTag); }
@Override public void saveOrUpdate(ArticalTag bean) { if (bean.getTagId() != null) { tagDao.update(bean); } else { tagDao.save(bean); } }