Jelajahi Sumber

补充管床医生

lighter 2 tahun lalu
induk
melakukan
f4490d5052

+ 6 - 0
src/main/java/thyyxxk/sizyfeeoprnsystm/dao/SiZyDao.java

@@ -48,6 +48,12 @@ public interface SiZyDao {
                     @Param("times") int times,
                     @Param("ledgerSn") int ledgerSn);
 
+    @Update("update zy_detail_charge set refer_physician=(select refer_physician from zy_actpatient t " +
+            "where t.inpatient_no=#{patNo}) where inpatient_no=#{patNo} and admiss_times=#{times} " +
+            "and nullif(refer_physician,'') is null and nullif(doctor_code,'') is null")
+    void fillReferPhysician(@Param("patNo") String patNo,
+                            @Param("times") int times);
+
     /**
      * 获取患者医保基本信息
      *

+ 1 - 0
src/main/java/thyyxxk/sizyfeeoprnsystm/service/SiZyFeeService.java

@@ -99,6 +99,7 @@ public class SiZyFeeService {
         }
         beforeUpload(o);
         zyDao.hisRecount(o.getInpatientNo(), o.getAdmissTimes(), o.getLedgerSn());
+        zyDao.fillReferPhysician(o.getInpatientNo(), o.getAdmissTimes());
         ZyPatientInfo p = zyDao.selectPatientInfo(o.getInpatientNo());
         p.setSid(o.getSid());
         p.setStaffId(o.getStaffId());

+ 1 - 2
src/main/resources/application-prod.yml

@@ -27,8 +27,7 @@ mybatis:
   configuration:
     map-underscore-to-camel-case: true
 
-#si-api-url: http://mbs.hun.hsip.gov.cn:20001/isp-api/powercsb/1101
-si-api-url: http://10.93.28.228/isp-api/powercsb/1101
+si-api-url: http://dms.hun.hsip.gov.cn/isp-api/powercsb/1101
 si-access-key: 04eMGRg7beAO6vqwrZiLacV8Uy3jNn7QGDUcBO
 si-secret-key: SK3Oip3a2R3NLz2xm58Mpmi69oFu96KrdKNRKglN
 upld-notify-url: http://172.16.32.160:8706/socketMessage

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

@@ -34,7 +34,7 @@ mybatis:
   configuration:
     map-underscore-to-camel-case: true
 
-si-api-url: http://mbs.hun.hsip.gov.cn:20001/isp-api/powercsb/1101
+si-api-url: http://dms.hun.hsip.gov.cn/isp-api/powercsb/1101
 si-access-key: 04eMGRg7beAO6vqwrZiLacV8Uy3jNn7QGDUcBO
 si-secret-key: SK3Oip3a2R3NLz2xm58Mpmi69oFu96KrdKNRKglN
 upld-notify-url: http://localhost:8706/socketMessage