goja-web/src/main/java/goja/mvc/csv/CsvUtil.java
public static void listToCSV(StringBuffer strOut, List<?> list) {
        if (null != list && !list.isEmpty()) { // 如果文本不为空则添加到csv字符串中
            for (Object aList : list) {
                createCol(strOut, aList);
                strOut.append(COMMA);
            }
            strOut = strOut.deleteCharAt(strOut.length() - 1);
            strOut.append(NEWLINE);
        }
    }
public static void listToCSV(StringBuffer strOut, List<?> list) {
        if (null != list && !list.isEmpty()) { // 如果文本不为空则添加到csv字符串中
            for (Object aList : list) {
                createCol(strOut, aList);
                strOut.append(COMMA);
            }
            strOut = strOut.deleteCharAt(strOut.length() - 1);
            strOut.append(NEWLINE);
        }
    }
把单纯的集合转化成csv字符串

@param strOut StringBuffer
@param list   数据