|
@@ -148,17 +148,18 @@ public interface DismissDao {
|
|
|
|
|
|
@Delete("delete zy_ledger_file_yb where inpatient_no=#{patNo} and admiss_times=#{times} and ledger_sn=#{ledgerSn}")
|
|
|
void deleteZyLedgerFileYb(@Param("patNo") String patNo,
|
|
|
- @Param("times") Integer times, @Param("ledgerSn") int ledgerSn);
|
|
|
+ @Param("times") Integer times,
|
|
|
+ @Param("ledgerSn") int ledgerSn);
|
|
|
|
|
|
@Insert("insert into zy_ledger_file_yb (inpatient_no,admiss_times,ledger_sn,total_cost,tczf,grzhzf,dbzf,xjzf," +
|
|
|
"full_self_pay,part_self_pay,hospital_pay) values (#{inpatientNo},#{admissTimes},#{ledgerSn},#{totalCost}," +
|
|
|
"#{tczf},#{grzhzf},#{dbzf},#{xjzf},#{fullSelfPay},#{partSelfPay},#{hospitalPay})")
|
|
|
int insertZyLedgerFileYb(MedinsSettleFee settleFee);
|
|
|
|
|
|
- @Update("update zy_ledger_file set charge_yb=1 where inpatient_no=#{patNo} and " +
|
|
|
- "admiss_times=#{times} and ledger_sn=#{ledgerSn}")
|
|
|
+ @Update("update zy_ledger_file set charge_yb=1 where inpatient_no=#{patNo} and admiss_times=#{times} and ledger_sn=#{ledgerSn}")
|
|
|
int beforeWriteReceiptTable(@Param("patNo") String patNo,
|
|
|
- @Param("times") Integer times, @Param("ledgerSn") int ledgerSn);
|
|
|
+ @Param("times") Integer times,
|
|
|
+ @Param("ledgerSn") int ledgerSn);
|
|
|
|
|
|
@Insert("insert into zy_receipt (inpatient_no,admiss_times,ledger_sn,receipt_sn,receipt_no," +
|
|
|
"account_date,date_1,date_2,ward,dept,print_date,responce_unit,op_id_code,total_charge," +
|
|
@@ -187,14 +188,15 @@ public interface DismissDao {
|
|
|
int updateZifeiCostStatus(MedinsSettleFee settleFee);
|
|
|
|
|
|
@Update("update zy_ledger_file set account_date=#{zjdzDatetime},settle_type='1',balance=0,last_balance=#{xjzf}, " +
|
|
|
- "settle=(deposit-#{xjzf}),ward_code=#{wardCode},dept_code=#{deptCode},op_id_code=#{staffId},charge_yb=0 " +
|
|
|
- "where inpatient_no=#{inpatientNo} and admiss_times=#{admissTimes} and ledger_sn=#{ledgerSn}")
|
|
|
+ "settle=(deposit-#{xjzf}),ward_code=#{wardCode},dept_code=#{deptCode},op_id_code=#{staffId},charge_yb=0," +
|
|
|
+ "fund_pay_sumamt=#{tczf},acct_pay=#{grzhzf} where inpatient_no=#{inpatientNo} and " +
|
|
|
+ "admiss_times=#{admissTimes} and ledger_sn=#{ledgerSn}")
|
|
|
int updateCostStatusWithoutInfant(MedinsSettleFee settleFee);
|
|
|
|
|
|
- @Update("update zy_ledger_file set account_date=#{zjdzDatetime},settle_type='1',balance=0, " +
|
|
|
- "last_balance=(total_charge-#{tczf}),settle=(deposit-total_charge+#{tczf}), " +
|
|
|
- "ward_code=#{wardCode},dept_code=#{deptCode},op_id_code=#{staffId}, " +
|
|
|
- "charge_yb=0 where inpatient_no=#{inpatientNo} and admiss_times=#{admissTimes} and ledger_sn=#{ledgerSn}")
|
|
|
+ @Update("update zy_ledger_file set account_date=#{zjdzDatetime},settle_type='1',balance=0,charge_yb=0, " +
|
|
|
+ "last_balance=(total_charge-#{tczf}-#{grzhzf}),settle=(deposit-total_charge+#{tczf}+#{grzhzf}), " +
|
|
|
+ "ward_code=#{wardCode},dept_code=#{deptCode},op_id_code=#{staffId},fund_pay_sumamt=#{tczf},acct_pay=#{grzhzf} " +
|
|
|
+ "where inpatient_no=#{inpatientNo} and admiss_times=#{admissTimes} and ledger_sn=#{ledgerSn}")
|
|
|
int updateCostStatusWithInfant(MedinsSettleFee settleFee);
|
|
|
|
|
|
@Update("update zy_detail_charge set charge_status=3 where charge_status=2 and " +
|
|
@@ -323,7 +325,8 @@ public interface DismissDao {
|
|
|
"charge13=#{map.013},charge14=#{map.014},charge15=#{map.015},charge16=#{map.016},charge17=#{map.017}, " +
|
|
|
"charge18=#{map.018},charge19=#{map.019},charge20=#{map.020},charge21=#{map.021},charge22=#{map.022}," +
|
|
|
"charge23=#{map.023},charge24=#{map.024},charge25=#{map.025},charge26=#{map.026},charge27=#{map.027}, " +
|
|
|
- "charge28=#{map.028},charge29=0,charge30=0 where inpatient_no>=#{patNo1} and inpatient_no<=#{patNo6} and admiss_times=#{times} ")
|
|
|
+ "charge28=#{map.028},charge29=0,charge30=0 where inpatient_no>=#{patNo1} and inpatient_no<=#{patNo6} and " +
|
|
|
+ "admiss_times=#{times} ")
|
|
|
void updateInfantfee(@Param("patNo1") String patNo1,
|
|
|
@Param("patNo6") String patNo6,
|
|
|
@Param("times") int times,
|