select PKEY,SYQBM,SYQMC,SYQMS,SYQDZ,SYQLC,SYQZJM,CJR,CJRQ,XGR,XGRQ,JGID,LOCKFLAG from HIS_MZ_SYQ where JGID=? order by SYQBM
12
select PKEY,SYQPKEY,KSPKEY,CJR,CJRQ,XGR,XGRQ,JGID,LOCKFLAG from HIS_MZ_SYQGLKS where JGID=? and SYQPKEY=? order by pkey
12
12
select PKEY,BM,MC,SYQPKEY,SFJH,XH,CJR,CJRQ,XGR,XGRQ,JGID,LOCKFLAG from HIS_MZ_SYQZW where JGID=? and SYQPKEY=? order by bm
12
12
select PKEY,SYQPKEY,HSPKEY,CJR,CJRQ,XGR,XGRQ,JGID,LOCKFLAG from HIS_MZ_SYQGLHS where JGID=? and SYQPKEY=? order by pkey
12
12
select a.PKEY,a.SYQPKEY,a.HSPKEY,a.CJR,a.CJRQ,a.XGR,a.XGRQ,a.JGID,a.LOCKFLAG ,b.SYQBM,b.SYQMC,b.SYQMS,b.SYQDZ,b.SYQLC,b.SYQZJM from HIS_MZ_SYQGLHS a left join HIS_MZ_SYQ b on a.JGID=b.JGID and a.SYQPKEY=b.pkey left join HIS_MZ_SYQGLKS c on c.JGID=b.JGID and c.SYQPKEY=b.pkey left join MAIN_KS d on d.DPTID=c.KSPKEY and d.JGID=c.JGID where a.JGID=? and a.hspkey=? and c.KSPKEY=? order by b.SYQBM
12
12
12
select PKEY,HZPKEY,JZPKEY,ZXBS,SYZT,SYRQ,PYR,ZXR,PYTIME,ZXTIME,DS,DXS,SYRL,YJSYSJ,SYQPKEY,SYQZWPKEY,SYNR,YFTJ,PC,ZSYCS,TX,YZXZYS,CJR,CJRQ,XGR,XGRQ,JGID,LOCKFLAG from HIS_MZ_SYZX where JGID=? and hzpkey=? and jzpkey=? order by TX
12
12
12
select PKEY,HZPKEY,JZPKEY,ZXBS,SYZT,SYRQ,PYR,ZXR,PYTIME,ZXTIME,DS,DXS,SYRL,YJSYSJ,SYQPKEY,SYQZWPKEY,SYNR,YFTJ,PC,ZSYCS,TX,YZXZYS,CJR,CJRQ,XGR,XGRQ,JGID,LOCKFLAG from HIS_MZ_SYZX where JGID=? and hzpkey=? and jzpkey=? and ZXBS=? order by TX
12
12
12
12