|
@@ -24,13 +24,13 @@ public interface SiMzDao {
|
|
|
@Param("times") int times,
|
|
|
@Param("ledgerSn") int ledgerSn);
|
|
|
|
|
|
- @Select("SELECT patient_id,times,visit_dept_code, " +
|
|
|
- "visitDeptName=(select rtrim(name) from zd_unit_code where code=visit_dept_code), " +
|
|
|
- "doctor_code,visit_date,icd_code,receipt_no,order_no,op_id,op_day,windows_no," +
|
|
|
- "doctorName=(select rtrim(name) from a_employee_mi where code=doctor_code)," +
|
|
|
- "receive_flag,sick_date,icd_text,symptom,jz_flag,first_or_not,group_type,rz_flag," +
|
|
|
- "responce_type,bear_no,weight,hight,pressure,dept_no FROM mz_visit_table " +
|
|
|
- "WHERE patient_id = #{patientId} AND times = #{times}")
|
|
|
+ @Select("SELECT a.patient_id,a.times,a.visit_dept_code,b.adress,b.phone_no, " +
|
|
|
+ "b.name,b.age,sex=case when b.sex='1' then '男' else '女' end, " +
|
|
|
+ "visitDeptName=(select rtrim(name) from zd_unit_code where code=a.visit_dept_code), " +
|
|
|
+ "a.doctor_code,a.visit_date,a.receipt_no,a.order_no,a.op_day, " +
|
|
|
+ "doctorName=(select rtrim(name) from a_employee_mi where code=a.doctor_code), " +
|
|
|
+ "a.icd_text FROM mz_visit_table a, mz_patient_mi b " +
|
|
|
+ "WHERE a.patient_id=#{patientId} AND a.times=#{times} and a.patient_id=b.patient_id")
|
|
|
MzVisit selectMzVisit(@Param("patientId") String patientId,
|
|
|
@Param("times") Integer times);
|
|
|
|
|
@@ -62,15 +62,6 @@ public interface SiMzDao {
|
|
|
"#{secondIcdCode},#{thirdIcdCode},#{mzSerialNo},getdate())")
|
|
|
void insertMtPartInfo(CssybApplyInfo info);
|
|
|
|
|
|
- @Insert("insert into mz_charge_detail_yb (patient_id, times, receipt_no, order_no, response_type, yb_type) "+
|
|
|
- "values (#{patientId}, #{times}, #{receiptNo}, #{orderNo}, #{insutype}, #{medType})")
|
|
|
- void insertMzChargeYb(@Param("patientId") String patientId,
|
|
|
- @Param("times") Integer times,
|
|
|
- @Param("receiptNo") Integer receiptNo,
|
|
|
- @Param("orderNo") Integer orderNo,
|
|
|
- @Param("insutype") String insutype,
|
|
|
- @Param("medType") String medType);
|
|
|
-
|
|
|
@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, charge_type, bill_item_code) values (" +
|