Sfoglia il codice sorgente

Merge branch 'master' into 'master'

优化科室字典

See merge request lighter/web-server!139
huangshuhua 4 mesi fa
parent
commit
30e3c9d980

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

@@ -195,7 +195,7 @@ public interface BedDeptDictDao {
     @Select(" select * from zd_dept_all where dept_id = #{deptId}  ")
     Map<String, Object> selectSmallDeptByCode(@Param("deptId") Integer deptId);
 
-    @Select(" select * from zd_dept_all where dept = #{dept} and small_dept = #{smallDept}  ")
+    @Select(" select count(*) cs from zd_dept_all where dept = #{dept} and small_dept = #{smallDept}  ")
     int selectSmallDeptByDept(@Param("dept") String dept, @Param("smallDept") String smallDept);
 
     @Update("<script>" +