|
@@ -12,30 +12,27 @@ import java.util.List;
|
|
|
*/
|
|
|
@Mapper
|
|
|
public interface SiSettleApplyDao {
|
|
|
+
|
|
|
+ @Select("select isnull(total_charge,0) from zy_ledger_file where inpatient_no=#{patNo} and admiss_times=#{times} and ledger_sn=#{ledgerSn}")
|
|
|
+ int selectTotalCharge(String patNo, int times, int ledgerSn);
|
|
|
+
|
|
|
@Select("select mdtrt_id from t_si_pat_info with(nolock) where pat_no=#{patNo} and times=#{times} and ledger_sn=#{ledger}")
|
|
|
- String selectMdtrtId(@Param("patNo") String patNo,
|
|
|
- @Param("times") int times,
|
|
|
- @Param("ledger") int ledger);
|
|
|
+ String selectMdtrtId(String patNo, int times, int ledger);
|
|
|
|
|
|
@Select("select gend from t_si_pat_info with(nolock) where pat_no=#{patNo} and times=#{times} and ledger_sn=#{ledger}")
|
|
|
- String selectYbGender(@Param("patNo") String patNo,
|
|
|
- @Param("times") int times,
|
|
|
- @Param("ledger") int ledger);
|
|
|
+ String selectYbGender(String patNo, int times, int ledger);
|
|
|
|
|
|
@Select("select start_time from ${table} with(nolock) where inpatient_no=#{patNo} and admiss_times=#{times} " +
|
|
|
"and status_flag > '1' and isnull(group_no, '00')='00' and order_code in ('06026','06053','05973') and status_flag <> '6' ")
|
|
|
- Date selectActOrderDisDate(@Param("table") String table, @Param("patNo") String patNo, @Param("times") Integer times);
|
|
|
+ Date selectActOrderDisDate(String table, String patNo, Integer times);
|
|
|
|
|
|
@Select("select start_time from ${table} with(nolock) where inpatient_no=#{patNo} and admiss_times=#{times} " +
|
|
|
"and status_flag > '1' and isnull(group_no, '00')='00' and order_code in ('06026','06053','05973') and status_flag <> '6' ")
|
|
|
- List<Date> selectActOrderDisDate2(@Param("table") String table, @Param("patNo") String patNo, @Param("times") Integer times);
|
|
|
+ List<Date> selectActOrderDisDate2(String table, String patNo, Integer times);
|
|
|
|
|
|
@Select("select top 1 status,handle_comment,type,settle_datetime,acct_used_flag,death_flag,sort_no from t_si_settle_apply " +
|
|
|
"where pat_no=#{patNo} and times=#{times} and ledger_sn=#{ledger} and type=#{type} order by sort_no desc")
|
|
|
- SiSettleApply selectSettleApply(@Param("patNo") String patNo,
|
|
|
- @Param("times") int times,
|
|
|
- @Param("ledger") int ledger,
|
|
|
- @Param("type") int type);
|
|
|
+ SiSettleApply selectSettleApply(String patNo, int times, int ledger, int type);
|
|
|
|
|
|
@Insert("insert into t_si_settle_apply " +
|
|
|
"(pat_no,times,ledger_sn,input_staff,input_comment,input_datetime,status,type," +
|
|
@@ -75,8 +72,8 @@ public interface SiSettleApplyDao {
|
|
|
SiSettleApply selectTotalChargeAgain(SiSettleApply apply);
|
|
|
|
|
|
@Select("select zyh,zycs,ssxh,ssbm,ssmc,ssrq,ssys,sszs1,sszs2,mzys from batj_ba4 where zyh=#{patNo} and zycs=#{times} order by ssxh")
|
|
|
- List<ZyDisYbSrgry> selectSurgeries(@Param("patNo") String patNo,
|
|
|
- @Param("times") int times);
|
|
|
+ List<ZyDisYbSrgry> selectSurgeries(String patNo,
|
|
|
+ int times);
|
|
|
|
|
|
@Update("update t_si_settle_apply set status=#{status},handle_staff=#{handleStaff}, " +
|
|
|
"handle_comment=#{handleComment},handle_datetime=getdate() where pat_no=#{patNo} " +
|