|
|
@@ -518,6 +518,10 @@ public interface SiQueryDao {
|
|
|
@Select("select name,code='' from t_si_admdvs where code=#{code}")
|
|
|
CodeName selectAdmdvsName(@Param("code") String code);
|
|
|
|
|
|
+ @Select("select count(1) from zy_ledger_file where inpatient_no=#{patNo} and admiss_times=#{times} and ledger_sn>0 ")
|
|
|
+ Integer selectLedgerCount(@Param("patNo") String patNo,
|
|
|
+ @Param("times") int times);
|
|
|
+
|
|
|
@Select("select max(account_date) from zy_ledger_file where inpatient_no=#{patNo} and admiss_times=#{times} and ledger_sn>0")
|
|
|
Date selectMaxLedgerAccountDate(@Param("patNo") String patNo,
|
|
|
@Param("times") int times);
|