|
@@ -68,17 +68,16 @@ public interface DismissDao {
|
|
|
@Param("times") Integer times,
|
|
|
@Param("actOrderDisDate") Date actOrderDisDate);
|
|
|
|
|
|
- @Select("SELECT count(1) FROM yz_yp_zy_order ( nolock ) WHERE inpatient_no=#{patNo} " +
|
|
|
- "AND admiss_times=#{times} AND ( amount > 0 or ( amount < 0 and " +
|
|
|
- "drug_class <> 'd' ) ) and status_flag='1' and page_no=0")
|
|
|
+ @Select("select count(1) from yz_yp_zy_order with(nolock) where inpatient_no=#{patNo} " +
|
|
|
+ "and admiss_times=#{times} and (amount>0 or (amount<0 and drug_class!='d')) " +
|
|
|
+ "and status_flag='1' and page_no=0")
|
|
|
int hasUnSubmitDrugList(@Param("patNo") String patNo, @Param("times") Integer times);
|
|
|
|
|
|
- @Select("SELECT count(1) FROM yz_yp_zy_order ( nolock ) WHERE inpatient_no=#{patNo} " +
|
|
|
- "AND admiss_times=#{times} AND ( amount > 0 or ( amount < 0 and " +
|
|
|
- "drug_class <> 'd' ) ) and status_flag='1' and ( case when amount > 0 then " +
|
|
|
- "page_no else page_no_ty end > 0 ) ")
|
|
|
- int hasUntreatedDrugWithdrawalOrder(@Param("patNo") String patNo,
|
|
|
- @Param("times") Integer times);
|
|
|
+ @Select("select b.group_name,pageNo=cast(a.page_no as decimal),a.page_no_ty " +
|
|
|
+ "from yz_yp_zy_order a with(nolock),yp_zd_group_name b with(nolock) where a.inpatient_no=#{patNo} " +
|
|
|
+ "and a.admiss_times=#{times} and (a.amount>0 or (a.amount<0 and a.drug_class!='d')) and " +
|
|
|
+ "(case when a.amount>0 then a.page_no else a.page_no_ty end>0) and a.group_no=b.group_no and a.status_flag='1'")
|
|
|
+ List<IllegalFee> hasUntreatedDrugOrder(@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 " +
|
|
@@ -93,7 +92,7 @@ public interface DismissDao {
|
|
|
"sum(a.charge_fee) as code,a.charge_code_mx as chargeCode,b.name from zy_detail_charge a,yp_zd_dict b " +
|
|
|
"where a.inpatient_no=#{patNo} and a.admiss_times=#{times} and a.charge_code_mx=b.code " +
|
|
|
"group by a.charge_code_mx,b.name ) as x where x.code<0")
|
|
|
- List<NegativeFee> feeOrderNegative(@Param("patNo") String patNo, @Param("times") Integer times);
|
|
|
+ List<IllegalFee> feeOrderNegative(@Param("patNo") String patNo, @Param("times") Integer times);
|
|
|
|
|
|
@Delete("delete zy_tmp_settle_select_detail where inpatient_no=#{patNo} and admiss_times=#{times}")
|
|
|
void deleteTemporaryTable(@Param("patNo") String patNo, @Param("times") Integer times);
|