|
|
|
@ -493,9 +493,9 @@ select a.JGID,a.PKEY,a.SFX_BM,a.SL,a.KYSL,a.DJSL,a.HWM_BM,b.JBDW,b.ZHXS,b.RKDW,b |
|
|
|
|
left join HIS_KSKC_PC c on a.JGID=c.JGID and c.PKEY=a.KSKC_PC_PKEY |
|
|
|
|
left join HIS_MMS_WZZD y on b.BM=y.WZBM |
|
|
|
|
left join HIS_MMS_KC_DBD dbd on a.djh=dbd.djh and a.JGID=dbd.JGID |
|
|
|
|
left join HIS_MMS_KC_DBD_LOG log on a.pkey=log.DBDMXPKEY and a.JGID=log.JGID |
|
|
|
|
left join HIS_YFYK_DBD_LOG log on a.pkey=log.DBDMXPKEY and a.JGID=log.JGID |
|
|
|
|
left join HIS_MMS_KC_RKD_MX rkdmx on log.FIRST_KSKC_PC_PKEY = rkdmx.KSKC_PC_PKEY and rkdmx.JGID=log.JGID |
|
|
|
|
left join HIS_MMS_KC_RKD rkd on rkdmx.djh = rkd.djh and rkd.JGID=rkdmx.JGID |
|
|
|
|
left join HIS_MMS_KC_RKD rkd on rkdmx.djh = rkd.djh and rkd.JGID=rkdmx.JGID |
|
|
|
|
where a.JGID=? and dbd.SHZT='1' and dbd.RKZT='1' order by a.djh,a.XH</sql> |
|
|
|
|
<tables> |
|
|
|
|
<table name="HIS_YFYK_DBD_MX" insert="true" update="true" delete="true"> |
|
|
|
|