jiangqs
2023-06-06 0f9d03ee930d1c2dc62b34dd2c3522cda91f93cf
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
package com.ruoyi.shop.util;
 
import com.ruoyi.shop.domain.pojo.task.TaskFile;
 
import java.util.List;
 
/**
 * @author jqs34
 * @ClassName FileConvertUtils
 * @description: TODO
 * @date 2023年05月07日
 * @version: 1.0
 */
public class FileConvertUtils {
 
    public static String convertFileListToString(List<TaskFile> taskFileList) {
        if (taskFileList == null || taskFileList.isEmpty()) {
            return null;
        }
        StringBuilder sb = new StringBuilder();
        for (TaskFile taskFile : taskFileList) {
            sb.append(taskFile.getFileUrl()).append(",");
        }
        sb.deleteCharAt(sb.length() - 1);
        return sb.toString();
    }
}