Selaa lähdekoodia

缺陷反馈记录列表下拉模块查询bug

zhanghang 3 vuotta sitten
vanhempi
commit
b0237634e9
1 muutettua tiedostoa jossa 7 lisäystä ja 3 poistoa
  1. 7 3
      src/main/resources/mapper/MedDefectFeedbackMapper.xml

+ 7 - 3
src/main/resources/mapper/MedDefectFeedbackMapper.xml

@@ -133,7 +133,8 @@
             is_deleted = 'N'
         AND hospital_id = #{getDefectDeptModeVO.hospitalId}
         GROUP BY
-		mode_id,
+        dept_id,
+        dept_name,
 		behospital_code
         ) a,
         med_behospital_info b
@@ -144,7 +145,8 @@
         and b.is_placefile =#{getDefectDeptModeVO.isPlacefile}
     </if>
     GROUP BY
-        a.deptId
+        a.deptId,
+        a.deptName
     </select>
 
     <select id="getDefectMode" resultType="com.diagbot.dto.GetDefectModeDTO">
@@ -163,6 +165,7 @@
         AND hospital_id = #{getDefectDeptModeVO.hospitalId}
     	GROUP BY
 		mode_id,
+        mode_name,
 		behospital_code
         ) a,
         med_behospital_info b
@@ -173,7 +176,8 @@
         and b.is_placefile =#{getDefectDeptModeVO.isPlacefile}
     </if>
     GROUP BY
-        a.modeId
+        a.modeId,
+        a.modeName
     </select>
 
 </mapper>