Browse Source

静态知识映射测试

zhaops 4 years ago
parent
commit
4140ba2778

+ 1 - 1
cdssman-service/src/main/java/com/diagbot/dto/CaseStaticResultDTO.java

@@ -15,7 +15,7 @@ import java.util.Date;
 public class CaseStaticResultDTO {
     private String caseName;
     private Long resultId;
-    private Integer caseNo;
+    private Long caseId;
     private Integer totleNum;
     private Integer unMappingNum;
     private Integer withoutKnowledgeNum;

+ 66 - 27
cdssman-service/src/main/java/com/diagbot/entity/ResultOtherTransfusion.java

@@ -110,6 +110,11 @@ public class ResultOtherTransfusion implements Serializable {
      */
     private String transfusionType;
 
+    /**
+     * 输注类型(医院端)
+     */
+    private String transfusionTypeHisName;
+
     /**
      * 禁忌项类型
      */
@@ -174,6 +179,7 @@ public class ResultOtherTransfusion implements Serializable {
     public void setId(Long id) {
         this.id = id;
     }
+
     public String getIsDeleted() {
         return isDeleted;
     }
@@ -181,6 +187,7 @@ public class ResultOtherTransfusion implements Serializable {
     public void setIsDeleted(String isDeleted) {
         this.isDeleted = isDeleted;
     }
+
     public Date getGmtCreate() {
         return gmtCreate;
     }
@@ -188,6 +195,7 @@ public class ResultOtherTransfusion implements Serializable {
     public void setGmtCreate(Date gmtCreate) {
         this.gmtCreate = gmtCreate;
     }
+
     public Date getGmtModified() {
         return gmtModified;
     }
@@ -195,6 +203,7 @@ public class ResultOtherTransfusion implements Serializable {
     public void setGmtModified(Date gmtModified) {
         this.gmtModified = gmtModified;
     }
+
     public String getCreator() {
         return creator;
     }
@@ -202,6 +211,7 @@ public class ResultOtherTransfusion implements Serializable {
     public void setCreator(String creator) {
         this.creator = creator;
     }
+
     public String getModifier() {
         return modifier;
     }
@@ -209,6 +219,7 @@ public class ResultOtherTransfusion implements Serializable {
     public void setModifier(String modifier) {
         this.modifier = modifier;
     }
+
     public Long getResultId() {
         return resultId;
     }
@@ -216,6 +227,7 @@ public class ResultOtherTransfusion implements Serializable {
     public void setResultId(Long resultId) {
         this.resultId = resultId;
     }
+
     public String getOtherItemName() {
         return otherItemName;
     }
@@ -223,6 +235,7 @@ public class ResultOtherTransfusion implements Serializable {
     public void setOtherItemName(String otherItemName) {
         this.otherItemName = otherItemName;
     }
+
     public String getOtherItemHisName() {
         return otherItemHisName;
     }
@@ -230,6 +243,7 @@ public class ResultOtherTransfusion implements Serializable {
     public void setOtherItemHisName(String otherItemHisName) {
         this.otherItemHisName = otherItemHisName;
     }
+
     public String getOtherItemHisDetailName() {
         return otherItemHisDetailName;
     }
@@ -237,6 +251,7 @@ public class ResultOtherTransfusion implements Serializable {
     public void setOtherItemHisDetailName(String otherItemHisDetailName) {
         this.otherItemHisDetailName = otherItemHisDetailName;
     }
+
     public Integer getOtherItemRange() {
         return otherItemRange;
     }
@@ -244,6 +259,7 @@ public class ResultOtherTransfusion implements Serializable {
     public void setOtherItemRange(Integer otherItemRange) {
         this.otherItemRange = otherItemRange;
     }
+
     public BigDecimal getOtherItemMaxValue() {
         return otherItemMaxValue;
     }
@@ -251,6 +267,7 @@ public class ResultOtherTransfusion implements Serializable {
     public void setOtherItemMaxValue(BigDecimal otherItemMaxValue) {
         this.otherItemMaxValue = otherItemMaxValue;
     }
+
     public BigDecimal getOtherItemMinValue() {
         return otherItemMinValue;
     }
@@ -258,6 +275,7 @@ public class ResultOtherTransfusion implements Serializable {
     public void setOtherItemMinValue(BigDecimal otherItemMinValue) {
         this.otherItemMinValue = otherItemMinValue;
     }
+
     public String getOtherItemUnit() {
         return otherItemUnit;
     }
@@ -265,6 +283,7 @@ public class ResultOtherTransfusion implements Serializable {
     public void setOtherItemUnit(String otherItemUnit) {
         this.otherItemUnit = otherItemUnit;
     }
+
     public String getOtherItemInputValue() {
         return otherItemInputValue;
     }
@@ -272,6 +291,7 @@ public class ResultOtherTransfusion implements Serializable {
     public void setOtherItemInputValue(String otherItemInputValue) {
         this.otherItemInputValue = otherItemInputValue;
     }
+
     public String getTransfusionType() {
         return transfusionType;
     }
@@ -279,6 +299,15 @@ public class ResultOtherTransfusion implements Serializable {
     public void setTransfusionType(String transfusionType) {
         this.transfusionType = transfusionType;
     }
+
+    public String getTransfusionTypeHisName() {
+        return transfusionTypeHisName;
+    }
+
+    public void setTransfusionTypeHisName(String transfusionTypeHisName) {
+        this.transfusionTypeHisName = transfusionTypeHisName;
+    }
+
     public String getConflictItemType() {
         return conflictItemType;
     }
@@ -286,6 +315,7 @@ public class ResultOtherTransfusion implements Serializable {
     public void setConflictItemType(String conflictItemType) {
         this.conflictItemType = conflictItemType;
     }
+
     public String getConflictItemName() {
         return conflictItemName;
     }
@@ -293,6 +323,7 @@ public class ResultOtherTransfusion implements Serializable {
     public void setConflictItemName(String conflictItemName) {
         this.conflictItemName = conflictItemName;
     }
+
     public String getConflictItemHisName() {
         return conflictItemHisName;
     }
@@ -300,6 +331,7 @@ public class ResultOtherTransfusion implements Serializable {
     public void setConflictItemHisName(String conflictItemHisName) {
         this.conflictItemHisName = conflictItemHisName;
     }
+
     public String getConflictItemHisDetailName() {
         return conflictItemHisDetailName;
     }
@@ -307,6 +339,7 @@ public class ResultOtherTransfusion implements Serializable {
     public void setConflictItemHisDetailName(String conflictItemHisDetailName) {
         this.conflictItemHisDetailName = conflictItemHisDetailName;
     }
+
     public String getReferenceValue() {
         return referenceValue;
     }
@@ -314,6 +347,7 @@ public class ResultOtherTransfusion implements Serializable {
     public void setReferenceValue(String referenceValue) {
         this.referenceValue = referenceValue;
     }
+
     public String getOutput() {
         return output;
     }
@@ -321,6 +355,7 @@ public class ResultOtherTransfusion implements Serializable {
     public void setOutput(String output) {
         this.output = output;
     }
+
     public String getExpectedOutput() {
         return expectedOutput;
     }
@@ -328,6 +363,7 @@ public class ResultOtherTransfusion implements Serializable {
     public void setExpectedOutput(String expectedOutput) {
         this.expectedOutput = expectedOutput;
     }
+
     public Integer getSuccess() {
         return success;
     }
@@ -335,6 +371,7 @@ public class ResultOtherTransfusion implements Serializable {
     public void setSuccess(Integer success) {
         this.success = success;
     }
+
     public String getMessage() {
         return message;
     }
@@ -342,6 +379,7 @@ public class ResultOtherTransfusion implements Serializable {
     public void setMessage(String message) {
         this.message = message;
     }
+
     public String getInputParams() {
         return inputParams;
     }
@@ -353,32 +391,33 @@ public class ResultOtherTransfusion implements Serializable {
     @Override
     public String toString() {
         return "ResultOtherTransfusion{" +
-            "id=" + id +
-            ", isDeleted=" + isDeleted +
-            ", gmtCreate=" + gmtCreate +
-            ", gmtModified=" + gmtModified +
-            ", creator=" + creator +
-            ", modifier=" + modifier +
-            ", resultId=" + resultId +
-            ", otherItemName=" + otherItemName +
-            ", otherItemHisName=" + otherItemHisName +
-            ", otherItemHisDetailName=" + otherItemHisDetailName +
-            ", otherItemRange=" + otherItemRange +
-            ", otherItemMaxValue=" + otherItemMaxValue +
-            ", otherItemMinValue=" + otherItemMinValue +
-            ", otherItemUnit=" + otherItemUnit +
-            ", otherItemInputValue=" + otherItemInputValue +
-            ", transfusionType=" + transfusionType +
-            ", conflictItemType=" + conflictItemType +
-            ", conflictItemName=" + conflictItemName +
-            ", conflictItemHisName=" + conflictItemHisName +
-            ", conflictItemHisDetailName=" + conflictItemHisDetailName +
-            ", referenceValue=" + referenceValue +
-            ", output=" + output +
-            ", expectedOutput=" + expectedOutput +
-            ", success=" + success +
-            ", message=" + message +
-            ", inputParams=" + inputParams +
-        "}";
+                "id=" + id +
+                ", isDeleted=" + isDeleted +
+                ", gmtCreate=" + gmtCreate +
+                ", gmtModified=" + gmtModified +
+                ", creator=" + creator +
+                ", modifier=" + modifier +
+                ", resultId=" + resultId +
+                ", otherItemName=" + otherItemName +
+                ", otherItemHisName=" + otherItemHisName +
+                ", otherItemHisDetailName=" + otherItemHisDetailName +
+                ", otherItemRange=" + otherItemRange +
+                ", otherItemMaxValue=" + otherItemMaxValue +
+                ", otherItemMinValue=" + otherItemMinValue +
+                ", otherItemUnit=" + otherItemUnit +
+                ", otherItemInputValue=" + otherItemInputValue +
+                ", transfusionType=" + transfusionType +
+                ", transfusionTypeHisName=" + transfusionTypeHisName +
+                ", conflictItemType=" + conflictItemType +
+                ", conflictItemName=" + conflictItemName +
+                ", conflictItemHisName=" + conflictItemHisName +
+                ", conflictItemHisDetailName=" + conflictItemHisDetailName +
+                ", referenceValue=" + referenceValue +
+                ", output=" + output +
+                ", expectedOutput=" + expectedOutput +
+                ", success=" + success +
+                ", message=" + message +
+                ", inputParams=" + inputParams +
+                "}";
     }
 }

+ 28 - 18
cdssman-service/src/main/java/com/diagbot/entity/ResultStaticInfo.java

@@ -57,9 +57,9 @@ public class ResultStaticInfo implements Serializable {
     private Long hospitalId;
 
     /**
-     * 测试案例编号
+     * 测试案例id
      */
-    private Integer caseNo;
+    private Long caseId;
 
     /**
      * 映射关系总数
@@ -83,6 +83,7 @@ public class ResultStaticInfo implements Serializable {
     public void setId(Long id) {
         this.id = id;
     }
+
     public String getIsDeleted() {
         return isDeleted;
     }
@@ -90,6 +91,7 @@ public class ResultStaticInfo implements Serializable {
     public void setIsDeleted(String isDeleted) {
         this.isDeleted = isDeleted;
     }
+
     public Date getGmtCreate() {
         return gmtCreate;
     }
@@ -97,6 +99,7 @@ public class ResultStaticInfo implements Serializable {
     public void setGmtCreate(Date gmtCreate) {
         this.gmtCreate = gmtCreate;
     }
+
     public Date getGmtModified() {
         return gmtModified;
     }
@@ -104,6 +107,7 @@ public class ResultStaticInfo implements Serializable {
     public void setGmtModified(Date gmtModified) {
         this.gmtModified = gmtModified;
     }
+
     public String getCreator() {
         return creator;
     }
@@ -111,6 +115,7 @@ public class ResultStaticInfo implements Serializable {
     public void setCreator(String creator) {
         this.creator = creator;
     }
+
     public String getModifier() {
         return modifier;
     }
@@ -118,6 +123,7 @@ public class ResultStaticInfo implements Serializable {
     public void setModifier(String modifier) {
         this.modifier = modifier;
     }
+
     public Long getHospitalId() {
         return hospitalId;
     }
@@ -125,13 +131,15 @@ public class ResultStaticInfo implements Serializable {
     public void setHospitalId(Long hospitalId) {
         this.hospitalId = hospitalId;
     }
-    public Integer getCaseNo() {
-        return caseNo;
+
+    public Long getCaseId() {
+        return caseId;
     }
 
-    public void setCaseNo(Integer caseNo) {
-        this.caseNo = caseNo;
+    public void setCaseId(Long caseId) {
+        this.caseId = caseId;
     }
+
     public Integer getTotleNum() {
         return totleNum;
     }
@@ -139,6 +147,7 @@ public class ResultStaticInfo implements Serializable {
     public void setTotleNum(Integer totleNum) {
         this.totleNum = totleNum;
     }
+
     public Integer getUnMappingNum() {
         return unMappingNum;
     }
@@ -146,6 +155,7 @@ public class ResultStaticInfo implements Serializable {
     public void setUnMappingNum(Integer unMappingNum) {
         this.unMappingNum = unMappingNum;
     }
+
     public Integer getWithoutKnowledgeNum() {
         return withoutKnowledgeNum;
     }
@@ -157,17 +167,17 @@ public class ResultStaticInfo implements Serializable {
     @Override
     public String toString() {
         return "ResultStaticInfo{" +
-            "id=" + id +
-            ", isDeleted=" + isDeleted +
-            ", gmtCreate=" + gmtCreate +
-            ", gmtModified=" + gmtModified +
-            ", creator=" + creator +
-            ", modifier=" + modifier +
-            ", hospitalId=" + hospitalId +
-            ", caseNo=" + caseNo +
-            ", totleNum=" + totleNum +
-            ", unMappingNum=" + unMappingNum +
-            ", withoutKnowledgeNum=" + withoutKnowledgeNum +
-        "}";
+                "id=" + id +
+                ", isDeleted=" + isDeleted +
+                ", gmtCreate=" + gmtCreate +
+                ", gmtModified=" + gmtModified +
+                ", creator=" + creator +
+                ", modifier=" + modifier +
+                ", hospitalId=" + hospitalId +
+                ", caseId=" + caseId +
+                ", totleNum=" + totleNum +
+                ", unMappingNum=" + unMappingNum +
+                ", withoutKnowledgeNum=" + withoutKnowledgeNum +
+                "}";
     }
 }

+ 2 - 23
cdssman-service/src/main/java/com/diagbot/facade/ResultStaticKnowledgeFacade.java

@@ -17,7 +17,6 @@ import com.diagbot.entity.OperationConfig;
 import com.diagbot.entity.PacsConfig;
 import com.diagbot.entity.ResultStaticInfo;
 import com.diagbot.entity.ResultStaticKnowledge;
-import com.diagbot.entity.TransfusionConfig;
 import com.diagbot.entity.node.LisName;
 import com.diagbot.entity.node.PacsSubName;
 import com.diagbot.entity.relationship.LisNameLisSet;
@@ -94,26 +93,6 @@ public class ResultStaticKnowledgeFacade extends ResultStaticKnowledgeServiceImp
     private ResultStaticInfoService resultStaticInfoService;
 
 
-    public Boolean allTest(StaticKnowledgeTestVO testVO) {
-        Long hospitalId = testVO.getHospitalId();
-        List<LisConfig> lisConfigList = lisConfigFacade.getListByHospitalId(hospitalId);
-        List<PacsConfig> pacsConfigList = pacsConfigFacade.getListByHospitalId(hospitalId);
-        List<DrugConfig> drugConfigList = drugConfigFacade.getListByHospitalId(hospitalId);
-        List<DiseaseConfig> diseaseConfigList = diseaseConfigFacade.getListByHospitalId(hospitalId);
-        List<OperationConfig> operationConfigList = operationConfigFacade.getListByHospitalId(hospitalId);
-        List<TransfusionConfig> transfusionConfigList = transfusionConfigFacade.getListByHospitalId(hospitalId);
-        Map<String, Map<String, Map<String, List<Long>>>> lisConfigMap = lisConfigFacade.getUniqueConfigMap(hospitalId, null, null);
-        Map<String, Map<String, List<Long>>> pacsConfigMap = pacsConfigFacade.getUniqueConfigMap(hospitalId, null, null);
-        Map<String, Map<String, Map<String, List<Long>>>> drugConfigMap = drugConfigFacade.getUniqueConfigMap(hospitalId, null, null);
-        Map<String, Map<String, List<Long>>> diseaseConfigMap = diseaseConfigFacade.getUniqueConfigMap(hospitalId, null, null);
-        Map<String, Map<String, List<Long>>> operationConfigMap = operationConfigFacade.getUniqueConfigMap(hospitalId, null, null);
-        Map<String, Map<String, List<Long>>> transfusionConfigMap = transfusionConfigFacade.getUniqueConfigMap(hospitalId, null, null);
-
-
-        return true;
-    }
-
-
     /**
      * 化验静态知识测试
      *
@@ -849,12 +828,12 @@ public class ResultStaticKnowledgeFacade extends ResultStaticKnowledgeServiceImp
         QueryWrapper<ResultStaticInfo> resultStaticInfoQueryWrapper = new QueryWrapper<>();
         resultStaticInfoQueryWrapper.eq("is_deleted", IsDeleteEnum.N.getKey())
                 .eq("hospital_id", testVO.getHospitalId())
-                .eq("case_no", testVO.getCaseNo());
+                .eq("case_id", testVO.getCaseId());
         ResultStaticInfo resultInfo = resultStaticInfoService.getOne(resultStaticInfoQueryWrapper, false);
         if (resultInfo == null) {
             resultInfo = new ResultStaticInfo();
             resultInfo.setHospitalId(testVO.getHospitalId());
-            resultInfo.setCaseNo(testVO.getCaseNo());
+            resultInfo.setCaseId(testVO.getCaseId());
             resultInfo.setGmtCreate(now);
         }
         resultInfo.setGmtModified(now);

+ 24 - 3
cdssman-service/src/main/java/com/diagbot/facade/RuleConvertFacade.java

@@ -1099,11 +1099,12 @@ public class RuleConvertFacade {
 
     /**
      * 其他值提醒-辅检
+     *
      * @param items
      * @param hospitalId
      * @return
      */
-    public List<ResultOtherPacs> otherRuleConvert_pacs(List<PacsRemind> items,Long hospitalId) {
+    public List<ResultOtherPacs> otherRuleConvert_pacs(List<PacsRemind> items, Long hospitalId) {
         List<ResultOtherPacs> retList = Lists.newLinkedList();
         List<ResultOtherPacs> retOtherList = Lists.newLinkedList();
 
@@ -1188,14 +1189,16 @@ public class RuleConvertFacade {
 
     /**
      * 其他值提醒-输血
+     *
      * @param items
      * @param hospitalId
      * @return
      */
-    public List<ResultOtherTransfusion> otherRuleConvert_transfusion(List<TransfusionSuggest> items,Long hospitalId) {
+    public List<ResultOtherTransfusion> otherRuleConvert_transfusion(List<TransfusionSuggest> items, Long hospitalId) {
         List<ResultOtherTransfusion> retList = Lists.newLinkedList();
         List<ResultOtherTransfusion> retOtherList = Lists.newLinkedList();
         List<ResultOtherTransfusion> retMappingList = Lists.newLinkedList();
+        List<ResultOtherTransfusion> retTransMappingList = Lists.newLinkedList();
 
         if (ListUtil.isEmpty(items)) {
             return retList;
@@ -1204,6 +1207,7 @@ public class RuleConvertFacade {
         Map<String, Map<String, Map<String, List<Long>>>> lisConfigMap = lisConfigFacade.getUniqueConfigMap(hospitalId, null, null);
         Map<String, Map<String, List<Long>>> diseaseConfigMap = diseaseConfigFacade.getUniqueConfigMap(hospitalId, null, null);
         Map<String, Map<String, List<Long>>> operationConfigMap = operationConfigFacade.getUniqueConfigMap(hospitalId, null, null);
+        Map<String, Map<String, List<Long>>> transfusionConfigMap = transfusionConfigFacade.getUniqueConfigMap(hospitalId, null, null);
 
         for (TransfusionSuggest item : items) {
             ResultOtherTransfusion result = new ResultOtherTransfusion();
@@ -1303,7 +1307,23 @@ public class RuleConvertFacade {
             }
         }
 
-        retList = createOhterTransfusionInputValue(retMappingList);
+        //输注类型映射医院端名称
+        for (ResultOtherTransfusion result : retMappingList) {
+            if (transfusionConfigMap.containsKey(result.getTransfusionType())) {
+                transfusionConfigMap.get(result.getTransfusionType()).keySet().forEach(hisName -> {
+                    ResultOtherTransfusion resultExt = new ResultOtherTransfusion();
+                    BeanUtil.copyProperties(result, resultExt);
+                    resultExt.setTransfusionTypeHisName(hisName);
+                    retTransMappingList.add(resultExt);
+                });
+            } else {
+                result.setSuccess(0);
+                result.setMessage(result.getMessage() + "输注类型缺少医院端映射;");
+                retTransMappingList.add(result);
+            }
+        }
+
+        retList = createOhterTransfusionInputValue(retTransMappingList);
 
         return retList;
     }
@@ -1538,6 +1558,7 @@ public class RuleConvertFacade {
 
     /**
      * 模拟输入数值-其他值-输血
+     *
      * @param resultList
      * @return
      */

+ 2 - 2
cdssman-service/src/main/java/com/diagbot/vo/StaticKnowledgeTestVO.java

@@ -18,6 +18,6 @@ public class StaticKnowledgeTestVO extends HospitalIdVO {
      */
     @NotNull(message = "请输入术语类型(1:诊断、2:检验、3:检查、4:药品、5:手术/操作)")
     private Integer type;
-    @NotNull(message = "请输入测试编号")
-    private Integer caseNo;
+    @NotNull(message = "请输入测试用例id")
+    private Long caseId;
 }

+ 5 - 5
cdssman-service/src/main/java/com/diagbot/web/StaticKnowledgeTestController.java

@@ -52,17 +52,17 @@ public class StaticKnowledgeTestController {
     @ApiOperation(value = "静态知识测试[zhaops]",
             notes = "hospitalId: 医院Id <br>" +
                     " type:术语类型(1:诊断、2:检验、3:检查、4:药品、5:手术/操作)<br>" +
-                    "caseNo:测试编号<br>")
+                    "caseId: 测试用例id<br>")
     @PostMapping("/staticKnowledgeTest")
     @SysLogger("staticKnowledgeTest")
     public RespDTO<Boolean> staticKnowledgeTest(@RequestParam("file") MultipartFile file,
-                                    @RequestParam("hospitalId") Long hospitalId,
-                                    @RequestParam("type") Integer type,
-                                    @RequestParam("caseNo") Integer caseNo) {
+                                                @RequestParam("hospitalId") Long hospitalId,
+                                                @RequestParam("type") Integer type,
+                                                @RequestParam("caseId") Long caseId) {
         StaticKnowledgeTestVO testVO = new StaticKnowledgeTestVO();
         testVO.setHospitalId(hospitalId);
         testVO.setType(type);
-        testVO.setCaseNo(caseNo);
+        testVO.setCaseId(caseId);
         Boolean data = false;
         if (type.equals(StaticKnowledgeEnum.Lis.getKey())) {
             data = resultStaticKnowledgeFacade.lisTest(file, testVO);

+ 1 - 0
cdssman-service/src/main/resources/mapper/ResultOtherTransfusionMapper.xml

@@ -20,6 +20,7 @@
         <result column="other_item_unit" property="otherItemUnit" />
         <result column="other_item_input_value" property="otherItemInputValue" />
         <result column="transfusion_type" property="transfusionType" />
+        <result column="transfusion_type_his_name" property="transfusionTypeHisName" />
         <result column="conflict_item_type" property="conflictItemType" />
         <result column="conflict_item_name" property="conflictItemName" />
         <result column="conflict_item_his_name" property="conflictItemHisName" />

+ 3 - 3
cdssman-service/src/main/resources/mapper/ResultStaticInfoMapper.xml

@@ -11,7 +11,7 @@
         <result column="creator" property="creator" />
         <result column="modifier" property="modifier" />
         <result column="hospital_id" property="hospitalId" />
-        <result column="case_no" property="caseNo" />
+        <result column="case_id" property="caseId" />
         <result column="totle_num" property="totleNum" />
         <result column="un_mapping_num" property="unMappingNum" />
         <result column="without_knowledge_num" property="withoutKnowledgeNum" />
@@ -22,14 +22,14 @@
         SELECT
         a.case_name AS caseName,
         b.id AS resultId,
-        a.case_no AS caseNo,
+        a.id AS caseId,
         b.totle_num AS totleNum,
         b.un_mapping_num AS unMappingNum,
         b.without_knowledge_num AS withoutKnowledgeNum,
         b.gmt_modified AS gmtModified
         FROM
         test_case_info a
-        LEFT JOIN test_result_static_info b ON a.case_no = b.case_no
+        LEFT JOIN test_result_static_info b ON a.id = b.case_id
         <if test="hospitalId != null">
             AND b.hospital_id = #{hospitalId}
         </if>