Browse Source

获取常用标签修改

wangyu 6 years ago
parent
commit
65c4b627e4

+ 2 - 2
icss-service/src/main/java/com/diagbot/vo/QuestionUsualVO.java

@@ -14,8 +14,8 @@ import javax.validation.constraints.NotNull;
 @Setter
 @Setter
 public class QuestionUsualVO {
 public class QuestionUsualVO {
 
 
-    @NotNull(message = "请输入科室编码")
-    private String deptCode;
+    @NotNull(message = "请输入科室id")
+    private String deptId;
     @NotNull(message = "请输入病人年龄")
     @NotNull(message = "请输入病人年龄")
     private Integer age;
     private Integer age;
     @NotNull(message = "请输入病人性别")
     @NotNull(message = "请输入病人性别")

+ 1 - 2
icss-service/src/main/resources/mapper/QuestionUsualMapper.xml

@@ -22,8 +22,7 @@
         SELECT b.id as question_id, b.`name` FROM `icss_dept_info` a
         SELECT b.id as question_id, b.`name` FROM `icss_dept_info` a
         LEFT JOIN `icss_question_usual` c ON a.id = c.dept_id
         LEFT JOIN `icss_question_usual` c ON a.id = c.dept_id
         LEFT JOIN `icss_question_info` b ON b.id = c.question_id
         LEFT JOIN `icss_question_info` b ON b.id = c.question_id
-        LEFT JOIN `tran_hospital_dept` d ON d.dept_id = a.id
-        WHERE a.is_deleted = 'N' AND b.is_deleted = 'N' AND c.is_deleted = 'N' AND d.is_deleted = 'N' AND d.`code` = #{deptCode}
+        WHERE a.is_deleted = 'N' AND b.is_deleted = 'N' AND c.is_deleted = 'N' AND a.id = #{deptId}
         <if test="age != null and age != ''">
         <if test="age != null and age != ''">
             <![CDATA[ and b.age_begin <= #{age} ]]>
             <![CDATA[ and b.age_begin <= #{age} ]]>
             <![CDATA[ and b.age_end >= #{age} ]]>
             <![CDATA[ and b.age_end >= #{age} ]]>