|
@@ -3,6 +3,7 @@ package com.boman.report.service.impl;
|
|
|
import com.alibaba.fastjson.JSON;
|
|
|
import com.alibaba.fastjson.JSONArray;
|
|
|
import com.alibaba.fastjson.JSONObject;
|
|
|
+import com.boman.common.core.utils.CollectUtils;
|
|
|
import com.boman.common.core.utils.StringUtils;
|
|
|
import com.boman.common.core.utils.obj.ObjectUtils;
|
|
|
import com.boman.common.core.utils.poi.ExcelUtil;
|
|
@@ -82,7 +83,8 @@ public class ImportServiceImpl implements IImportServcie {
|
|
|
personnel.setStatus("2");
|
|
|
|
|
|
JSONObject json = (JSONObject) JSONObject.toJSON(fileDto);
|
|
|
- personnel.setUploadFile(json.toJSONString());
|
|
|
+
|
|
|
+ personnel.setUploadFile(JSON.toJSONString(CollectUtils.newArrayList(json)));
|
|
|
personnelService.updateStatus(personnel);
|
|
|
return AjaxResult.success();
|
|
|
}
|
|
@@ -194,15 +196,4 @@ public class ImportServiceImpl implements IImportServcie {
|
|
|
private String getFileRealPath(ImportFileDto dto) {
|
|
|
return dto.getAbsolutePath();
|
|
|
}
|
|
|
-
|
|
|
- public static void main(String[] args) {
|
|
|
- JSONObject jsonObject = new JSONObject();
|
|
|
- jsonObject.put("name", "发文表.xlsx");
|
|
|
- jsonObject.put("name", "发文表.xlsx");
|
|
|
- jsonObject.put("status", null);
|
|
|
- jsonObject.put("uid", null);
|
|
|
- jsonObject.put("absolutePath", "c:\\file/2021/08/25/1629873633185.xlsx");
|
|
|
- jsonObject.put("originalName", "发文表.xlsx");
|
|
|
- System.out.println(jsonObject.toJSONString());
|
|
|
- }
|
|
|
}
|