private String createSql(T bean){
    	StringBuilder sb = new StringBuilder();
    	String name = bean.getClass().getAnnotation(javax.persistence.Table.class).name();
    	//默认所有实体类主键为id
    	StringBuilder columns = new StringBuilder().append("id");
    	StringBuilder values = new StringBuilder().append("?");
    	StringBuilder updateValues = new StringBuilder();
    	Field[] fields = bean.getClass().getDeclaredFields();
    	int j=0;
    	for(int i=0; i<fields.length ;i++){
    	    BatchSaveIgnore batchSaveIgnore = fields[i].getAnnotation(BatchSaveIgnore.class);
    		if(fields[i].getModifiers() == 2&&!"id".equals(fields[i].getName()) && batchSaveIgnore == null){
    			if(j != 0){
    				updateValues.append(",");
    			}
    			columns.append(",").append(fields[i].getName());
    			values.append(",").append("?");
    			updateValues.append(fields[i].getName()).append("=").append("?");
    			j++;
    		}
    	}
    	sb.append("insert into ").append(name).append(" ( ").append(columns).append(" ) VALUES ( ").append(values);
    	sb.append(" ) on duplicate key update ").append(updateValues);
    	return sb.toString();
    }