|
@@ -18,6 +18,7 @@ import com.diagbot.service.impl.MedClickInfoServiceImpl;
|
|
|
import com.diagbot.service.impl.StrInformedConsentServiceImpl;
|
|
|
import com.diagbot.util.*;
|
|
|
import com.diagbot.vo.*;
|
|
|
+import com.fasterxml.jackson.databind.exc.InvalidFormatException;
|
|
|
import com.google.common.collect.Lists;
|
|
|
import com.google.common.collect.Maps;
|
|
|
import org.apache.commons.lang3.StringUtils;
|
|
@@ -28,12 +29,18 @@ import org.springframework.beans.factory.annotation.Value;
|
|
|
import org.springframework.stereotype.Component;
|
|
|
|
|
|
import javax.servlet.http.HttpServletResponse;
|
|
|
+import java.io.FileInputStream;
|
|
|
+import java.io.IOException;
|
|
|
+import java.io.InputStream;
|
|
|
import java.math.BigDecimal;
|
|
|
import java.math.RoundingMode;
|
|
|
+import java.text.ParseException;
|
|
|
import java.time.LocalDateTime;
|
|
|
import java.util.*;
|
|
|
import java.util.stream.Collectors;
|
|
|
|
|
|
+import static com.diagbot.util.ReadExcelUtils.read2007Xlsx;
|
|
|
+
|
|
|
/**
|
|
|
* @Description:
|
|
|
* @author: zhoutg
|
|
@@ -154,7 +161,6 @@ public class BehospitalInfoFacade extends BehospitalInfoServiceImpl {
|
|
|
QcresultDetailFacade qcresultDetailFacade;
|
|
|
|
|
|
|
|
|
-
|
|
|
/**
|
|
|
* 分页
|
|
|
*
|
|
@@ -2580,4 +2586,44 @@ public class BehospitalInfoFacade extends BehospitalInfoServiceImpl {
|
|
|
}
|
|
|
return qcresultDetails;
|
|
|
}
|
|
|
+
|
|
|
+ /**
|
|
|
+ * 评分历史
|
|
|
+ * @param behospitalCode
|
|
|
+ * @return
|
|
|
+ */
|
|
|
+ public List<QcCasesHistoryDTO> getHistoryAnalyze(String behospitalCode) {
|
|
|
+ Long hospitalID =Long.valueOf(SysUserUtils.getCurrentHospitalID());
|
|
|
+ List<QcCasesHistoryDTO> medQcresultResultList = qcresultInfoFacade.getMedQcresultResultList(hospitalID, behospitalCode);
|
|
|
+
|
|
|
+ return medQcresultResultList;
|
|
|
+ }
|
|
|
+
|
|
|
+ /**
|
|
|
+ * 操作日志
|
|
|
+ * @param behospitalCode
|
|
|
+ * @throws InvalidFormatException
|
|
|
+ * @throws IOException
|
|
|
+ * @throws ParseException
|
|
|
+ */
|
|
|
+ public List<operationLog> getOperationLog(String behospitalCode){
|
|
|
+ String fullFileName = "src\\main\\resources\\操作日志.xlsx";
|
|
|
+ List<operationLog> list = new ArrayList<>();
|
|
|
+ try {
|
|
|
+ InputStream is = new FileInputStream(fullFileName);
|
|
|
+ list = read2007Xlsx(is);
|
|
|
+ }catch (Exception e){
|
|
|
+ e.printStackTrace();
|
|
|
+ }
|
|
|
+ System.out.println("size==>" + list.size());
|
|
|
+ return list;
|
|
|
+ // 获取resource目录下的 41473.xlsx 文件:
|
|
|
+// String resource = "41473.xlsx";
|
|
|
+// ClassPathResource classPathResource = new ClassPathResource(resource);
|
|
|
+// List<Order> list = read2007Xlsx(classPathResource.getInputStream());
|
|
|
+// System.out.println("size==>" + list.size());
|
|
|
+ }
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
}
|