Browse Source

科室使用医保编码和名称

lighter 2 years ago
parent
commit
c4e481985a

+ 8 - 4
src/main/java/thyyxxk/simzfeeoprnsystm/dao/SiMzDao.java

@@ -40,8 +40,9 @@ public interface SiMzDao {
             "rtrim(b.doctor_code) as atddrNo, " +
             "drName=(select rtrim(name) from a_employee_mi where code=b.doctor_code), " +
             "rtrim(b.visit_dept_code) as deptCode, " +
-            "deptName=(select rtrim(name) from zd_unit_code where code=b.visit_dept_code), " +
-            "caty=(select si_caty from zd_unit_code where code=b.visit_dept_code) " +
+            "caty=(select si_caty from zd_unit_code where code=b.visit_dept_code), " +
+            "deptName=(select z.name from t_yb_dept z where z.code=" +
+            "(select t.si_caty from zd_unit_code t where t.code=b.visit_dept_code)) " +
             "from t_si_pat_info a, mz_visit_table b where a.pat_no=#{patNo} and a.times=#{times} " +
             "and a.pat_no=b.patient_id and a.times=b.times")
     Regstrtn selectRegstrtn(@Param("patNo") String patNo, @Param("times") int times);
@@ -68,8 +69,11 @@ public interface SiMzDao {
             "his_item_code as medinsListCodg, " +
             "charge_fee as detItemFeeSumamt, " +
             "quantity as cnt, price as pric, " +
-            "bilgDeptCodg=(select rtrim(dept_code) from a_employee_mi where code=input_staff) , " +
-            "bilgDeptName=(select rtrim(name) from zd_unit_code where code=(select rtrim(dept_code) from a_employee_mi where code=input_staff)), " +
+            "bilgDeptCodg=(select t.si_caty from zd_unit_code t where t.code=" +
+            "(select rtrim(m.dept_code) from a_employee_mi m where m.code=input_staff)), " +
+            "bilgDeptName=(select z.name from t_yb_dept z where z.code=" +
+            "(select t.si_caty from zd_unit_code t where t.code=" +
+            "(select rtrim(m.dept_code) from a_employee_mi m where m.code=input_staff))), " +
             "bilgDrCodg=(select rtrim(yb_code) from a_employee_mi where code=input_staff), " +
             "ordersDrCode=(select rtrim(yb_code) from a_employee_mi where code=input_staff), " +
             "input_man as bilgDrName,input_man as ordersDrName " +

+ 8 - 8
src/main/resources/application.yml

@@ -12,8 +12,8 @@ spring:
   thymeleaf:
     cache: false
   datasource:
-#    url: jdbc:jtds:sqlserver://172.16.32.168:1433/thxyhisdb
-    url: jdbc:jtds:sqlserver://172.16.32.179:1433/thxyhisdb
+    url: jdbc:jtds:sqlserver://172.16.32.168:1433/thxyhisdb
+#    url: jdbc:jtds:sqlserver://172.16.32.179:1433/thxyhisdb
     hikari:
       username: sa
       password:
@@ -38,13 +38,13 @@ forest:
   log-response-status: false
 
 #正式环境
-#si-api-url: http://dms.hun.hsip.gov.cn/isp-api/powercsb/1101
-#si-access-key: 04eMGRg7beAO6vqwrZiLacV8Uy3jNn7QGDUcBO
-#si-secret-key: SK3Oip3a2R3NLz2xm58Mpmi69oFu96KrdKNRKglN
+si-api-url: http://dms.hun.hsip.gov.cn/isp-api/powercsb/1101
+si-access-key: 04eMGRg7beAO6vqwrZiLacV8Uy3jNn7QGDUcBO
+si-secret-key: SK3Oip3a2R3NLz2xm58Mpmi69oFu96KrdKNRKglN
 #web-his-url: http://172.16.32.160:8706
 
 #测试环境
-si-api-url: http://10.93.30.130:20001/isp-api/powercsb/1101
-si-access-key: Zgs5jfxaKb86XbCuUzLK9EhFjiQfHR1vydaPzp
-si-secret-key: SKT2ETMT3XkAYApqh79DCnN9ZjfbQEBMPU0GyLz9
+#si-api-url: http://10.93.30.130:20001/isp-api/powercsb/1101
+#si-access-key: Zgs5jfxaKb86XbCuUzLK9EhFjiQfHR1vydaPzp
+#si-secret-key: SKT2ETMT3XkAYApqh79DCnN9ZjfbQEBMPU0GyLz9
 web-his-url: http://172.16.30.26:8706