提交 a5756e6f authored 作者: 马晨俊's avatar 马晨俊

mcj:更新excel导入

上级 318026c5
...@@ -401,4 +401,10 @@ public class InspectController { ...@@ -401,4 +401,10 @@ public class InspectController {
return ResponseEntity.status(400).build(); return ResponseEntity.status(400).build();
} }
} }
@PostMapping("/importExcelToRapidAssessment")
private ResponseEntity uploadFileToInspect(MultipartFile file) throws IOException {
Reform reform = ExcelUtil.parseExcel(file);
ResponseEntity responseEntity = this.rapidAssessment(reform);
return responseEntity;
}
} }
...@@ -177,4 +177,5 @@ public class Reform { ...@@ -177,4 +177,5 @@ public class Reform {
*/ */
private Apply apply = new Apply(); private Apply apply = new Apply();
private String unitName;
} }
...@@ -4,7 +4,7 @@ ...@@ -4,7 +4,7 @@
#spring.profiles.active=prod #spring.profiles.active=prod
# \u670D\u52A1\u5668\u76F8\u5173\u914D\u7F6E # \u670D\u52A1\u5668\u76F8\u5173\u914D\u7F6E
server.port=8079 server.port=8078
spring.jpa.database-platform=org.hibernate.dialect.MySQL5InnoDBDialect spring.jpa.database-platform=org.hibernate.dialect.MySQL5InnoDBDialect
# \u65E5\u5FD7\u6587\u4EF6\u76F8\u5173\u914D\u7F6E # \u65E5\u5FD7\u6587\u4EF6\u76F8\u5173\u914D\u7F6E
# logging.level.org.hibernate.sql=debug # logging.level.org.hibernate.sql=debug
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论