|
@@ -41,16 +41,16 @@ public interface DismissDao {
|
|
|
int getOrderList(@Param("inpatientNo") String inpatientNo, @Param("admissTimes") Integer admissTimes);
|
|
|
|
|
|
@Select("select ltrim(rtrim(str(act_order_no))) as actOrderNo,rtrim(order_name) as orderName," +
|
|
|
- "charge_date as chargeDate, rtrim(charge_code) as chargeCode,charge_fee=isnull(rtrim(charge_fee),'0'), " +
|
|
|
- "chargeName=isnull(rtrim(charge_name),''), frequCode=isnull(rtrim(frequ_code), '')," +
|
|
|
- "cxFlag=RTRIM(isnull(cx_flag,0)),drugSpecification=isnull(rtrim(drug_specification),'')," +
|
|
|
- "start_time,end_time,chargeAmount=isnull(charge_amount,0),page_no," +
|
|
|
- "charge_status,supplyCode=isnull((select rtrim(name) from view_zd_supply_type where code=supply_code),'')," +
|
|
|
- "physician=isnull((select rtrim(name) from a_employee_mi where code=physician), '')," +
|
|
|
- "enterOper=isnull((select rtrim(name) from a_employee_mi where code=enter_oper), '')," +
|
|
|
- "execUnit=isnull((select rtrim(name) from zd_unit_code where code=exec_unit), '')," +
|
|
|
- "order_code,wardCode=isnull((select rtrim(name) from zd_unit_code where code=ward_code), '')," +
|
|
|
- "group_no from zy_list where charge_status in ('5','6','8')")
|
|
|
+ "charge_date as chargeDate, rtrim(charge_code) as chargeCode,charge_fee=rtrim(charge_fee), " +
|
|
|
+ "chargeName=rtrim(charge_name), frequCode=rtrim(frequ_code)," +
|
|
|
+ "cxFlag=cx_flag,drugSpecification=rtrim(drug_specification)," +
|
|
|
+ "start_time,end_time,chargeAmount=charge_amount,page_no," +
|
|
|
+ "charge_status,supplyCode=(select rtrim(name) from view_zd_supply_type where code=supply_code)," +
|
|
|
+ "physician=(select rtrim(name) from a_employee_mi where code=physician)," +
|
|
|
+ "enterOper=(select rtrim(name) from a_employee_mi where code=enter_oper)," +
|
|
|
+ "execUnit=(select rtrim(name) from zd_unit_code where code=exec_unit)," +
|
|
|
+ "wardName=(select rtrim(name) from zd_unit_code where code=ward_code)," +
|
|
|
+ "order_code, group_no from zy_list where charge_status in ('5','6','8')")
|
|
|
List<ActOrderDetail> getActOrderDetail();
|
|
|
|
|
|
@Select("select count(1) from zy_detail_charge where inpatient_no=#{inpatientNo} and " +
|