|
@@ -33,7 +33,8 @@ public interface SiMzDao {
|
|
|
"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), " +
|
|
|
"doctorYbCode=(select rtrim(yb_code) from a_employee_mi where code=a.doctor_code), " +
|
|
|
- "icdText=case when nullif(a.icd_code_new,'') is null then a.icd_text else a.icd_text_new end " +
|
|
|
+ "icdText=case when nullif(a.icd_code_new,'') is null then rtrim(a.icd_text) else rtrim(a.icd_text_new) end, " +
|
|
|
+ "settledFlag=(select count(1) from t_si_setlinfo where pat_no=#{patientId} and times=#{times} and revoked=0) " +
|
|
|
"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,
|