|
@@ -50,6 +50,20 @@ public interface AdvanceUploadDao {
|
|
|
@Param("admissTimes") Integer admissTimes,
|
|
|
@Param("ledgerSn") Integer ledgerSn);
|
|
|
|
|
|
+ @Select("select sum(charge_fee) from zy_detail_charge where " +
|
|
|
+ "inpatient_no=#{inpatientNo} and admiss_times=#{admissTimes} " +
|
|
|
+ "and ledger_sn=#{ledgerSn} and trans_flag_yb=2")
|
|
|
+ Integer selectOffsetFeeSum(@Param("inpatientNo") String inpatientNo,
|
|
|
+ @Param("admissTimes") Integer admissTimes,
|
|
|
+ @Param("ledgerSn") Integer ledgerSn);
|
|
|
+
|
|
|
+ @Update("update zy_detail_charge set trans_flag_yb=0 where " +
|
|
|
+ "inpatient_no=#{inpatientNo} and admiss_times=#{admissTimes} " +
|
|
|
+ "and ledger_sn=#{ledgerSn} and trans_flag_yb=2")
|
|
|
+ void rollbackOffsetFees(@Param("inpatientNo") String inpatientNo,
|
|
|
+ @Param("admissTimes") Integer admissTimes,
|
|
|
+ @Param("ledgerSn") Integer ledgerSn);
|
|
|
+
|
|
|
@Select("select detail_sn,rtrim(charge_code_mx) as chargeCodeMx,charge_fee from zy_detail_charge " +
|
|
|
"where inpatient_no=#{zyh} and admiss_times=#{zycs} and ledger_sn=#{sn} " +
|
|
|
"and isnull(infant_flag,0)!=1 and isnull(trans_flag_yb,0) not in (1,2)")
|