import org.springframework.transaction.interceptor.TransactionAspectSupport;
public boolean add(Dept dept) {
		
		try{
            deptRepository.save(dept);
        }catch (Exception e){
            log.error("添加dept 失败!"+e.getMessage());
            TransactionAspectSupport.currentTransactionStatus().setRollbackOnly();
            return false;
        }
        return true;
	}