Browse Source

生育门诊添加生育类别

lighter 1 ngày trước cách đây
mục cha
commit
368debc88c

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

@@ -62,15 +62,12 @@ public interface SiMzDao {
             "pat_no=#{patNo} and times=#{times} and ledger_sn=#{ledgerSn}")
     String selectAdmdvs(String patNo, int times, int ledgerSn);
 
-    @Update("update t_si_pat_info set insuplc_admdvs=#{insuplcAdmdvs}," +
+    @Update("update t_si_pat_info set insuplc_admdvs=#{insuplcAdmdvs},med_type=#{medType},matn_type=#{matnType}," +
             "psn_type=#{psnType},emp_name=#{empName},insuplc_admdvs_name=#{insuplcAdmdvsName}," +
             "mdtrt_id=#{mdtrtId},insutype=#{insutype},visit_datetime=#{visitDate},balc=#{balc} " +
             "where pat_no=#{patNo} and times=#{times} ")
     void afterRegistrtn(MzPatientInfo p);
 
-    @Update("update t_si_pat_info set med_type=#{medtype} where pat_no=#{patNo} and times=#{times}")
-    void updateMedtype(String medtype, String patNo, int times);
-
     @Select("select feedetlSn=(patient_id + '_' + cast(times as varchar) + '_' + cast(receipt_no as varchar) + '_' + " +
             "cast(order_no as varchar) + '_' + cast(item_no as varchar)), " +
             "receipt_no as rxno, input_date as feeOcurTime, " +

+ 2 - 0
src/main/java/thyyxxk/simzfeeoprnsystm/pojo/MzPatientInfo.java

@@ -26,6 +26,8 @@ public class MzPatientInfo {
     private String empName;
     private String mdtrtId;
     private String medType;
+
+    private String matnType;
     private String psnType;
     private Integer acctUsedFlag;
     private Date visitDate;

+ 5 - 0
src/main/java/thyyxxk/simzfeeoprnsystm/pojo/SiPatInfo.java

@@ -75,6 +75,11 @@ public class SiPatInfo implements Serializable {
 	 */
 	private String medType;
 
+	/**
+	 * 生育类别
+	 * */
+	private String matnType;
+
 	/**
 	 * 参保地医保区划,可通过【1101】人员信息获取交易取得
 	 */

+ 1 - 3
src/main/java/thyyxxk/simzfeeoprnsystm/service/SiMzFeeService.java

@@ -134,9 +134,6 @@ public class SiMzFeeService {
                     "有HIS未缴费的医保结算,无法办理医保登记。请先完成门诊缴费再重新办理。");
         }
 
-        if (StringUtil.notBlank(p.getMedType())) {
-            mzDao.updateMedtype(p.getMedType(), p.getPatNo(), p.getTimes());
-        }
         if (readCardBizType == ReadCardBizType.REGISTRATION) {
             MdtrtCertType mdtrtCertType = MdtrtCertType.getByLabel(p.getMdtrtCertType());
             regstrtn.setMdtrtCertType(mdtrtCertType.getCode());
@@ -300,6 +297,7 @@ public class SiMzFeeService {
         mdtrtinfo.put("main_cond_dscr", "");
         mdtrtinfo.put("dise_codg", spcChrDiseAcct.getOpspDiseCode());
         mdtrtinfo.put("dise_name", spcChrDiseAcct.getOpspDiseName());
+        mdtrtinfo.put("matn_type", siPatInfo.getMatnType());
         mdtrtinfo.put("birctrl_type", "");
         mdtrtinfo.put("birctrl_matn_date", "");
         mdtrtinfo.put("exp_content", spcChrDiseAcct.getExpContent());