SELECT PKEY,YHJB,YSZH,JZLX,KJYWJB,YXLX,ISSHQX,CJR,CJRQ,XGR,XGRQ,JGID,LOCKFLAG FROM HIS_KSS_QXWH WHERE JGID=? ORDER BY YSZH desc,YHJB,JZLX,KJYWJB
12
SELECT PKEY,MZQY,ZZQY,ZYQY,ZBJ,TSKJYWZZ,MRHZKS,MRHZYS,ISBKSHZ,SJYZZL,SJYZXPKEY,CJR,CJRQ,XGR,XGRQ,JGID,LOCKFLAG FROM HIS_KSS_PARAMS WHERE JGID=?
12
select PKEY,LCBM,SFKSYS,SFHZ,SFKSSH,SFZZSH,ZZSHKS,CJR,CJRQ,XGR,XGRQ,JGID,LOCKFLAG from HIS_KSS_FLOW where JGID=? order by lcbm
12
select PKEY,FJPKEY,TYPE,BM,MC,MEMO,SFJH,TSBZ,CJR,CJRQ,XGR,XGRQ,JGID,LOCKFLAG from HIS_KSS_BASEDATA where JGID=? and type=? order by pkey
12
12
select PKEY,FJPKEY,TYPE,BM,MC,MEMO,SFJH,TSBZ,CJR,CJRQ,XGR,XGRQ,JGID,LOCKFLAG from HIS_KSS_BASEDATA where JGID=? and type='001' order by pkey
12
select PKEY,FJPKEY,TYPE,BM,MC,MEMO,SFJH,TSBZ,CJR,CJRQ,XGR,XGRQ,JGID,LOCKFLAG from HIS_KSS_BASEDATA where JGID=? and type='002' order by FJPKEY,BM
12
select PKEY,FJPKEY,TYPE,BM,MC,MEMO,SFJH,TSBZ,CJR,CJRQ,XGR,XGRQ,JGID,LOCKFLAG from HIS_KSS_BASEDATA where JGID=? and type='003' order by pkey
12
select PKEY,FJPKEY,TYPE,BM,MC,MEMO,SFJH,TSBZ,CJR,CJRQ,XGR,XGRQ,JGID,LOCKFLAG from HIS_KSS_BASEDATA where JGID=? and type='004' order by pkey
12
select PKEY,FJPKEY,TYPE,BM,MC,MEMO,SFJH,TSBZ,CJR,CJRQ,XGR,XGRQ,JGID,LOCKFLAG from HIS_KSS_BASEDATA where JGID=? and type='009' order by pkey
12
select PKEY,FJPKEY,TYPE,BM,MC,MEMO,SFJH,TSBZ,CJR,CJRQ,XGR,XGRQ,JGID,LOCKFLAG from HIS_KSS_BASEDATA where JGID=? and type='008' order by pkey
12
select PKEY,FJPKEY,TYPE,BM,MC,MEMO,SFJH,TSBZ,CJR,CJRQ,XGR,XGRQ,JGID,LOCKFLAG from HIS_KSS_BASEDATA where JGID=? and type='007' order by pkey
12
select PKEY,HZPKEY,JZPKEY,YZXPKEY,YZMX,YPMC,YPJX,YPGZJB,YPDDD,YPWHONET,XZKS,XZYS,YSJB,JZLX,SHLCPKEY,SHLCTEXT,SHSTATE,SHRY,SHRQ,SYMD,YYZZ,GRBW,SYSJ,SFSJ,SFYJ,YJYY,HUIZHENPKEY,SQRQ,ISUSE,KSSQXLX,CJR,CJRQ,XGR,XGRQ,JGID,LOCKFLAG from HIS_KSS_SQD where JGID=? and hzpkey=? and jzpkey=? and PKEY=? order by CJRQ
12
12
12
12
select PKEY,HZPKEY,JZPKEY,SQDPKEY,LCTYPE,SHZT,ZXZT,ZXKS,ZXYS,HUIZHENPKEY,ISHUIZHEN,ZZSHKS,XH,CJR,CJRQ,XGR,XGRQ,JGID,LOCKFLAG from HIS_KSS_SQD_SHLC where JGID=? and hzpkey=? and jzpkey=? and SQDPKEY=? order by xh
12
12
12
12
select PKEY,HZPKEY,JZPKEY,KSSSQDPKEY,KSSSQDLCPKEY,SQYS,SQKS,SQSJ,HUIZHENRQ,HUIZHENKS,HUIZHENYS,YSZC,BQZY,HUIZHENYQ,HUIZHENJY,HUIZHENLX,ISKSSYY,HUIZHENSTATE,KSSTYYY,CJR,CJRQ,XGR,XGRQ,JGID,LOCKFLAG from HIS_ZY_HUIZHEN_SQD where JGID=? and hzpkey=? and jzpkey=? and KSSSQDPKEY=?
12
12
12
12
select PKEY,KSSSQDPKEY,XJM,KSSM,NYJZ,BB,BGRQ,JYXM,CJR,CJRQ,XGR,XGRQ,JGID,LOCKFLAG from HIS_KSS_YMJL where JGID=? and KSSSQDPKEY=? order by pkey
12
12
select PKEY,KSSSQDPKEY,SSBM,SSMC,SSJB,SSQKYHDJ,SSRQ,CJR,CJRQ,XGR,XGRQ,JGID,LOCKFLAG from HIS_KSS_SSJL where JGID=? and KSSSQDPKEY=? order by pkey
12
12
select PKEY,HZPKEY,JZPKEY,YZXPKEY,YZMX,YPMC,YPJX,YPGZJB,YPDDD,YPWHONET,XZKS,XZYS,YSJB,JZLX,SHLCPKEY,SHLCTEXT,SHSTATE,SHRY,SHRQ,SYMD,YYZZ,GRBW,SYSJ,SFSJ,SFYJ,YJYY,HUIZHENPKEY,SQRQ,ISUSE,KSSQXLX,CJR,CJRQ,XGR,XGRQ,JGID,LOCKFLAG from HIS_KSS_SQD where JGID=? and hzpkey=? and jzpkey=? and ISUSE=0 order by SQRQ
12
12
12
select distinct a.LCTYPE,d.xm,b.PKEY,b.HZPKEY,b.JZPKEY,b.YZXPKEY,b.YZMX,b.YPMC,b.YPJX,b.YPGZJB,b.YPDDD,b.YPWHONET,b.XZKS,b.XZYS,b.YSJB,b.JZLX,b.SHLCPKEY,b.SHLCTEXT,b.SHSTATE,b.SHRY,b.SHRQ,b.SYMD,b.YYZZ,b.GRBW,b.SYSJ,b.SFSJ,b.SFYJ,b.YJYY,b.HUIZHENPKEY,b.SQRQ,b.ISUSE,b.KSSQXLX,b.CJR,b.CJRQ,b.XGR,b.XGRQ,b.JGID,b.LOCKFLAG from HIS_KSS_SQD_SHLC a left join HIS_KSS_SQD b on a.SQDPKEY=b.pkey and a.JGID=b.JGID left join HIS_KSS_QXWH c on b.YPGZJB=c.KJYWJB and b.JGID=c.JGID left join HIS_HZINFO d on b.HZPKEY=d.pkey and b.JGID=d.JGID where a.JGID=? and a.zxzt=2 and ((c.yhjb=? and c.ISSHQX=1) or (c.YSZH=? and c.ISSHQX=1)) and c.JZLX=b.JZLX order by b.SQRQ
12
12
12
select distinct a.LCTYPE,d.xm,b.PKEY,b.HZPKEY,b.JZPKEY,b.YZXPKEY,b.YZMX,b.YPMC,b.YPJX,b.YPGZJB,b.YPDDD,b.YPWHONET,b.XZKS,b.XZYS,b.YSJB,b.JZLX,b.SHLCPKEY,b.SHLCTEXT,b.SHSTATE,b.SHRY,b.SHRQ,b.SYMD,b.YYZZ,b.GRBW,b.SYSJ,b.SFSJ,b.SFYJ,b.YJYY,b.HUIZHENPKEY,b.SQRQ,b.ISUSE,b.KSSQXLX,b.CJR,b.CJRQ,b.XGR,b.XGRQ,b.JGID,b.LOCKFLAG from HIS_KSS_SQD_SHLC a left join HIS_KSS_SQD b on a.SQDPKEY=b.pkey and a.JGID=b.JGID left join HIS_KSS_QXWH c on b.YPGZJB=c.KJYWJB and b.JGID=c.JGID left join HIS_HZINFO d on b.HZPKEY=d.pkey and b.JGID=d.JGID where a.JGID=? and a.ZXYS=? order by b.SQRQ
12
12
select '' content,a.PKEY,a.HZPKEY,a.JZPKEY,a.KSSSQDPKEY,a.KSSSQDLCPKEY,a.SQYS,a.SQKS,a.SQSJ,a.HUIZHENRQ,a.HUIZHENKS,a.HUIZHENYS,a.YSZC,a.BQZY,a.HUIZHENYQ,a.HUIZHENJY,a.HUIZHENLX,a.ISKSSYY,a.HUIZHENSTATE,a.KSSTYYY,a.CJR,a.CJRQ,a.XGR,a.XGRQ,a.JGID,a.LOCKFLAG,b.xm,b.xb,c.HZLX,c.JZNL,c.JZNO,c.ZYNO from HIS_ZY_HUIZHEN_SQD a left join HIS_HZINFO b on a.hzpkey=b.pkey and a.JGID=b.JGID left join HIS_JZ_BASEINFO c on a.jzpkey=c.pkey and a.JGID=c.JGID where a.JGID=? and a.HUIZHENYS=? and a.HUIZHENSTATE=? order by a.HUIZHENRQ desc
12
12
12
select PKEY,HZPKEY,JZPKEY,YZXPKEY,YZMX,YPMC,YPJX,YPGZJB,YPDDD,YPWHONET,XZKS,XZYS,YSJB,JZLX,SHLCPKEY,SHLCTEXT,SHSTATE,SHRY,SHRQ,SYMD,YYZZ,GRBW,SYSJ,SFSJ,SFYJ,YJYY,HUIZHENPKEY,SQRQ,ISUSE,KSSQXLX,CJR,CJRQ,XGR,XGRQ,JGID,LOCKFLAG from HIS_KSS_SQD where JGID=? and PKEY=? order by SQRQ
12
12