浏览代码

增加住院收费

hurugang 4 年之前
父节点
当前提交
c57af650b0

+ 10 - 0
src/main/java/cn/hnthyy/thmz/mapper/his/ZyDepositFileMapper.java

@@ -1,6 +1,7 @@
 package cn.hnthyy.thmz.mapper.his;
 
 import cn.hnthyy.thmz.entity.his.ZyDepositFile;
+import org.apache.ibatis.annotations.Insert;
 import org.apache.ibatis.annotations.Select;
 
 import java.util.List;
@@ -32,4 +33,13 @@ public interface ZyDepositFileMapper {
             "          admiss_times = #{admissTimes}   ")
     List<ZyDepositFile> selectZyDepositFileBYInpatientNoAndTimes(ZyDepositFile zyDepositFile);
 
+    /**
+     * 入库住院收费记录
+     * @param zyDepositFile
+     * @return
+     */
+    @Insert("insert into zy_deposit_file ( inpatient_no , admiss_times , depo_times , depo_date , op_id_code , depo_amount , depo_type , status , cheque_no , printed , receipt_no , ledger_sn , window_no , deleted ) values" +
+            " ( #{inpatientNo} , #{admissTimes} , #{depoTimes} , #{depoDate} , #{opIdCode} , #{depoAmount} , #{depoType} , #{status} , #{chequeNo} , #{printed} , #{receiptNo} , #{ledgerSn} , #{windowNo}, #{deleted} ) ")
+    int insetZyDepositFile(ZyDepositFile zyDepositFile);
+
 }

+ 11 - 0
src/main/java/cn/hnthyy/thmz/mapper/his/zyLedgerFileMapper.java

@@ -4,6 +4,7 @@ import cn.hnthyy.thmz.entity.his.ZyLedgerFile;
 import org.apache.ibatis.annotations.Insert;
 import org.apache.ibatis.annotations.Param;
 import org.apache.ibatis.annotations.Select;
+import org.apache.ibatis.annotations.Update;
 
 import java.util.List;
 
@@ -33,4 +34,14 @@ public interface zyLedgerFileMapper {
             "#{charge18}, #{charge19}, #{charge20} , #{charge21} , #{charge22} , #{charge23} , #{charge24} , #{charge25} , #{charge26} ,#{charge27} ,#{charge28} , #{charge29} , #{charge30} ," +
             " #{settle} ,#{lastBalance}, #{settleType} , #{deptCode} , #{wardCode} , #{deptX} , #{wardX} , #{accountDate} , #{cashDate} , #{cashId} , #{dcountNo} , #{dcountDate} , #{zySerialNo} ) ")
     int insetZyLedgerFile(ZyLedgerFile zyLedgerFile);
+
+    /**
+     * 更新金额
+     * @param zyLedgerFile
+     * @return
+     */
+    @Update("update zy_ledger_file SET deposit =#{deposit} , balance =#{balance} WHERE inpatient_no =#{inpatientNo} AND admiss_times =#{admissTimes} AND ledger_sn =#{ledgerSn} ")
+    int updateZyLedgerFile(ZyLedgerFile zyLedgerFile);
+
+
 }