|
@@ -361,7 +361,9 @@ public class UniversalController extends BaseRESTfulController {
|
|
|
}
|
|
}
|
|
|
byte[] stream1 = exportExcelFile(columnMaps, listMap);
|
|
byte[] stream1 = exportExcelFile(columnMaps, listMap);
|
|
|
SimpleDateFormat simpleDateFormat = new SimpleDateFormat("yyyy-MM-dd");
|
|
SimpleDateFormat simpleDateFormat = new SimpleDateFormat("yyyy-MM-dd");
|
|
|
- String path = "/data/file/"+ map.get("userName") + "-" + simpleDateFormat.format(new Date()) + "-" + map.get("exclename").toString() + ".xlsx";
|
|
|
|
|
|
|
+ Random random = new Random();
|
|
|
|
|
+ String path = "/data/file/"+ map.get("userName") + "-" + simpleDateFormat.format(new Date()) + "-"
|
|
|
|
|
+ + map.get("exclename").toString()+ Util.RandomCreate(8) + ".xlsx";
|
|
|
FileOutputStream outputStream1 = new FileOutputStream(new File(path));
|
|
FileOutputStream outputStream1 = new FileOutputStream(new File(path));
|
|
|
outputStream1.write(stream1);
|
|
outputStream1.write(stream1);
|
|
|
outputStream1.flush();
|
|
outputStream1.flush();
|