|
|
@ -21,6 +21,7 @@ import org.springframework.beans.factory.annotation.Value;
|
|
|
|
import org.springframework.stereotype.Service;
|
|
|
|
import org.springframework.stereotype.Service;
|
|
|
|
import org.springframework.web.multipart.MultipartFile;
|
|
|
|
import org.springframework.web.multipart.MultipartFile;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
import java.io.File;
|
|
|
|
import java.io.IOException;
|
|
|
|
import java.io.IOException;
|
|
|
|
import java.util.Date;
|
|
|
|
import java.util.Date;
|
|
|
|
import java.util.List;
|
|
|
|
import java.util.List;
|
|
|
@ -84,6 +85,10 @@ public class UploadServiceImpl implements UploadService {
|
|
|
|
if (CollectionUtil.isNotEmpty(list)) {
|
|
|
|
if (CollectionUtil.isNotEmpty(list)) {
|
|
|
|
for (TerminalUpload item : list) {
|
|
|
|
for (TerminalUpload item : list) {
|
|
|
|
item.setPath(path + item.getPath());
|
|
|
|
item.setPath(path + item.getPath());
|
|
|
|
|
|
|
|
File file = new File(item.getPath());
|
|
|
|
|
|
|
|
if (file.exists()) {
|
|
|
|
|
|
|
|
item.setFileSize(file.length());
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
TableDataInfo dataTable = PageUtils.getDataTable(list);
|
|
|
|
TableDataInfo dataTable = PageUtils.getDataTable(list);
|
|
|
|