瀏覽代碼

病案首页搜索医生时显示医生的科室和医保赋码

lighter 2 年之前
父節點
當前提交
5703944704

+ 2 - 1
src/main/java/thyyxxk/webserver/dao/his/casefrontsheet/SheetSearchDao.java

@@ -40,7 +40,8 @@ public interface SheetSearchDao {
             "where a.[Number]>10*(#{page}) order by weight desc")
     List<CodeName> searchHurtReason(@Param("method") String method, @Param("content") String content, @Param("page") int page);
 
-    @Select("select top 10 rtrim(code) code, rtrim(name) name from " +
+    @Select("select top 10 rtrim(code) code, rtrim(name) name, rtrim(yb_code) ybCode, " +
+            "deptName=(select rtrim(t.name) from zd_unit_code t where t.code=dept_code) from " +
             "(SELECT ROW_NUMBER() OVER(ORDER BY code) AS 'Number',  * " +
             "from a_employee_mi with(nolock) where isnull(del_flag,0)=0 and ${method} like #{content}) a " +
             "where a.[Number]>10*(#{page})")

+ 2 - 0
src/main/java/thyyxxk/webserver/entity/dictionary/CodeName.java

@@ -11,6 +11,8 @@ public class CodeName {
     private String name;
     private String pyCode;
     private String ssfz;
+    private String deptName;
+    private String ybCode;
     private boolean disabled;
 
     public CodeName() {