Преглед изворни кода

湘雅三院病案首页运行质控在不归档的情况下不会弹出url

shiyue пре 3 година
родитељ
комит
2639f99ba0
1 измењених фајлова са 10 додато и 1 уклоњено
  1. 10 1
      src/main/java/com/diagbot/facade/ViewFacade.java

+ 10 - 1
src/main/java/com/diagbot/facade/ViewFacade.java

@@ -2,7 +2,9 @@ package com.diagbot.facade;
 
 import com.alibaba.fastjson.JSON;
 import com.alibaba.fastjson.JSONObject;
+import com.baomidou.mybatisplus.core.conditions.Wrapper;
 import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
+import com.baomidou.mybatisplus.core.conditions.update.UpdateWrapper;
 import com.diagbot.biz.push.entity.Lis;
 import com.diagbot.dto.RespDTO;
 import com.diagbot.entity.*;
@@ -234,7 +236,14 @@ public class ViewFacade {
 
         //根据传过来的方案编码来判断是否返回评分(1:返回评分,其他只保存数据)
         if (xyHomePageVo.getDockModeType().equals("1")) {
-            String url = readProperties.getProcessQcUrl() + "?behospitalCode=" + behospitalCode + "&hospitalId=" + xyHomePageVo.getHospitalId() + "&modeId=" + modeId;
+            QueryWrapper<BehospitalInfo> wrapper=new QueryWrapper<>();
+            wrapper.eq("behospital_code",behospitalCode)
+                            .eq("is_deleted",IsDeleteEnum.N);
+            BehospitalInfo behospitalInfo= aBehospitalInfoFacade.getOne(wrapper);
+            String url="";
+            if (behospitalInfo != null &&behospitalInfo.getIsPlacefile().equals("1")){
+                url = readProperties.getProcessQcUrl() + "?behospitalCode=" + behospitalCode + "&hospitalId=" + xyHomePageVo.getHospitalId() + "&modeId=" + modeId;
+            }
             Map<String, Object> map = new HashMap<String, Object>();
             map.put("url", url);
             return RespDTO.onSuc(map);