|
@@ -190,8 +190,8 @@ public interface DismissDao {
|
|
|
|
|
|
@Update("update zy_ledger_file set account_date=#{zjdzDatetime},settle_type='1',balance=0,dept_code=#{deptCode}," +
|
|
|
"last_balance=total_charge,settle=deposit-total_charge,ward_code=#{wardCode},op_id_code=#{staffId}," +
|
|
|
- "responce_type='01',charge_yb=0,fund_pay_sumamt=0,acct_pay=0 from zy_ledger_file " +
|
|
|
- "where inpatient_no=#{inpatientNo} and admiss_times=#{admissTimes} and ledger_sn=#{ledgerSn}")
|
|
|
+ "charge_yb=0,fund_pay_sumamt=0,acct_pay=0 from zy_ledger_file where " +
|
|
|
+ "inpatient_no=#{inpatientNo} and admiss_times=#{admissTimes} and ledger_sn=#{ledgerSn}")
|
|
|
int updateZifeiCostStatus(MedinsSettleFee settleFee);
|
|
|
|
|
|
@Update("update zy_ledger_file set account_date=#{zjdzDatetime},settle_type='1',balance=0,last_balance=#{xjzf}, " +
|
|
@@ -322,8 +322,8 @@ public interface DismissDao {
|
|
|
@Param("lastSn") int lastSn,
|
|
|
@Param("zjdzDate") Date zjdzDate);
|
|
|
|
|
|
- @Update("update zy_actpatient set responce_type='01', visit_type='01', yb_type='', treat_type=''," +
|
|
|
- "yb_register_date=#{date} where inpatient_no=#{patNo} and admiss_times=#{times}")
|
|
|
+ @Update("update zy_actpatient set yb_register_date=#{date} " +
|
|
|
+ "where inpatient_no=#{patNo} and admiss_times=#{times}")
|
|
|
void clearMedinsInfo(@Param("patNo") String patNo, @Param("times") Integer times, @Param("date") Date date);
|
|
|
|
|
|
@Select("select rtrim(hic_no_new) from a_patient_mi where inpatient_no=#{zyh}")
|
|
@@ -379,11 +379,8 @@ public interface DismissDao {
|
|
|
@Select("select code from zy_bill_item")
|
|
|
List<String> selectBillCodes();
|
|
|
|
|
|
- @Select("select code from zy_zd_responce_type where med_type=(select med_type from t_si_pat_info " +
|
|
|
- "where pat_no=#{patNo} and times=#{times} and ledger_sn=#{ledgerSn} and isnull(mdtrt_id,'')!='')")
|
|
|
- String selectResponceType(@Param("patNo") String patNo,
|
|
|
- @Param("times") int times,
|
|
|
- @Param("ledgerSn") int ledgerSn);
|
|
|
+ @Select("select responce_type from zy_actpatient where inpatient_no=#{patNo} ")
|
|
|
+ String selectResponceType(@Param("patNo") String patNo);
|
|
|
|
|
|
@Select("select cast(isnull(sum(depo_amount),0) as varchar(16)) from zy_deposit_file where " +
|
|
|
"inpatient_no=#{patNo} and admiss_times=#{times} and ledger_sn=#{ledgerSn} and " +
|
|
@@ -408,7 +405,7 @@ public interface DismissDao {
|
|
|
@Param("restype") String restype,
|
|
|
@Param("map") Map<String, String> map);
|
|
|
|
|
|
- @Update("update zy_actpatient set balance=#{balance},responce_type=#{restype}, total_charge=#{totalCost}, " +
|
|
|
+ @Update("update zy_actpatient set balance=#{balance}, total_charge=#{totalCost}, " +
|
|
|
"charge1=#{map.001},charge2=#{map.002}, charge3=#{map.003},charge4=#{map.004},charge5=#{map.005}, " +
|
|
|
"charge6=#{map.006},charge7=#{map.007}, charge8=#{map.008},charge9=#{map.009},charge10=#{map.010}, " +
|
|
|
"charge11=#{map.011},charge12=#{map.012}, charge13=#{map.013},charge14=#{map.014},charge15=#{map.015}, " +
|
|
@@ -418,7 +415,6 @@ public interface DismissDao {
|
|
|
void updateZyActpatientCharges(@Param("patNo") String patNo,
|
|
|
@Param("totalCost") String totalCost,
|
|
|
@Param("balance") String balance,
|
|
|
- @Param("restype") String restype,
|
|
|
@Param("map") Map<String, String> map);
|
|
|
|
|
|
@Select("select isnull(sum(charge_fee),0) from zy_detail_charge where inpatient_no=#{patNo} " +
|