Search in sources :

Example 1 with BaseException

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);
    }
}
Also used : BaseException(org.sagacity.sqltoy.exception.BaseException) BaseException(org.sagacity.sqltoy.exception.BaseException) CacheEvict(org.springframework.cache.annotation.CacheEvict)

Aggregations

BaseException (org.sagacity.sqltoy.exception.BaseException)1 CacheEvict (org.springframework.cache.annotation.CacheEvict)1