package com.hfkj.common.utils;

import java.util.ArrayList;
import java.util.List;

/**
 * @className: EasyExcelUtil
 * @author: HuRui
 * @date: 2023/3/10
 **/
public class EasyExcelUtil {

    /**
     * 生成头部
     * @param headList
     * @return
     */
    public static List<List<String>> generationHead(List<String> headList) {
        List<List<String>> list = new ArrayList<>();
        List<String> head;
        for (String headStr : headList) {
            head = new ArrayList<>();
            head.add(headStr);
            list.add(head);
        }
        return list;
    }
}
