Browse Source

没有医保编码的人不能会诊。

DESKTOP-0GD05B0\Administrator 2 years ago
parent
commit
9dbf14a9aa

+ 2 - 1
src/main/java/thyyxxk/webserver/dao/his/zhuyuanyisheng/HuiZhenShenQingDao.java

@@ -162,7 +162,8 @@ public interface HuiZhenShenQingDao {
             "from a_employee_mi " +
             "where isnull(del_flag " +
             "          , 0) = 0 " +
-            "  and emp_tit_code in ('001', '002', '003') " +
+            "  and emp_tit_code in ('001', '002', '003')" +
+            "  and nullif(yb_code,'') is not null  " +
             "  and (name like #{name} " +
             "    or py_code like #{name} " +
             "    or d_code like #{name})")