瀏覽代碼

代码修正

gaodm 5 年之前
父節點
當前提交
3a6302256a

+ 7 - 3
knowledgeman-service/src/main/java/com/diagbot/vo/DiseaseNameVO.java

@@ -1,11 +1,11 @@
 package com.diagbot.vo;
 
 import com.diagbot.annotation.CryptField;
+import io.swagger.annotations.ApiModelProperty;
 import lombok.Getter;
 import lombok.Setter;
 
 /**
- * 
  * @author wangfeng
  * @Description: TODO
  * @date 2019年4月9日 下午4:42:06
@@ -14,6 +14,10 @@ import lombok.Setter;
 @Getter
 public class DiseaseNameVO {
 
-	@CryptField
-	private String  diseaseName;
+    @CryptField
+    private String diseaseName;
+
+    @CryptField
+    @ApiModelProperty(hidden = true)
+    private String libName = "慢病";
 }

+ 1 - 1
knowledgeman-service/src/main/resources/mapper/EvaluationMapper.xml

@@ -60,7 +60,7 @@
 	AND t1.lib_type = 18
 	AND t2.relation_id = 3
 	AND t3.lib_type = 51
-	AND t3.lib_name = "慤症") a
+	AND t3.lib_name = #{diseaseNameVO.libName}) a
 	LEFT JOIN kl_evaluation b
 	ON a.diseaseId = b.concept_id
 	AND b.is_deleted = "N"

+ 1 - 1
knowledgeman-service/src/main/resources/mapper/IndexConfigMapper.xml

@@ -56,7 +56,7 @@
 	AND t1.lib_type = 18
 	AND t2.relation_id = 3
 	AND t3.lib_type = 51
-	AND t3.lib_name = "慢病") a
+	AND t3.lib_name = #{diseaseNameVO.libName}) a
 	LEFT JOIN kl_index_config b
 	ON a.diseaseId = b.disease_id
 	WHERE b.disease_id IS NULL