|
@@ -56,9 +56,12 @@ public interface DismissDao {
|
|
|
"admiss_times=#{times} and ledger_sn>=1 AND charge_fee <> 0 and charge_status ='1'")
|
|
|
int hasNotAccounted(@Param("patNo") String patNo, @Param("times") Integer times);
|
|
|
|
|
|
- @Select("SELECT count(1) FROM yp_zy_patient WHERE inpatient_no=#{patNo} AND " +
|
|
|
+ @Select("SELECT message = N'药单号:' + CAST(page_no as VARCHAR) + " +
|
|
|
+ " N',药品名称:' + + (select top 1 name from yp_zd_dict where charge_code = code) + " +
|
|
|
+ " N',医嘱号:' + CAST(CAST(act_order_no AS DECIMAL) AS VARCHAR(20)) " +
|
|
|
+ " FROM yp_zy_patient WHERE inpatient_no=#{patNo} AND " +
|
|
|
"admiss_times=#{times} AND amount <> 0 and acct_sign <> '2' ")
|
|
|
- int hasUnreceivedDrugList(@Param("patNo") String patNo, @Param("times") Integer times);
|
|
|
+ List<String> hasUnreceivedDrugList(@Param("patNo") String patNo, @Param("times") Integer times);
|
|
|
|
|
|
@Select("SELECT count(1) FROM yz_zy_patient_fee WHERE inpatient_no=#{patNo} " +
|
|
|
"AND admiss_times=#{times} and charge_date<=#{actOrderDisDate} AND charge_fee <> 0 " +
|
|
@@ -125,9 +128,9 @@ public interface DismissDao {
|
|
|
"and admiss_times=#{times} and ledger_sn=#{ledgerSn} and isnull(charge_status, '1') <> '1') - " +
|
|
|
"(select isnull(total_charge,0) from zy_ledger_file " +
|
|
|
"where inpatient_no=#{patNo} and admiss_times=#{times} and ledger_sn=#{ledgerSn})")
|
|
|
- BigDecimal getFeeOffset(@Param("patNo") String patNo,
|
|
|
- @Param("times") Integer times,
|
|
|
- @Param("ledgerSn") int ledgerSn);
|
|
|
+ BigDecimal getFeeOffset(@Param("patNo") String patNo,
|
|
|
+ @Param("times") Integer times,
|
|
|
+ @Param("ledgerSn") int ledgerSn);
|
|
|
|
|
|
@Select("select isnull(sum(charge_fee),0) from zy_detail_charge where inpatient_no=#{patNo} and " +
|
|
|
"admiss_times=#{times} and ledger_sn=#{ledgerSn} and isnull(charge_status, '1') <> '1' and " +
|