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 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(); } }