|
@@ -1,5 +1,6 @@
|
|
package com.diagbot.facade;
|
|
package com.diagbot.facade;
|
|
|
|
|
|
|
|
+import cn.hutool.core.io.resource.ClassPathResource;
|
|
import com.alibaba.fastjson.JSON;
|
|
import com.alibaba.fastjson.JSON;
|
|
import com.alibaba.fastjson.JSONObject;
|
|
import com.alibaba.fastjson.JSONObject;
|
|
import com.alibaba.fastjson.TypeReference;
|
|
import com.alibaba.fastjson.TypeReference;
|
|
@@ -2607,7 +2608,7 @@ public class BehospitalInfoFacade extends BehospitalInfoServiceImpl {
|
|
* @throws ParseException
|
|
* @throws ParseException
|
|
*/
|
|
*/
|
|
public List<operationLog> getOperationLog(String behospitalCode){
|
|
public List<operationLog> getOperationLog(String behospitalCode){
|
|
- String fullFileName = "src\\main\\resources\\操作日志.xlsx";
|
|
|
|
|
|
+/* String fullFileName = "src\\main\\resources\\操作日志.xlsx";
|
|
List<operationLog> list = new ArrayList<>();
|
|
List<operationLog> list = new ArrayList<>();
|
|
try {
|
|
try {
|
|
InputStream is = new FileInputStream(fullFileName);
|
|
InputStream is = new FileInputStream(fullFileName);
|
|
@@ -2616,12 +2617,19 @@ public class BehospitalInfoFacade extends BehospitalInfoServiceImpl {
|
|
e.printStackTrace();
|
|
e.printStackTrace();
|
|
}
|
|
}
|
|
System.out.println("size==>" + list.size());
|
|
System.out.println("size==>" + list.size());
|
|
- return list;
|
|
|
|
|
|
+ return list;*/
|
|
// 获取resource目录下的 41473.xlsx 文件:
|
|
// 获取resource目录下的 41473.xlsx 文件:
|
|
-// String resource = "41473.xlsx";
|
|
|
|
-// ClassPathResource classPathResource = new ClassPathResource(resource);
|
|
|
|
-// List<Order> list = read2007Xlsx(classPathResource.getInputStream());
|
|
|
|
-// System.out.println("size==>" + list.size());
|
|
|
|
|
|
+ String resource = "操作日志.xlsx";
|
|
|
|
+ ClassPathResource classPathResource = new ClassPathResource(resource);
|
|
|
|
+ List<operationLog> list = null;
|
|
|
|
+ try {
|
|
|
|
+ list = read2007Xlsx(classPathResource.getStream());
|
|
|
|
+ } catch (IOException e) {
|
|
|
|
+ e.printStackTrace();
|
|
|
|
+ } catch (ParseException e) {
|
|
|
|
+ e.printStackTrace();
|
|
|
|
+ }
|
|
|
|
+ return list;
|
|
}
|
|
}
|
|
|
|
|
|
|
|
|