public void saveRecord(EntityBean e) throws Exception {
		Query query = new Query();
		Criteria criteria = new Criteria("id");
		criteria.is(e.getId());
		query.addCriteria(criteria);
		Update update=new Update();
		update.set("id",e.getId()).set("viewUrl", e.getViewUrl());
		if(e.getFileId()!=null)
			update.set("fileId", e.getFileId());
		if(e.getFilePath()!=null)
			update.set("filePath", e.getFilePath());
		if(e.getStatus()!=null)
			update.set("status", e.getStatus());
		if(e.getMsg()!=null)
			update.set("msg", e.getMsg());
		
		FindAndModifyOptions fo = new FindAndModifyOptions();
		fo.upsert(true);
		this.b.getMongo().findAndModify(query, update, fo, EntityBean.class, "irecord");
	}