|
@@ -342,7 +342,20 @@ public class BehospitalInfoFacade extends BehospitalInfoServiceImpl {
|
|
|
if (ListUtil.isEmpty(paramList) || paramList.contains("msg")) {
|
|
|
AnalyzeVO analyzeVO = new AnalyzeVO();
|
|
|
BeanUtil.copyProperties(getDetailVO, analyzeVO);
|
|
|
+ QcresultInfo qcresultInfo = qcresultInfoFacade.getOne(new QueryWrapper<QcresultInfo>()
|
|
|
+ .eq("hospital_id", analyzeVO.getHospitalId())
|
|
|
+ .eq("behospital_code", analyzeVO.getBehospitalCode())
|
|
|
+ .eq("is_deleted", IsDeleteEnum.N.getKey()));
|
|
|
+ if (qcresultInfo != null && qcresultInfo.getId() != null) {
|
|
|
+ analyzeVO.setQcresultInfoId(qcresultInfo.getId());
|
|
|
+ }
|
|
|
List<MsgDTO> msgDTOList = getMsg(analyzeVO);
|
|
|
+
|
|
|
+ if (ListUtil.isEmpty(msgDTOList)) {
|
|
|
+ analyzeVO.setQcresultInfoId(null);
|
|
|
+ msgDTOList = getMsg(analyzeVO);
|
|
|
+ }
|
|
|
+
|
|
|
if (ListUtil.isNotEmpty(msgDTOList)) {
|
|
|
// 从qc_question_info的cases_entry_ids获取
|
|
|
Map<String, Object> paramMap = new HashMap<>();
|