select PKEY,BM,MC,JSDX,FSFS,ZYX,YXTS,TDXX,ZYZDCL,SFQY,CJR,CJRQ,XGR,XGRQ,JGID,LOCKFLAG,VOICE from HIS_MESSAGE_TYPE where JGID=? order by pkey PKEYJGID

12

select PKEY,BM,MC,JSDX,FSFS,ZYX,YXTS,TDXX,ZYZDCL,SFQY,CJR,CJRQ,XGR,XGRQ,JGID,LOCKFLAG,VOICE from HIS_MESSAGE_TYPE where JGID=? and SFQY='1' order by pkey PKEYJGID

12

select PKEY,MESSAGETYPE,JSDX,FSFS,ZYX,YXTS,TDXX,ZYZDCL,FSR,FSTIME,CONTENT,HZPKEY,JZPKEY,SFCL,JJKS,WARD,JJYS,XZYS,CJR,CJRQ,XGR,XGRQ,JGID,LOCKFLAG from HIS_MESSAGE where 1=2 PKEYJGID
= sysdate order by ZYX,fstime desc ]]> PKEYJGID

12

select a.PKEY,b.pkey BQKEY,a.HSPKEY,a.CJR,a.CJRQ,a.XGR,a.XGRQ,a.JGID,b.MC,b.BQLC,b.BQXB,b.BQKSNL,b.BQJSNL,b.BQZJM,b.bm from HIS_BQGLHS a left join HIS_BQ b on a.JGID=b.JGID left join HIS_BQGLKS c on b.PKEY=c.BQKEY and b.JGID=c.JGID where a.JGID=? and a.hspkey=? and c.KSKEY=? and b.SCBZ=1 order by b.bm PKEYBQKEYHSPKEYJGID

12

12

12

select PKEY,MESSAGEPKEY,READMESSAGEMAN,READMESAGETIME,RECEIVEMESSAGEMAN,RECEIVEMESSAGETIME,CJR,CJRQ,XGR,XGRQ,JGID,LOCKFLAG from HIS_MESSAGE_RECEIVE where JGID=? and messagepkey=? PKEYJGID

12

12

select PKEY,BM,MC,JSDX,FSFS,ZYX,YXTS,TDXX,ZYZDCL,SFQY,CJR,CJRQ,XGR,XGRQ,JGID,LOCKFLAG,VOICE from HIS_MESSAGE_TYPE where JGID=? order by pkey PKEYJGID

12

PKEYJGID

12

PKEYJGID

12

12