瀏覽代碼

住院证gcp优化

lihong 1 年之前
父節點
當前提交
792c76d03b

+ 5 - 0
src/main/java/cn/hnthyy/thmz/common/Constants.java

@@ -176,6 +176,11 @@ public class Constants {
      * 本院记账付款方式名称
      */
     public static final String BYJZ_NAME = "本院记账";
+    /**
+     * GCP实验 身份code
+     */
+    public static final String GCP_RESPONCE_TYPE_CODE = "a0";
+
     /**
      * 银行卡缴费
      */

+ 1 - 1
src/main/java/cn/hnthyy/thmz/service/impl/his/mz/MzChargeDetailServiceImpl.java

@@ -2692,7 +2692,7 @@ public class MzChargeDetailServiceImpl implements MzChargeDetailService {
             mzZyReq.setVisitDate(now);
             mzZyReq.setName(mzPatientMi.getName());
             mzZyReq.setPatientId(mzPatientMi.getPatientId());
-            mzZyReq.setResponceType(mzPatientMi.getResponseType());
+            mzZyReq.setResponceType(Convert.toInt(NumberEnum.FOUR.getCode()).equals(mzZyReq.getRouteOfAdmission()) ? Constants.GCP_RESPONCE_TYPE_CODE: mzPatientMi.getResponseType());
         }
 
         //保存门诊手术入库

+ 4 - 1
src/main/java/cn/hnthyy/thmz/service/impl/his/mz/MzZyReqServiceImpl.java

@@ -2,13 +2,16 @@ package cn.hnthyy.thmz.service.impl.his.mz;
 
 import cn.hnthyy.thmz.Utils.AssertUtil;
 import cn.hnthyy.thmz.Utils.DateUtil;
+import cn.hnthyy.thmz.common.Constants;
 import cn.hnthyy.thmz.entity.his.mz.*;
 import cn.hnthyy.thmz.entity.his.zy.ZyBedPreMsg;
+import cn.hnthyy.thmz.enums.NumberEnum;
 import cn.hnthyy.thmz.enums.ZyReqEnum;
 import cn.hnthyy.thmz.mapper.his.mz.*;
 import cn.hnthyy.thmz.service.his.mz.MzZyReqService;
 import cn.hnthyy.thmz.service.thmz.HaiCiAdapterService;
 import cn.hutool.core.collection.CollUtil;
+import cn.hutool.core.convert.Convert;
 import org.springframework.beans.factory.annotation.Autowired;
 import org.springframework.stereotype.Service;
 
@@ -154,7 +157,7 @@ public class MzZyReqServiceImpl implements MzZyReqService {
         mzZyReq.setVisitDate(new Date());
         mzZyReq.setName(mzPatientMi.getName());
         mzZyReq.setPatientId(mzPatientMi.getPatientId());
-        mzZyReq.setResponceType(mzPatientMi.getResponseType());
+        mzZyReq.setResponceType(Convert.toInt(NumberEnum.FOUR.getCode()).equals(mzZyReq.getRouteOfAdmission()) ? Constants.GCP_RESPONCE_TYPE_CODE : mzPatientMi.getResponseType());
         List<MzZyReq> zyReqList= mzZyReqMapper.selectMzZyReqByDoctorCode(mzZyReq.getPatientId(),mzZyReq.getDoctorCode());
         if(CollUtil.isNotEmpty(zyReqList)){
             mzZyReqMapper.deleteMzZyReqByDoctorCode(mzZyReq.getPatientId(),mzZyReq.getDoctorCode());