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ZYL,YZZCYFSKEY,YZZCYFS,YZZCYJX,YZZCYDJF,ISDJJS,DJJSSL,ISZCYDJCL,IZZCYDJFJF,ISGFFJ,YZZCYBZ,SQDTYPE,SQDPKEY,SQDJSPKEY,LOCKFLAG,YPFYSJMS from HIS_YZ_MXB where JGID=? and HZPKEY=? and JZPKEY=? and YZSFZT=0 and YZSHZT=1 and (YZLX='0' or YZLX='1' or YZLX='3' or YZLX='4' or YZLX='5' or YZLX='6' or YZLX='7') order by cfh,yzxh
12
12
12
select PKEY,FPHM,PJLX,SFRY,SFRQ,SFZT,FPLX,FPDRYY,SFDZP,SFJZDY,SFJE,MEMO,CJR,CJRQ,XGR,XGRQ,JGID,MZFPPKEY from HIS_PJUSE_MX where JGID=? and PJLX=? and FPLX=? and FPHM=?
PKEY
PJLX
FPLX
FPHM
MZFPPKEY
12
12
12
12
select a.PKEY,a.GLZDBPKEY,a.SJPKEY,a.CLOSEPKEY,a.JZZT,a.JZRQ,a.CHFPHM,a.CHPKEY,a.FPHM,a.HZPKEY,a.PJLX,a.SFRY,a.SFRQ,a.SFZT,a.FPLX,a.FPDRYY,a.YBLX,a.YBZFJE,a.SFJE,a.YBJSB,a.CHYY,a.JZPKEY,a.SFDZP,a.CJR,a.CJRQ,a.JGID,a.SFDYFP,a.SFJZDY,a.PJZT,c.XM,d.JZKH,e.klx,b.SQZT,b.SHZT,b.SHRY,b.SHRQ,b.ZXZT,d.jzno,b.SHBHBZ,a.TFHSF,a.LOCKFLAG from HIS_MZJS_MZFPZB a left join HIS_MZJS_MZFPCHSQ b on a.JGID=b.JGID and a.PKEY=b.MZFPPKEY left join HIS_HZINFO c on a.HZPKEY=c.pkey LEFT JOIN HIS_JZ_BASEINFO D ON A.JGID=D.JGID AND A.JZPKEY=D.PKEY left join HIS_CARD_MANAGE e on d.JGID=e.JGID and d.jzkh=e.KH where a.PJZT=1 and (a.SFZT=1 or a.TFHSF=1) and a.PJLX='MS' and a.JGID=? order by a.SFRQ desc
12
select
t.PK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.YZSFPY,b.YZCLTM,b.YZCLYY,b.YZBZ,b.YZBBLX,b.YZDW,b.YZXZKS,b.YZZL,b.YZJZJLXS,b.YZJZZHXS,b.YPYZJBJG,b.YPYZJBDW,b.YPYZBZJG,b.YPYZBZDW,b.YPYZDXDW,b.YPYZDXSL,b.YPYZZHXS,b.YZMC,b.YZSFZT,(select sum(tysl)/b.YZJZZHXS tysl from HIS_YFFY_MZFYMXB where yzmx=a.yzmx and JGID=a.JGID) tysl,(select sum(yzsl)/b.YZJZZHXS sfsl from HIS_YFFY_MZFYMXB where yzmx=a.yzmx and JGID=a.JGID) sfsl,c.HZPKEY,c.JZPKEY,b.SQDTYPE,b.SQDPKEY,b.SQDJSPKEY,a.SQDTFJE,a.LOCKFLAG,
( SELECT sum( tysl ) / b.YZJZZHXS tysl FROM HIS_MMS_MZFYMXB WHERE yzmx = a.yzmx AND JGID = a.JGID ) mtysl,
( SELECT sum( yzsl ) / b.YZJZZHXS sfsl FROM HIS_MMS_MZFYMXB WHERE yzmx = a.yzmx AND JGID = a.JGID ) msfsl
from HIS_SFZD_YZMXB a left join HIS_YZ_MXB b on a.JGID=b.JGID and a.YZMX=b.pkey left join HIS_SFZD_ZB c on a.ZDZBPKEY=c.pkey and a.JGID=c.JGID where a.JGID=? and a.ZDZBPKEY=? and b.yzlx!=6 order by a.pkey
PKEY
ZDZBPKEY
YZSL
TFSL
JGID
12
12
select MZFPPKEY,SQZT,SQRY,SQRQ,SHZT,SHRY,SHRQ,ZXZT,ZXRY,ZXRQ,CJR,CJRQ,JGID,SHBHBZ,TFYY,HZPKEY,JZPKEY,ZDZBPKEY,LOCKFLAG from HIS_MZJS_MZFPCHSQ where JGID=? and MZFPPKEY=?
MZFPPKEY
SQZT
SHZT
ZXZT
JGID
12
12
select a.PKEY,a.GLZDBPKEY,a.SJPKEY,a.CLOSEPKEY,a.JZZT,a.JZRQ,a.CHFPHM,a.CHPKEY,a.FPHM,a.HZPKEY,a.PJLX,a.SFRY,a.SFRQ,a.SFZT,a.FPLX,a.FPDRYY,a.YBLX,a.YBZFJE,a.SFJE,a.YBJSB,a.CHYY,a.JZPKEY,a.SFDZP,a.CJR,a.CJRQ,a.JGID,a.SFDYFP,a.SFJZDY,a.PJZT,c.XM,d.JZKH,e.klx,b.SQZT,b.SHZT,b.SHRY,b.SHRQ,b.ZXZT,d.jzno,b.SHBHBZ,d.JJKS,a.LOCKFLAG from HIS_MZJS_MZFPZB a left join HIS_MZJS_MZFPCHSQ b on a.JGID=b.JGID and a.PKEY=b.MZFPPKEY left join HIS_HZINFO c on a.HZPKEY=c.pkey LEFT JOIN HIS_JZ_BASEINFO D ON A.JGID=D.JGID AND A.JZPKEY=D.PKEY left join HIS_CARD_MANAGE e on d.JGID=e.JGID and d.jzkh=e.KH where a.PJZT=1 and a.SFZT=1 and a.PJLX='MS' and (b.SQZT=1 or b.SQZT=2) and b.ZXZT=0 and a.JGID=? and (1=? or d.JJKS=?) order by a.SFRQ desc
12
12
12
select PKEY,FPHM,PJLX,SFRY,SFRQ,SFZT,FPLX,FPDRYY,SFDZP,SFJZDY,SFJE,CJR,CJRQ,XGR,XGRQ,JGID,MZFPPKEY from HIS_PJUSE_MX where FPHM=? and MZFPPKEY=?
12
12
select b.PKEY,b.HZPKEY,b.JZPKEY,b.JZH,b.CFH,b.YZCL,b.YZLB,b.YZLX,b.YZXPKEY,b.YZSHZT,b.YZXH,b.YZJL,b.YZJLDW,b.YZPC,b.YZTS,b.YZYF,b.YZZCYYF,b.YZZCYYFMS,b.YZTZH,b.YZXZSJ,b.YZXZYS,b.YZLRYS,b.YZJE,b.YZSL,b.YZJX,b.YZBEGINJDSJ,b.YZENDJDSJ,b.YZBEGINZXSJ,b.YZZXSJ,b.YZYTZSJ,b.YZTZSJ,b.YZDJ,b.YZBEGINJDHS,b.YZENDJDHS,b.YZTZYS,b.YZZT,b.YZFYLB,b.YZDAYCS,b.YZJDBZ,b.YZYX,b.YZZDY,b.YZXZSXYS,b.YZTZSXYS,b.ZY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GE e on d.JGID=e.JGID and d.jzkh=e.KH where a.PJZT=1 and a.SFZT=1 and a.SFDYFP=0 and b.ZDJFLX!='Z' and b.ISHC=0 and a.JGID=? and c.pkey=? order by a.SFRQ desc
PKEY
GLZDBPKEY
JGID
SFDYFP
12
12
select a.PKEY,a.GLZDBPKEY,a.SJPKEY,a.CLOSEPKEY,a.JZZT,a.JZRQ,a.CHFPHM,a.CHPKEY,a.FPHM,a.HZPKEY,a.PJLX,a.SFRY,a.SFRQ,a.SFZT,a.FPLX,a.FPDRYY,a.YBLX,a.YBZFJE,a.SFJE,a.YBJSB,a.CHYY,a.JZPKEY,a.SFDZP,a.CJR,a.CJRQ,a.JGID,a.SFDYFP,a.SFJZDY,a.PJZT,a.SFKS,c.XM,d.JZKH,e.klx,b.ZDJFLX,b.JFYBLX,d.jzno,d.JJKS,d.jjys,d.JJRQ,a.LOCKFLAG from HIS_MZJS_MZFPZB a left join HIS_SFZD_ZB b on a.JGID=b.JGID and a.GLZDBPKEY=b.PKEY left join HIS_HZINFO c on a.HZPKEY=c.pkey LEFT JOIN HIS_JZ_BASEINFO D ON A.JGID=D.JGID AND A.JZPKEY=D.PKEY left join HIS_CARD_MANAGE e on d.JGID=e.JGID and d.jzkh=e.KH where a.PJZT=1 and a.SFZT=1 and a.SFDYFP=0 and b.ZDJFLX!='Z' and b.ISHC=0 and a.JGID=? and c.pkey=? and a.PKEY=? order by a.SFRQ desc
PKEY
GLZDBPKEY
JGID
SFDYFP
12
12
12
select PKEY,NAME,CJR,CJRQ,XGR,XGRQ,JGID from HIS_SFZD_TFTYYY where JGID=? order by CJRQ
12
select MZFPPKEY,SQZT,SQRY,SQRQ,SHZT,SHRY,SHRQ,ZXZT,ZXRY,ZXRQ,CJR,CJRQ,JGID,SHBHBZ,TFYY,HZPKEY,JZPKEY,ZDZBPKEY,LOCKFLAG from HIS_MZJS_MZFPCHSQ where SHZT != 2 and ZXZT != 1 and JGID=? and HZPKEY=? and JZPKEY=? and ZDZBPKEY=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GID from HIS_JS_JZSFLBB where JGID=? and JSJZPKEY=? order by FYLBBM
12
12
select PKEY,JSJZPKEY,ZFLX,ZFJE,CJR,CJRQ,JGID from HIS_JS_JZZFFSB where JGID=? and JSJZPKEY=? order by ZFLX
12
12
? and a.SFRQ <=? order by a.SFRQ]]>
12
12
12
93
93
? and b.SFRQ <=? order by a.MZFPPKEY,a.ZFLX]]>
12
12
12
93
93
? and b.SFRQ <=? order by a.MZFPPKEY,a.FYLBBM]]>
12
12
12
93
93
? and a.JZTIME <=? order by a.JZTIME desc]]>
12
12
12
93
93
12
12
? and a.SFRQ <=? order by a.SFRQ
]]>
12
12
12
93
93
12
12
? and a.SFRQ <=? order by a.SFRY,e.GHLB) group by SFRY,GHLB,PJZT ]]>
12
12
12
12
12
93
93
? and a.SFRQ <=? order by a.SFRY) group by SFRY,PJZT
]]>
12
12
12
93
93
select PKEY,JZTIME,JZKSSJ,JZJSSJ,JZRY,JZBM,QCYE,TKJE,JKJE,KXFJE,QMYE,FLAG,CJR,CJRQ,XGR,XGRQ,JGID,LOCKFLAG from HIS_HZZH_YJJJZ_ZB where JGID=? order by JZJSSJ desc
12
select a.PKEY,a.YJJJZPKEY,a.HZZHPKEY,a.HZPKEY,a.CARDPKEY,a.ZJZHH,a.QCYE,a.QMYE,a.JKJE,a.TKJE,a.KXFJE,a.ZHZT,a.CJR,a.CJRQ,a.XGR,a.XGRQ,a.JGID,b.xm,c.KHRQ,a.LOCKFLAG from HIS_HZZH_YJJJZ_ZHB a left join HIS_HZINFO b on a.HZPKEY=b.pkey and a.JGID=b.JGID left join HIS_HZZH_MANAGE c on a.HZZHPKEY=c.pkey and a.JGID=c.JGID where a.JGID=? and a.YJJJZPKEY=? order by a.HZZHPKEY
PKEY
YJJJZPKEY
QCYE
QMYE
JKJE
TKJE
KXFJE
JGID
12
12
select PKEY,YJJJZPKEY,SFRY,ZFFS,JKCS,JKJE,TKCS,TKJE,CJR,CJRQ,XGR,XGRQ,JGID,LOCKFLAG from HIS_HZZH_YJJJZ_JZRYHZB where JGID=? and YJJJZPKEY=? order by SFRY
12
12
? and b.JKRQ <=? order by HZZHPKEY,b.JKRY]]>
TKJE
PKEY
JZQCYE
ZJE
HHJE
ZJYE
ZHZT
JGID
ZFLSPKEY
HZPKEY
HZZHPKEY
JSPKEY
12
93
93
? and b.CZRQ <=? order by b.ZHPKEY,b.CZRY]]>
TKJE
PKEY
JZQCYE
ZJE
HHJE
ZJYE
ZHZT
JGID
12
93
93
select sum(JZQCYE) JZQCYE,sum(ZJYE) ZJYE from HIS_HZZH_MANAGE where JGID=?
12
select a.HZPKEY,a.JZPKEY,b.JZNO,b.pkey,b.JJKS,b.JJRQ,b.JJYS,b.ISJZ,c.xm,c.xb,b.JZKH from HIS_YZ_MXB a left join HIS_JZ_BASEINFO b on a.JZPKEY=b.pkey and a.JGID=b.JGID left join HIS_HZINFO c on a.HZPKEY=c.pkey and a.JGID=c.JGID where a.JGID=? and a.YZSFZT=0 and a.YZSHZT=1 and b.jzlx='M' and b.JZZT='J' and (a.YZLX='0' or a.YZLX='1' or a.YZLX='3' or a.YZLX='4' or a.YZLX='5') and ((b.ISJZ=0 AND b.JJRQ >=?) or (b.ISJZ=1 and b.JJRQ >= ?) or to_char(a.YZXZSJ,'YYYY-MM-DD')=?) group by a.HZPKEY,a.JZPKEY,b.JZNO,b.pkey,b.JJKS,b.JJRQ,b.JJYS,b.ISJZ,c.xm,c.xb,b.JZKH order by b.JJRQ desc
12
93
93
12
select a.HZPKEY,a.JZPKEY,b.JZNO,b.pkey,b.JJKS,b.JJRQ,b.JJYS,b.ISJZ,c.xm,c.xb,b.JZKH,c.ZJHM,c.PHONE from HIS_YZ_MXB a left join HIS_JZ_BASEINFO b on a.JZPKEY=b.pkey and a.JGID=b.JGID left join HIS_HZINFO c on a.HZPKEY=c.pkey and a.JGID=c.JGID where a.JGID=? and a.YZSFZT=0 and a.YZSHZT=1 and b.jzlx='M' and b.JZZT='J' and (a.YZLX='0' or a.YZLX='1' or a.YZLX='3' or a.YZLX='4' or a.YZLX='5' or a.YZLX='7') and 1=1 group by a.HZPKEY,a.JZPKEY,b.JZNO,b.pkey,b.JJKS,b.JJRQ,b.JJYS,b.ISJZ,c.xm,c.xb,b.JZKH,c.ZJHM,c.PHONE order by b.JJRQ desc
12
select b.MZZFL,sum(a.SFXZFY) sfxzfy from HIS_SFZD_SFXMXB a left join HIS_SFX b on a.SFX=b.bm and a.JGID=b.JGID where a.JGID=? and a.ZDZBPKEY=? group by b.MZZFL
12
12
select count(*) num from HIS_YZ_MXB a left join HIS_JZ_BASEINFO b on a.JZPKEY=b.pkey and a.JGID=b.JGID left join HIS_HZINFO c on a.HZPKEY=c.pkey and a.JGID=c.JGID where a.JGID=? and a.pkey=? and b.jzkh=? and a.YZSFZT=0 and a.YZSHZT=1 and b.jzlx='M' and b.JZZT='J' and (a.YZLX='0' or a.YZLX='1' or a.YZLX='3' or a.YZLX='4' or a.YZLX='5')
12
12
12
select count(*) num from HIS_JZ_BASEINFO where JGID=? and hzpkey=? and JZLX='Z'
12
12
? and a.SFRQ <=? order by a.SFRY,a.SFRQ
]]>
12
12
93
93
? and a.SFRQ <=? order by a.SFRY,a.SFRQ
]]>
12
12
93
93
select count(*) num from HIS_YZ_MXB where JGID=? and HZPKEY=? and JZPKEY=? and cfh=? and YZLX='1' order by yzxh
12
12
12
12
? and a.SFRQ <=? order by a.SFRY,a.SFRQ
]]>
12
12
93
93
? and a.SFRQ <=? order by a.SFRY,a.SFRQ
]]>
12
12
93
93
select PKEY,JGID,JZLX,MDTRT_ID,SETL_ID,IPT_NO,PSN_NO,PSN_NAME,PSN_CERT_TYPE,CERTNO,GEND,NATY,BRDY,AGE,INSUTYPE,PSN_SETLWAY,ACCT_USED_FLAG,MID_SETL_FLAG,PSN_TYPE,CVLSERV_FLAG,SETL_TIME,MDTRT_CERT_TYPE,MED_TYPE,MEDFEE_SUMAMT,FUND_PAY_SUMAMT,PSN_PART_AMT,ACCT_PAY,PSN_CASH_PAY,CASH_TYPE,HOSP_PART_AMT,BALC,ACCT_MULAID_PAY,FULAMT_OWNPAY_AMT,OVERLMT_SELFPAY,PRESELFPAY_AMT,INSCP_SCP_AMT,ACT_PAY_DEDC,HIFP_PAY,POOL_PROP_SELFPAY,CVLSERV_PAY,HIFES_PAY,HIFMI_PAY,HIFOB_PAY,MAF_PAY,OTH_PAY,HIFDM_PAY,MEDINS_SETL_ID,CLR_OPTINS,CLR_WAY,CLR_TYPE,CXZT,OLD_SETL_ID,CZY,CZSJ,FPHM,KLS,YJJZF,SJZF,SETL_LIST_ID,STMT_RSLT,ZKBL,ZKJE,BBID,FZDATE,SCSJ,ISYZS,CHFPH,HI_PAYMTD,STAS_TYPE,ISDZFP,ZDZBPKEY from HIS_YB_JSB where JGID=? and jzlx=? and (cxzt=0 or (cxzt='1' and OLD_SETL_ID is null) ) order by zdzbpkey,cxzt,czsj desc
12
12
select PKEY,JGID,JZLX,MDTRT_ID,SETL_ID,IPT_NO,PSN_NO,PSN_NAME,PSN_CERT_TYPE,CERTNO,GEND,NATY,BRDY,AGE,INSUTYPE,PSN_SETLWAY,ACCT_USED_FLAG,MID_SETL_FLAG,PSN_TYPE,CVLSERV_FLAG,SETL_TIME,MDTRT_CERT_TYPE,MED_TYPE,MEDFEE_SUMAMT,FUND_PAY_SUMAMT,PSN_PART_AMT,ACCT_PAY,PSN_CASH_PAY,CASH_TYPE,HOSP_PART_AMT,BALC,ACCT_MULAID_PAY,FULAMT_OWNPAY_AMT,OVERLMT_SELFPAY,PRESELFPAY_AMT,INSCP_SCP_AMT,ACT_PAY_DEDC,HIFP_PAY,POOL_PROP_SELFPAY,CVLSERV_PAY,HIFES_PAY,HIFMI_PAY,HIFOB_PAY,MAF_PAY,OTH_PAY,HIFDM_PAY,MEDINS_SETL_ID,CLR_OPTINS,CLR_WAY,CLR_TYPE,CXZT,OLD_SETL_ID,CZY,CZSJ,FPHM,KLS,YJJZF,SJZF,SETL_LIST_ID,STMT_RSLT,ZKBL,ZK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