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