Browse Source

修复科室的问题。

xiaochan 3 years ago
parent
commit
d83d0898d4
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/main/java/thyyxxk/webserver/dao/his/PublicDao.java

+ 1 - 1
src/main/java/thyyxxk/webserver/dao/his/PublicDao.java

@@ -99,7 +99,7 @@ public interface PublicDao {
      * @param deptCode 科室编码
      * @return 返回自生和子科室
      */
-    @Select("select code, parent_code from zd_unit_code where (parent_code = #{deptCode} or code = #{deptCode}) and isnull(del_flag,0) = 0")
+    @Select("select code,case when parent_code = code then null else parent_code end as parent_code from zd_unit_code where (parent_code = #{deptCode} or code = #{deptCode}) and isnull(del_flag,0) = 0")
     List<GetDropdownBox> getKeShiLieBiao(String deptCode);
 
     @Select("<script>" +