|
@@ -30,15 +30,11 @@ public interface SiMzDao {
|
|
|
@Param("times") int times,
|
|
|
@Param("nullCtnt") String nullCtnt);
|
|
|
|
|
|
- @Select("select a.psn_no, mdtrtCertType='02', " +
|
|
|
- "b.visit_date as begntime, " +
|
|
|
- "a.certno as mdtrtCertNo, " +
|
|
|
- "a.psn_cert_type, " +
|
|
|
- "a.certno, " +
|
|
|
- "a.psn_name, " +
|
|
|
+ @Select("select a.psn_no, mdtrtCertType='02',b.visit_date as begntime, " +
|
|
|
+ "a.certno as mdtrtCertNo,a.psn_cert_type,a.certno,a.psn_name, " +
|
|
|
+ "rtrim(b.visit_dept_code) as deptCode,a.mdtrt_id, " +
|
|
|
"atddrNo=(select rtrim(yb_code) from a_employee_mi where code=b.doctor_code), " +
|
|
|
"drName=(select rtrim(name) from a_employee_mi where code=b.doctor_code), " +
|
|
|
- "rtrim(b.visit_dept_code) as deptCode, " +
|
|
|
"caty=(select si_caty from zd_unit_code where code=b.visit_dept_code), " +
|
|
|
"deptName=(select z.name from t_yb_dept z where z.code=" +
|
|
|
"(select t.si_caty from zd_unit_code t where t.code=b.visit_dept_code)) " +
|