|
@@ -1,9 +1,6 @@
|
|
|
package thyyxxk.webserver.dao.his.markmtfees;
|
|
|
|
|
|
-import org.apache.ibatis.annotations.Insert;
|
|
|
-import org.apache.ibatis.annotations.Mapper;
|
|
|
-import org.apache.ibatis.annotations.Param;
|
|
|
-import org.apache.ibatis.annotations.Select;
|
|
|
+import org.apache.ibatis.annotations.*;
|
|
|
import thyyxxk.webserver.pojo.markmtfees.*;
|
|
|
|
|
|
import java.util.List;
|
|
@@ -57,12 +54,16 @@ public interface MarkMtFeesDao {
|
|
|
|
|
|
@Insert("insert into t_mt_receipt (patient_id, times, receipt_no, order_no, item_no, his_item_name, " +
|
|
|
"his_item_code, fee_date, input_date, medi_item_type, charge_fee, price, quantity, drug_win, " +
|
|
|
- "input_staff, input_man, serial_no, yb_trans_flag) values (" +
|
|
|
+ "input_staff, input_man, serial_no, yb_trans_flag, charge_type) values (" +
|
|
|
"#{patientId},#{times},#{receiptNo},#{orderNo},#{itemNo},#{drugName},#{chargeItemCode}," +
|
|
|
"#{priceTime},getdate(),#{billItemCode},#{chargeFee},#{unitPrice},#{quantity},#{drugWin}," +
|
|
|
- "#{doctorCode},#{doctorName},#{serialNo},0)")
|
|
|
+ "#{doctorCode},#{doctorName},#{serialNo},0, #{groupNo})")
|
|
|
void insertBatchedMtFeeInfo(MzReceipt param);
|
|
|
|
|
|
+ @Delete("delete from t_mt_receipt where patient_id=#{patientId} and times=#{times} and " +
|
|
|
+ "receipt_no=#{receiptNo} and order_no=#{orderNo}")
|
|
|
+ void deleteMtFees(OrderNo param);
|
|
|
+
|
|
|
@Select("SELECT a.patient_id,a.social_no,a.name,a.lv_date,a.sex,a.response_type,a.charge_type,a.times,a.age," +
|
|
|
"a.birth_day,responce_name=b.name,address=a.adress,phone_no=a.phone_no FROM " +
|
|
|
"mz_patient_mi a,mz_zd_responce_type b,mz_visit_table c WHERE a.patient_id=#{patientId} and " +
|
|
@@ -89,7 +90,7 @@ public interface MarkMtFeesDao {
|
|
|
"a.charge_bill_code,a.quantity,a.unit_price,a.orig_price,a.pay_mark,a.serial,a.serial_no,a.charge_date," +
|
|
|
"a.group_no,specification=b.specification,a.confirm_flag,a.print_flag,a.exec_dept,a.warn_dept,a.drug_win," +
|
|
|
"a.supply_code,a.drug_quan,a.drug_unit,a.frequency,a.price_id,a.price_time,dosage=b.dosage,a.windows_no_yf," +
|
|
|
- "a.bill_item_code,doctor_code,cash_id,a.name,responce_type,a.tc_no,tc_name," +
|
|
|
+ "a.bill_item_code,doctor_code,cash_id,a.name,responce_type,a.tc_no,tc_name,a.instruction_text," +
|
|
|
"doctorName=(select rtrim(name) from a_employee_mi where code=doctor_code)," +
|
|
|
"del_flag=case when isnull(b.del_flag,'0')='1' or isnull(e.visible_flag_mz,'0')='1' then '1' else '0' end " +
|
|
|
"FROM mz_charge_detail a,yp_zd_dict b,yp_base_yf e,mz_zd_supply_type c WHERE a.charge_item_code=b.code and " +
|
|
@@ -103,7 +104,7 @@ public interface MarkMtFeesDao {
|
|
|
"specification=case when a.bill_item_code='TC' then '处方套餐' else b.charge_unit end," +
|
|
|
"a.confirm_flag,a.print_flag,a.exec_dept,a.warn_dept,a.drug_win,a.supply_code,a.drug_quan,a.drug_unit," +
|
|
|
"a.frequency,a.price_id,a.price_time,dosage=char(4),a.windows_no_yf,a.bill_item_code,doctor_code,cash_id," +
|
|
|
- "a.name,responce_type,tc_no,tc_name," +
|
|
|
+ "a.name,responce_type,tc_no,tc_name,a.instruction_text," +
|
|
|
"doctorName=(select rtrim(name) from a_employee_mi where code=doctor_code)," +
|
|
|
"del_flag=isnull(b.del_flag,'0') FROM mz_charge_detail a,zd_charge_item " +
|
|
|
"b,mz_zd_supply_type c WHERE a.charge_item_code*=b.code and a.patient_id=#{patientId} AND a.times=#{times} and " +
|