throw new ApplicationException("参数为空!");
if( ReceiveType.ALL.equals(t.getRecType()) )
t.setRecValue( ReceiveType.ALL.name() );
Subscription db = dao.read(t);
if( db == null ){
db = t;
t.setCreatedTime( Calendar.getInstance() );
}else{
db.setCatalog(t.getCatalog());
db.setPeriod(t.getPeriod());
db.setRecType(t.getRecType());
db.setRecValue(t.getRecValue());
db.setDescription(t.getDescription());
}
super.save(db);
}