|
@@ -12,11 +12,10 @@ public interface MobilePayDao extends BaseMapper<MobilePay> {
|
|
|
"medOrgOrd=rtrim(patient_id)+'_'+cast(times as varchar)+'_1', " +
|
|
|
"begntime=convert(varchar(19), visit_date, 21), " +
|
|
|
"iptOtpNo=rtrim(patient_id), " +
|
|
|
- "atddrNo=rtrim(doctor_code), " +
|
|
|
+ "atddrNo=(select rtrim(d.yb_code) from a_employee_mi d where d.code=doctor_code), " +
|
|
|
"drName=(select rtrim(d.name) from a_employee_mi d where d.code=doctor_code), " +
|
|
|
- "deptId=rtrim(visit_dept_code), " +
|
|
|
- "deptName=(select rtrim(d.name) from zd_unit_code d where d.code=visit_dept_code), " +
|
|
|
- "caty=(select rtrim(d.si_caty) from zd_unit_code d where d.code=visit_dept_code), " +
|
|
|
+ "deptId=(select d.si_caty from zd_unit_code d where d.code=visit_dept_code), " +
|
|
|
+ "deptName=(select rtrim(d.si_caty_name) from zd_unit_code d where d.code=visit_dept_code), " +
|
|
|
"feeType='01', " +
|
|
|
"medfeeSumamt=(select cast(sum(d.charge_fee) as decimal(16,2)) from t_mt_receipt d where d.patient_id=#{patNo} and d.times=#{times}), " +
|
|
|
"acctUsedFlag='1', " +
|
|
@@ -44,15 +43,15 @@ public interface MobilePayDao extends BaseMapper<MobilePay> {
|
|
|
"quantity as cnt, price as pric,hospApprFlag='1', " +
|
|
|
"bilgDrCodg=(select rtrim(yb_code) from a_employee_mi where code=input_staff), " +
|
|
|
"input_man as bilgDrName,medListName=a.his_item_name, " +
|
|
|
- "bilgDeptCodg=rtrim(b.visit_dept_code), " +
|
|
|
- "bilgDeptName=(select rtrim(d.name) from zd_unit_code d where d.code=b.visit_dept_code) " +
|
|
|
+ "bilgDeptCodg=(select d.si_caty from zd_unit_code d where d.code=b.visit_dept_code), " +
|
|
|
+ "bilgDeptName=(select rtrim(d.si_caty_name) from zd_unit_code d where d.code=b.visit_dept_code) " +
|
|
|
"from t_mt_receipt a, mz_visit_table b " +
|
|
|
"where a.patient_id=#{patNo} and a.times=#{times} " +
|
|
|
"and b.patient_id=a.patient_id and b.times=a.times")
|
|
|
List<Feedetail> selectMpFees(@Param("patNo") String patNo, @Param("times") int times);
|
|
|
|
|
|
@Select("select icd_code_new as icdCode,icd_text_new as icdName," +
|
|
|
- "visit_date,drCode=rtrim(doctor_code)," +
|
|
|
+ "visit_date,drCode=(select rtrim(d.yb_code) from a_employee_mi d where d.code=doctor_code)," +
|
|
|
"drName=(select rtrim(d.name) from a_employee_mi d where d.code=doctor_code) " +
|
|
|
"from mz_visit_table where patient_id=#{patNo} and times=#{times}")
|
|
|
VisitTableIcd selectMzVisitIcd(@Param("patNo") String patNo, @Param("times") int times);
|