package com.saye.hrs.commons.excel;

import java.util.HashMap;

public class HashMapConversionImpl implements IConversionByExport {

	@Override
	public Object[] conversion(Object obj) {
		// TODO Auto-generated method stub
		return null;
	}

	@Override
	public Object[] conversion(Object obj, String[] sqlArray) {
		
		HashMap<Object, Object> hm = (HashMap<Object, Object>) obj;
		
		int len = sqlArray.length;
		Object[] result = new Object[len];
		for (int i = 0; i < len; i++) {
						
			result[i] = hm.get(sqlArray[i]);
		}
		return result;
	}

}
