use of org.sagacity.sqltoy.exception.BaseException in project sagacity-sqltoy by chenrenfei.
the class OrganInfoServiceImpl method add.
/*
* (non-Javadoc)
*
* @see sqltoy.showcase.system.service.OrganInfoService#add(sqltoy.showcase.
* system.vo.OrganInfoVO)
*/
@Override
@CacheEvict(value = "organIdNameCache", allEntries = true)
public void add(OrganInfoVO organInfoVO) throws BaseException {
try {
sqlToyLazyDao.save(organInfoVO);
logger.info("新增机构信息成功!");
} catch (Exception e) {
e.printStackTrace();
logger.error("新增机构信息失败!");
throw new BaseException("新增机构信息失败!", e);
}
}
Aggregations