readExcel
/**
* readExcel
*
* @param $titles:list:标题
* @param $rows:list:行数据
* @param $titlesMap:map:标题字段映射
*
* @return list
*
*/
#function readExcel ($titles, $rows, $titlesMap)
#set($list = $vs.util.newList())
#foreach ($row in $rows)
#set($item = $vs.util.newMap())
#set($datasMap = @list2mapByScript($row.datas, 'celIndex'))
#foreach ($itile in $titles)
#set($data = $datasMap.get($itile.celIndex))
$item.put($titlesMap.get($itile.data), $data.data)
#end
$list.add($item)
#end
return $list
#end