|
@@ -69,12 +69,20 @@ public class ImportServiceImpl implements IImportServcie {
|
|
ImportExcelDto dto = new ImportExcelDto();
|
|
ImportExcelDto dto = new ImportExcelDto();
|
|
dto.setDataList(list);
|
|
dto.setDataList(list);
|
|
dto.setTableName(tableName);
|
|
dto.setTableName(tableName);
|
|
- remoteObjService.importCommonData(dto);
|
|
|
|
|
|
+
|
|
|
|
+ try {
|
|
|
|
+ remoteObjService.importCommonData(dto);
|
|
|
|
+ }catch (Exception e) {
|
|
|
|
+ e.printStackTrace();
|
|
|
|
+ }
|
|
|
|
+
|
|
// 上传成功后需要修改上报人的状态
|
|
// 上传成功后需要修改上报人的状态
|
|
StatisticReportPersonnel personnel = new StatisticReportPersonnel();
|
|
StatisticReportPersonnel personnel = new StatisticReportPersonnel();
|
|
personnel.setId(personnelId);
|
|
personnel.setId(personnelId);
|
|
personnel.setStatus("2");
|
|
personnel.setStatus("2");
|
|
- personnel.setUploadFile(fileDto.toString());
|
|
|
|
|
|
+
|
|
|
|
+ JSONObject json = (JSONObject) JSONObject.toJSON(fileDto);
|
|
|
|
+ personnel.setUploadFile(json.toJSONString());
|
|
personnelService.updateStatus(personnel);
|
|
personnelService.updateStatus(personnel);
|
|
return AjaxResult.success();
|
|
return AjaxResult.success();
|
|
}
|
|
}
|
|
@@ -183,8 +191,8 @@ public class ImportServiceImpl implements IImportServcie {
|
|
columns.add(columnMap.get(UPDATE_TIME));
|
|
columns.add(columnMap.get(UPDATE_TIME));
|
|
}
|
|
}
|
|
|
|
|
|
- private String getFileRealPath(ImportFileDto fileJson) {
|
|
|
|
- return "";
|
|
|
|
|
|
+ private String getFileRealPath(ImportFileDto dto) {
|
|
|
|
+ return dto.getAbsolutePath();
|
|
}
|
|
}
|
|
|
|
|
|
public static void main(String[] args) {
|
|
public static void main(String[] args) {
|