feat: 上传地材历史数据
This commit is contained in:
@@ -22,7 +22,7 @@ public class UploadFileTest {
|
||||
|
||||
@Test
|
||||
public void test() throws Exception {
|
||||
var filePath = "C:\\Users\\Administrator\\Desktop\\材料管理系统模版\\主材\\交通局.xlsx";
|
||||
var filePath = "C:\\Users\\Administrator\\Desktop\\材料管理系统模版\\历史数据\\地材-202405.xlsx";
|
||||
var file = new File(filePath);
|
||||
var multipartFile = this.mockMultipartFile(file, "网络价格.xlsx", "application/x-zip-compressed");
|
||||
var fileId = devFileService.uploadReturnId(DevFileEngineTypeEnum.LOCAL.getValue(), multipartFile);
|
||||
@@ -34,6 +34,8 @@ public class UploadFileTest {
|
||||
* 1810481654990442497 调查表.xlsx 501
|
||||
* 1810481965629005826 公路局.xlsx 40201
|
||||
* 1810482216079302658 交通局.xlsx 40101
|
||||
* 1810497092512178177 地材.xlsx 1101
|
||||
* 1810506191866003457 地材-202405.xlsx 1101
|
||||
*/
|
||||
|
||||
private MultipartFile mockMultipartFile(File file, String fileName, String contentType) {
|
||||
|
Reference in New Issue
Block a user