|
@@ -3,6 +3,7 @@ package com.diagbot.facade;
|
|
|
import com.alibaba.fastjson.JSON;
|
|
|
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
|
|
|
import com.baomidou.mybatisplus.core.metadata.IPage;
|
|
|
+import com.diagbot.client.AuthServiceClient;
|
|
|
import com.diagbot.client.QcServiceClient;
|
|
|
import com.diagbot.dto.AlgorithmDTO;
|
|
|
import com.diagbot.dto.AnalyzeDTO;
|
|
@@ -83,6 +84,8 @@ public class BehospitalInfoFacade extends BehospitalInfoServiceImpl {
|
|
|
private QcresultInfoFacade qcresultInfoFacade;
|
|
|
@Autowired
|
|
|
QcModeFacade qcModeFacade;
|
|
|
+ @Autowired
|
|
|
+ AuthServiceClient authServiceClient;
|
|
|
|
|
|
public IPage<BehospitalInfoDTO> pageFac(BehospitalPageVO behospitalPageVO) {
|
|
|
|
|
@@ -144,7 +147,10 @@ public class BehospitalInfoFacade extends BehospitalInfoServiceImpl {
|
|
|
}
|
|
|
|
|
|
public AnalyzeDTO analyze(AnalyzeVO analyzeVO) {
|
|
|
- Long hospitalId = Long.parseLong(SysUserUtils.getCurrentHospitalID());
|
|
|
+ Long hospitalId = analyzeVO.getHospitalId();
|
|
|
+ if (!analyzeVO.getIsTask()) {
|
|
|
+ hospitalId = Long.parseLong(SysUserUtils.getCurrentHospitalID());
|
|
|
+ }
|
|
|
// Long hospitalId = 1L; // 写死
|
|
|
analyzeVO.setHospitalId(hospitalId);
|
|
|
// 获取质控条目
|
|
@@ -258,7 +264,7 @@ public class BehospitalInfoFacade extends BehospitalInfoServiceImpl {
|
|
|
List<QcModeDTO> qcModeDTOList = qcModeFacade.getMenu(pageMap);
|
|
|
String menuData = JSON.toJSONString(qcModeDTOList);
|
|
|
|
|
|
- Date date = qcresultInfoFacade.saveQcResult(algorithmDTO, algorithmVO, analyzeVO, pageData, menuData);
|
|
|
+ Date date = qcresultInfoFacade.saveQcResult(algorithmDTO, algorithmVO, analyzeVO, pageData, menuData, analyzeVO.getIsTask());
|
|
|
|
|
|
// 返回提示信息
|
|
|
List<MsgDTO> msgDTOList = getMsg(analyzeVO);
|
|
@@ -520,4 +526,33 @@ public class BehospitalInfoFacade extends BehospitalInfoServiceImpl {
|
|
|
}
|
|
|
return age;
|
|
|
}
|
|
|
+
|
|
|
+ /**
|
|
|
+ * 执行未评分的病历
|
|
|
+ */
|
|
|
+ public void execute() {
|
|
|
+// List<BehospitalInfo> behospitalInfoList = getNoGrade();
|
|
|
+// for (BehospitalInfo bean : behospitalInfoList) {
|
|
|
+// AnalyzeVO analyzeVO = new AnalyzeVO();
|
|
|
+// analyzeVO.setHospitalId(bean.getHospitalId());
|
|
|
+// analyzeVO.setBehospitalCode(bean.getBehospitalCode());
|
|
|
+// mrqcsysServiceClient.analyze(analyzeVO);
|
|
|
+// }
|
|
|
+
|
|
|
+ List<BehospitalInfo> behospitalInfoList = this.list(new QueryWrapper<BehospitalInfo>()
|
|
|
+ .eq("is_deleted", IsDeleteEnum.N.getKey())
|
|
|
+ );
|
|
|
+
|
|
|
+ int i = 1;
|
|
|
+ while(i < 100) {
|
|
|
+ for (BehospitalInfo bean : behospitalInfoList) {
|
|
|
+ AnalyzeVO analyzeVO = new AnalyzeVO();
|
|
|
+ analyzeVO.setIsTask(true);
|
|
|
+ analyzeVO.setHospitalId(bean.getHospitalId());
|
|
|
+ analyzeVO.setBehospitalCode(bean.getBehospitalCode());
|
|
|
+ authServiceClient.analyze_rpc(analyzeVO);
|
|
|
+ System.out.println(i++);
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
}
|