|
|
@@ -79,15 +79,20 @@ public interface SiMzDao {
|
|
|
@Delete("delete from t_mt_receipt where patient_id=#{patNo} and times=#{times} and receipt_no=#{receiptNo}")
|
|
|
void deleteCertainReceipt(String patNo, int times, int receiptNo);
|
|
|
|
|
|
- @Insert("insert into t_mt_receipt (patient_id,times,receipt_no,order_no,item_no, " +
|
|
|
+ @Insert("<script>" +
|
|
|
+ "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,charge_type, " +
|
|
|
- "bill_item_code,drug_unit,hosp_appr_flag) values (" +
|
|
|
- "#{patientId},#{times},#{receiptNo},#{orderNo},#{itemNo},#{drugName}, " +
|
|
|
- "#{chargeItemCode},#{priceTime},#{chargeDate},#{mediItemType},#{chargeFee}, " +
|
|
|
- "#{price},#{quantity},#{drugWin},#{doctorCode},#{doctorName},#{serialNo},0, " +
|
|
|
- "#{groupNo},#{billItemCode},#{drugUnit},#{hospApprFlag})")
|
|
|
- void insertBatchedMtFeeInfo(MzReceipt param);
|
|
|
+ "bill_item_code,drug_unit,hosp_appr_flag) values " +
|
|
|
+ "<foreach collection='list' item='item' separator=','>" +
|
|
|
+ "(#{item.patientId},#{item.times},#{item.receiptNo},#{item.orderNo},#{item.itemNo}," +
|
|
|
+ "#{item.drugName},#{item.chargeItemCode},#{item.priceTime},#{item.chargeDate},#{item.mediItemType}," +
|
|
|
+ "#{item.chargeFee},#{item.price},#{item.quantity},#{item.drugWin},#{item.doctorCode}," +
|
|
|
+ "#{item.doctorName},#{item.serialNo},0,#{item.groupNo},#{item.billItemCode},#{item.drugUnit}," +
|
|
|
+ "#{item.hospApprFlag})" +
|
|
|
+ "</foreach>" +
|
|
|
+ "</script>")
|
|
|
+ void insertMtReceipts(List<MzReceipt> list);
|
|
|
|
|
|
@Delete("delete from t_mt_receipt where patient_id=#{patientId} and times=#{times} and " +
|
|
|
"receipt_no=#{receiptNo} and order_no=#{orderNo}")
|