|
@@ -40,7 +40,7 @@ public interface DrgDipDao {
|
|
|
|
|
|
@Select("select * from " +
|
|
|
"(SELECT ROW_NUMBER() OVER(ORDER BY code) AS idx, " +
|
|
|
- "rtrim(code) as itemListId, " +
|
|
|
+ "rtrim(code) as itemsListId, " +
|
|
|
"rtrim(national_code) as hospListId " +
|
|
|
"from zd_charge_item with(nolock) where national_status=1) t where t.idx>#{page}*#{size} " +
|
|
|
"and t.idx<=(#{page}+1)*#{size}")
|
|
@@ -124,7 +124,7 @@ public interface DrgDipDao {
|
|
|
"flag=case when a.revoked=0 then 0 else 2 end " +
|
|
|
"from t_si_setlinfo a with(nolock), mz_charge_detail b with(nolock) " +
|
|
|
"where a.setl_id=#{setlId} and a.pat_no=b.patient_id " +
|
|
|
- "and a.times=b.times and b.bill_item_code!='TC' b.charge_item_code!='BILL99'")
|
|
|
+ "and a.times=b.times and b.bill_item_code!='TC' and b.charge_item_code!='BILL99'")
|
|
|
List<HisOutpCharge> selectHisOutpCharge(String setlId);
|
|
|
|
|
|
@Select("select visitId=rtrim(inpatient_no)+'_'+cast(admiss_times as varchar)+'_'+cast(times_billed as varchar) " +
|