You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
1531 lines
69 KiB
1531 lines
69 KiB
3 months ago
|
<?xml version="1.0" encoding="UTF-8"?>
|
||
|
<datasource> <!-- 1 表示 sql语句dao 2表示存储过程dao 默认为sql语句dao-->
|
||
|
<dao id="scjgdao" cache="true" type="1">
|
||
|
<sql>select JGMC,PKEY,JKPTJGBM from MAIN_YLJG where JKPTJGBM is not null</sql>
|
||
|
<fields>
|
||
|
<f name="JGMC" type="12" />
|
||
|
<f name="PKEY" type="12" />
|
||
|
<f name="JKPTJGBM" type="12" />
|
||
|
</fields>
|
||
|
</dao>
|
||
|
<dao id="yyyfallDic" cache="true" log="true" type="1" memo="用药用法字典">
|
||
|
<sql>
|
||
|
select BM,MC,MS,PX,SFYX,ZJM,PRINTNAME,MRDS,JGID,YBBM,YBMC,JKPTBM,JKPTMC from HIS_YZ_YPYF where JGID=? order by px,bm
|
||
|
</sql>
|
||
|
<tables>
|
||
|
<table name="HIS_YZ_YPYF" insert="false" update="false" delete="false">
|
||
|
<primary>BM</primary>
|
||
|
<primary>JGID</primary>
|
||
|
</table>
|
||
|
</tables>
|
||
|
<fields>
|
||
|
<f name="BM" type="12" table="HIS_YZ_YPYF" />
|
||
|
<f name="MC" type="12" table="HIS_YZ_YPYF" />
|
||
|
<f name="MS" type="12" table="HIS_YZ_YPYF" />
|
||
|
<f name="PX" type="8" table="HIS_YZ_YPYF" />
|
||
|
<f name="SFYX" type="12" table="HIS_YZ_YPYF" />
|
||
|
<f name="ZJM" type="12" table="HIS_YZ_YPYF" />
|
||
|
<f name="PRINTNAME" type="12" table="HIS_YZ_YPYF" />
|
||
|
<f name="MRDS" type="12" table="HIS_YZ_YPYF" />
|
||
|
<f name="JGID" type="12" table="HIS_YZ_YPYF" />
|
||
|
<f name="YBBM" type="12" table="HIS_YZ_YPYF" />
|
||
|
<f name="YBMC" type="12" table="HIS_YZ_YPYF" />
|
||
|
<f name="JKPTBM" type="12" table="HIS_YZ_YPYF" />
|
||
|
<f name="JKPTMC" type="12" table="HIS_YZ_YPYF" />
|
||
|
</fields>
|
||
|
<parameter>
|
||
|
<p>12</p>
|
||
|
</parameter>
|
||
|
</dao>
|
||
|
<dao id="yypcallDic" cache="true" log="true" type="1" memo="用药频次">
|
||
|
<sql>select BM,MC,CS,PX,ZJM,SFYX,PRINTNAME,JGID,PCJZTS,JKPTBM,JKPTMC from HIS_YZ_PC where JGID=? order by PX</sql>
|
||
|
<tables>
|
||
|
<table name="HIS_YZ_PC" insert="false" update="false" delete="false">
|
||
|
<primary>BM</primary>
|
||
|
<primary>MC</primary>
|
||
|
<primary>JGID</primary>
|
||
|
</table>
|
||
|
</tables>
|
||
|
<fields>
|
||
|
<f name="BM" type="12" table="HIS_YZ_PC" />
|
||
|
<f name="MC" type="12" table="HIS_YZ_PC" />
|
||
|
<f name="CS" type="8" table="HIS_YZ_PC" />
|
||
|
<f name="PX" type="8" table="HIS_YZ_PC" />
|
||
|
<f name="ZJM" type="12" table="HIS_YZ_PC" />
|
||
|
<f name="SFYX" type="12" table="HIS_YZ_PC" />
|
||
|
<f name="PRINTNAME" type="12" table="HIS_YZ_PC" />
|
||
|
<f name="JGID" type="12" table="HIS_YZ_PC" />
|
||
|
<f name="PCJZTS" type="8" table="HIS_YZ_PC" />
|
||
|
<f name="JKPTBM" type="12" table="HIS_YZ_PC" />
|
||
|
<f name="JKPTMC" type="12" table="HIS_YZ_PC" />
|
||
|
</fields>
|
||
|
<parameter>
|
||
|
<p>12</p>
|
||
|
</parameter>
|
||
|
</dao>
|
||
|
<dao id="dwalldic" type="1" cache="true" memo="单位字典">
|
||
|
<sql>select ZDZB_BH,BH,MC,PYM,WBM,VALUE1,VALUE2,XH,ZT from MAIN_ZDB where ZDZB_BH='000014' order by XH asc,BH asc</sql>
|
||
|
<tables>
|
||
|
<table name="MAIN_ZDB" insert="false" update="false" delete="false">
|
||
|
<primary>ZDZB_BH</primary>
|
||
|
<primary>BH</primary>
|
||
|
</table>
|
||
|
</tables>
|
||
|
<fields>
|
||
|
<f name="ZDZB_BH" type="12" table="MAIN_ZDB" />
|
||
|
<f name="BH" type="12" table="MAIN_ZDB" />
|
||
|
<f name="MC" type="12" table="MAIN_ZDB" />
|
||
|
<f name="PYM" type="12" table="MAIN_ZDB" />
|
||
|
<f name="WBM" type="12" table="MAIN_ZDB" />
|
||
|
<f name="VALUE1" type="12" table="MAIN_ZDB" />
|
||
|
<f name="VALUE2" type="12" table="MAIN_ZDB" />
|
||
|
<f name="XH" type="-5" table="MAIN_ZDB" />
|
||
|
<f name="ZT" type="12" table="MAIN_ZDB" />
|
||
|
</fields>
|
||
|
</dao>
|
||
|
<dao id="sfxmmldao" log="true" type="1">
|
||
|
<sql>select p.PKEY scpkey,a.BM XMDM,'0' PTZXDM,a.MC XMMC,(case a.GLLX when 'Y' then y.GG when 'W' then w.WZGG else '' end ) XMGG,z.MC XMFL,dw.MC XMDW,a.JBJG XMDJ,'' ZGXJ,'1' JLZT,'' XMWSDM,z.VALUE3 SFXMLB,'0' YNZJBZ,'0' ZRCLBZ,'0' GHCBZ
|
||
|
from HIS_SFX a
|
||
|
left join JKPTSC p on a.JGID=p.JGID and p.PTBM='JC_SFXMML' and p.col1=a.BM
|
||
|
left join HIS_YPXX y on a.BM=y.BM and a.GLLX='Y'
|
||
|
left join HIS_MMS_WZZD w on a.BM=w.WZBM and a.GLLX='W'
|
||
|
left join MAIN_JGZDB z on z.JGID=a.JGID and z.JGZDLB_BH='Z00004' and a.FYZL=z.BH
|
||
|
left join MAIN_ZDB dw on dw.zdzb_bh='000014' and a.JBDW=dw.BH
|
||
|
where a.zt='1' and nvl(p.ptsczt,'0')='0' and a.JGID=?</sql>
|
||
|
<fields>
|
||
|
<f name="SCPKEY" type="12" />
|
||
|
<f name="XMDM" type="12" />
|
||
|
<f name="PTZXDM" type="12" />
|
||
|
<f name="XMMC" type="12" />
|
||
|
<f name="XMGG" type="12" />
|
||
|
<f name="XMFL" type="12" />
|
||
|
<f name="XMDW" type="12" />
|
||
|
<f name="XMDJ" type="8" />
|
||
|
<f name="ZGXJ" type="12" />
|
||
|
<f name="JLZT" type="12" />
|
||
|
<f name="XMWSDM" type="12" />
|
||
|
<f name="SFXMLB" type="12" />
|
||
|
<f name="YNZJBZ" type="12" />
|
||
|
<f name="ZRCLBZ" type="12" />
|
||
|
<f name="GHCBZ" type="12" />
|
||
|
</fields>
|
||
|
<parameter>
|
||
|
<p>12</p>
|
||
|
</parameter>
|
||
|
</dao>
|
||
|
<dao id="zlxmmldao" log="true" type="1">
|
||
|
<sql>select p.PKEY scpkey,a.BM XMDM,'0' PTZXDM,a.MC XMMC,'' XMGG,dw.MC XMDW,a.JBJG XMDJ,'' ZGXJ,'1' JLZT
|
||
|
from HIS_SFX a
|
||
|
left join JKPTSC p on a.JGID=p.JGID and p.PTBM='JC_ZLXMML' and p.col1=a.BM
|
||
|
left join MAIN_JGZDB z on z.JGID=a.JGID and z.JGZDLB_BH='Z00004' and a.FYZL=z.BH
|
||
|
left join MAIN_ZDB dw on dw.zdzb_bh='000014' and a.JBDW=dw.BH
|
||
|
where a.zt='1' and nvl(p.ptsczt,'0')='0' and a.JGID=? and z.VALUE3 in ('02','03','04','06','07','08','09','10','11','18','19','21','22','23','24')</sql>
|
||
|
<fields>
|
||
|
<f name="SCPKEY" type="12" />
|
||
|
<f name="XMDM" type="12"/>
|
||
|
<f name="PTZXDM" type="1" />
|
||
|
<f name="XMMC" type="12" />
|
||
|
<f name="XMGG" type="12" />
|
||
|
<f name="XMDW" type="12" />
|
||
|
<f name="XMDJ" type="8" />
|
||
|
<f name="ZGXJ" type="12" />
|
||
|
<f name="JLZT" type="12" />
|
||
|
</fields>
|
||
|
<parameter>
|
||
|
<p>12</p>
|
||
|
</parameter>
|
||
|
</dao>
|
||
|
<dao id="getclmldao" log="true" type="1">
|
||
|
<sql>select p.PKEY scpkey,a.WZBM CLDM,'0' PTZXDM,a.WZMC CLMC,a.CLFL CLFLDM,dw.MC CLDW,nvl(a.ISGZ,'0') GZHCBZ,'0' YZBXBZ,nvl(a.ISZR,'0') ZRWBZ,a.WZJJ JZJG,'' ZGXJ,'' GYSMC,'' GYSDM,'' SCPH,cs.MC SCCJMC,a.WZCD CD,'' SCRQ,''YXQ ,'1' JLZT
|
||
|
from HIS_MMS_WZZD a
|
||
|
left join JKPTSC p on a.JGID=p.JGID and p.PTBM='JC_CLML' and p.col1=a.WZBM
|
||
|
left join MAIN_ZDB dw on dw.zdzb_bh='000014' and a.JBDW=dw.BH
|
||
|
left join HIS_CSXX cs on a.WZCS=cs.BM
|
||
|
where a.zt='1' and nvl(p.ptsczt,'0')='0' and a.CLFL is not null and a.JGID=? </sql>
|
||
|
<fields>
|
||
|
<f name="SCPKEY" type="12" />
|
||
|
<f name="CLDM" type="12" />
|
||
|
<f name="PTZXDM" type="12" />
|
||
|
<f name="CLMC" type="12" />
|
||
|
<f name="CLFLDM" type="12" />
|
||
|
<f name="CLDW" type="12" />
|
||
|
<f name="GZHCBZ" type="12" />
|
||
|
<f name="YZBXBZ" type="12" />
|
||
|
<f name="ZRWBZ" type="12" />
|
||
|
<f name="JZJG" type="8" />
|
||
|
<f name="ZGXJ" type="12" />
|
||
|
<f name="GYSMC" type="12" />
|
||
|
<f name="GYSDM" type="12" />
|
||
|
<f name="SCPH" type="12" />
|
||
|
<f name="SCCJMC" type="12" />
|
||
|
<f name="CD" type="12" />
|
||
|
<f name="SCRQ" type="12" />
|
||
|
<f name="YXQ" type="12" />
|
||
|
<f name="JLZT" type="12" />
|
||
|
</fields>
|
||
|
<parameter>
|
||
|
<p>12</p>
|
||
|
</parameter>
|
||
|
</dao>
|
||
|
<dao id="getdxmdao" log="true" type="1">
|
||
|
<sql>select p.PKEY scpkey,a.YZX_BM LCXMDM,a.SFX_BM SFXMDM,'0' LCXMPTZXDM,'0' SFXMPTZXDM,a.SL DYXMSL,'0' JLZT
|
||
|
from HIS_YZX_SFX a
|
||
|
left join HIS_SFX b on a.JGID=b.JGID and a.SFX_BM=b.BM
|
||
|
left join JKPTSC p on a.JGID=p.JGID and p.PTBM='JC_ZLSFXMDYB' and p.col1=a.YZX_BM and p.col2=a.SFX_BM
|
||
|
where nvl(p.ptsczt,'0')='0' and a.JGID=?</sql>
|
||
|
<fields>
|
||
|
<f name="SCPKEY" type="12" />
|
||
|
<f name="LCXMDM" type="12" />
|
||
|
<f name="SFXMDM" type="12" />
|
||
|
<f name="LCXMPTZXDM" type="12" />
|
||
|
<f name="SFXMPTZXDM" type="12" />
|
||
|
<f name="DYXMSL" type="8" />
|
||
|
<f name="JLZT" type="12" />
|
||
|
</fields>
|
||
|
<parameter>
|
||
|
<p>12</p>
|
||
|
</parameter>
|
||
|
</dao>
|
||
|
<dao id="getjbzddao" log="true" type="1">
|
||
|
<sql>select a.DISE_TYPE ZDLXDM,a.DISE_CODG YNZDDM,a.DISE_NAME YNZDMC,a.DISE_CODG PTZXDM,a.DISE_NAME PTZXMC,'1' JLZT
|
||
|
from HIS_YB_JB a where a.DISE_TYPE='0' or a.DISE_TYPE='4'</sql>
|
||
|
<fields>
|
||
|
<f name="ZDLXDM" type="12" />
|
||
|
<f name="YNZDDM" type="12" />
|
||
|
<f name="YNZDMC" type="12" />
|
||
|
<f name="PTZXDM" type="12" />
|
||
|
<f name="PTZXMC" type="12" />
|
||
|
<f name="JLZT" type="12" />
|
||
|
</fields>
|
||
|
</dao>
|
||
|
<dao id="getssdmdao" log="true" type="1">
|
||
|
<sql>select a.DISE_CODG YNSSDM,a.DISE_NAME YNSSMC,a.DISE_CODG PTZXDM,a.DISE_NAME PTZXMC,'1' JLZT
|
||
|
from HIS_YB_JB a where a.DISE_TYPE='6'</sql>
|
||
|
<fields>
|
||
|
<f name="YNSSDM" type="12" />
|
||
|
<f name="YNSSMC" type="12" />
|
||
|
<f name="PTZXDM" type="12" />
|
||
|
<f name="PTZXMC" type="12" />
|
||
|
<f name="JLZT" type="12" />
|
||
|
</fields>
|
||
|
</dao>
|
||
|
<dao id="getjsxx" log="true" type="1">
|
||
|
<sql>select * from (select a.NATY,a.INSUTYPE,a.EMP_NAME from HIS_YB_DJ a left join HIS_JZ_BASEINFO j on a.JGID=j.JGID and a.KLS=j.PKEY where j.JGID=? and j.HZPKEY=? order by CZSJ desc) where rownum=1</sql>
|
||
|
<fields>
|
||
|
<f name="NATY" type="12" />
|
||
|
<f name="INSUTYPE" type="12" />
|
||
|
<f name="EMP_NAME" type="12" />
|
||
|
</fields>
|
||
|
<parameter>
|
||
|
<p>12</p>
|
||
|
<p>12</p>
|
||
|
</parameter>
|
||
|
</dao>
|
||
|
<dao id="gethzjbxxdao" log="true" type="1">
|
||
|
<sql><![CDATA[select p.PKEY scpkey,a.PKEY YYDAH,a.PKEY KH,'8' KLX,a.ZJHM,a.ZJLX,a.XB,a.XM,'0' HZLX,a.HZLX BXLX,a.HYZK,a.CSRQ,a.MZ,nvl(a.GJ,'156') GJ,a.TEL DHHM,a.XZDZ JZDZ,a.JGDZ HKDZ,a.LXR LXRXM,a.LXRGX,a.LXRDH,'1-9' ZYLBDM,a.CJRQ JDRQSJ,a.CJR JDZXM
|
||
|
from HIS_HZINFO a
|
||
|
left join JKPTSC p on a.JGID=p.JGID and p.PTBM='JC_HZJBXXB' and p.col1=a.PKEY
|
||
|
where nvl(p.ptsczt,'0')='0' and a.JGID=? and a.CJRQ<=? ]]></sql>
|
||
|
<fields>
|
||
|
<f name="SCPKEY" type="12" />
|
||
|
<f name="YYDAH" type="12" />
|
||
|
<f name="KH" type="12" />
|
||
|
<f name="KLX" type="12" />
|
||
|
<f name="ZJHM" type="12" />
|
||
|
<f name="ZJLX" type="12" />
|
||
|
<f name="XB" type="12" />
|
||
|
<f name="XM" type="12" />
|
||
|
<f name="HZLX" type="12" />
|
||
|
<f name="BXLX" type="12" />
|
||
|
<f name="HYZK" type="12" />
|
||
|
<f name="CSRQ" type="93" />
|
||
|
<f name="MZ" type="12" />
|
||
|
<f name="GJ" type="12" />
|
||
|
<f name="DHHM" type="12" />
|
||
|
<f name="JZDZ" type="12" />
|
||
|
<f name="HKDZ" type="12" />
|
||
|
<f name="LXRXM" type="12" />
|
||
|
<f name="LXRGX" type="12" />
|
||
|
<f name="LXRDH" type="12" />
|
||
|
<f name="ZYLBDM" type="12" />
|
||
|
<f name="JDRQSJ" type="93" />
|
||
|
<f name="JDZXM" type="12" />
|
||
|
</fields>
|
||
|
<parameter>
|
||
|
<p>12</p>
|
||
|
<p>93</p>
|
||
|
</parameter>
|
||
|
</dao>
|
||
|
<dao id="getyhryxxdao" log="true" type="1">
|
||
|
<sql> select p.PKEY scpkey,a.USERID ZGBM,b.USERACCOUNT GH,b.NAME XM,b.SEX Xb,b.BIRTHDAY CSRQ,b.MZ MZDM,b.IDTYPE SFBSLBDM,b.IDENTITYID SFBSHM,d.DPTID SSKS,d.DPTNAME SSKSMC,y.VALUE3 SSZXKSDM,'90' RYLB,'0' Ghzt,'2' BZQK,'0' SJTRYBZ,'1' GZZT,'2' PXLB,'0' SFNRQKYSPX,d.DPTYBCODE
|
||
|
from MAIN_JGYH a
|
||
|
left join MAIN_YHXX b on a.EMPID=b.EMPID
|
||
|
left join JKPTSC p on a.JGID=p.JGID and p.PTBM='JC_YHRYXXB' and p.col1=a.USERID
|
||
|
left join MAIN_KS d on a.JGID=d.JGID and a.MRKS=d.DPTID
|
||
|
left join HIS_YB_DMZDB y on y.LBBM='caty' and d.DPTYBCODE=y.BM
|
||
|
where a.EFFICET='0' and nvl(p.ptsczt,'0')='0' and b.USERACCOUNT is not null and a.JGID=?</sql>
|
||
|
<fields>
|
||
|
<f name="SCPKEY" type="12"/>
|
||
|
<f name="ZGBM" type="12"/>
|
||
|
<f name="GH" type="12"/>
|
||
|
<f name="XM" type="12" />
|
||
|
<f name="XB" type="12" />
|
||
|
<f name="CSRQ" type="12" />
|
||
|
<f name="MZDM" type="12" />
|
||
|
<f name="SFBSLBDM" type="12" />
|
||
|
<f name="SFBSHM" type="12" />
|
||
|
<f name="SSKS" type="12" />
|
||
|
<f name="SSKSMC" type="12" />
|
||
|
<f name="SSZXKSDM" type="12" />
|
||
|
<f name="RYLB" type="12" />
|
||
|
<f name="GHZT" type="12" />
|
||
|
<f name="BZQK" type="12" />
|
||
|
<f name="SJTRYBZ" type="12" />
|
||
|
<f name="GZZT" type="12" />
|
||
|
<f name="PXLB" type="12" />
|
||
|
<f name="SFNRQKYSPX" type="12" />
|
||
|
<f name="DPTYBCODE" type="12" />
|
||
|
</fields>
|
||
|
<parameter>
|
||
|
<p>12</p>
|
||
|
</parameter>
|
||
|
</dao>
|
||
|
<dao id="getyqsbdao" log="true" type="1">
|
||
|
<sql>select p.PKEY scpkey,a.JGID,a.PKEY,a.SBH YQBH,a.YQMC from LIS_YQSBDJ a
|
||
|
left join JKPTSC p on a.JGID=p.JGID and p.PTBM='JC_YQSBB' and p.col1=a.SBH
|
||
|
where nvl(p.ptsczt,'0')='0' and a.JGID=?</sql>
|
||
|
<fields>
|
||
|
<f name="SCPKEY" type="12" />
|
||
|
<f name="JGID" type="12" />
|
||
|
<f name="PKEY" type="12" />
|
||
|
<f name="YQBH" type="12" />
|
||
|
<f name="YQMC" type="12" />
|
||
|
</fields>
|
||
|
<parameter>
|
||
|
<p>12</p>
|
||
|
</parameter>
|
||
|
</dao>
|
||
|
<dao id="getksbdao" log="true" type="1">
|
||
|
<sql>select p.PKEY scpkey,a.DPTID KSDM,a.DPTNAME KSMC,y.VALUE3 WSJDM,y.VALUE3 SBJDM,'1' mzlx,'0' Ghzt,'0' ZYKSBZ
|
||
|
from MAIN_KS a
|
||
|
left join JKPTSC p on a.JGID=p.JGID and p.PTBM='JC_KSXXB' and p.col1=a.DPTID
|
||
|
left join HIS_YB_DMZDB y on y.LBBM='caty' and a.DPTYBCODE=y.BM
|
||
|
where a.DPTFLAG='1' and nvl(p.ptsczt,'0')='0' and a.JGID=?</sql>
|
||
|
<fields>
|
||
|
<f name="SCPKEY" type="12"/>
|
||
|
<f name="KSDM" type="12"/>
|
||
|
<f name="KSMC" type="12" />
|
||
|
<f name="WSJDM" type="12" />
|
||
|
<f name="SBJDM" type="12" />
|
||
|
<f name="MZLX" type="1" />
|
||
|
<f name="GHZT" type="1" />
|
||
|
<f name="ZYKSBZ" type="1" />
|
||
|
</fields>
|
||
|
<parameter>
|
||
|
<p>12</p>
|
||
|
</parameter>
|
||
|
</dao>
|
||
|
<dao id="ptysdao" log="true" type="1">
|
||
|
<sql>select a.JGID,a.YBID,b.USERACCOUNT,b.NAME from MAIN_JGYH a left join MAIN_YHXX b on a.EMPID=b.EMPID where a.EFFICET='0' and a.JGID=?</sql>
|
||
|
<fields>
|
||
|
<f name="JGID" type="12" />
|
||
|
<f name="YBID" type="12" />
|
||
|
<f name="USERACCOUNT" type="12" />
|
||
|
<f name="NAME" type="12" />
|
||
|
</fields>
|
||
|
<parameter>
|
||
|
<p>12</p>
|
||
|
</parameter>
|
||
|
</dao>
|
||
|
|
||
|
<dao id="ksdao" log="true" type="1">
|
||
|
<sql>select a.JGID,a.DPTID,a.DPTNAME,ISJZ from MAIN_KS a where a.JGID=?</sql>
|
||
|
<fields>
|
||
|
<f name="JGID" type="12" />
|
||
|
<f name="DPTID" type="12" />
|
||
|
<f name="DPTNAME" type="12" />
|
||
|
<f name="ISJZ" type="12" />
|
||
|
</fields>
|
||
|
<parameter>
|
||
|
<p>12</p>
|
||
|
</parameter>
|
||
|
</dao>
|
||
|
<dao id="getmzghdao" log="true" type="1">
|
||
|
<sql><![CDATA[ select p.PKEY scpkey,a.JGID,a.PKEY,a.MDTRT_ID JZLSH,'1' GTHBZ,a.KLS YYDAH,'8' KLX,b.HZPKEY KH,a.CERTNO ZJHM,'01' ZJLX,a.PSN_NAME XM,a.GEND XB,a.BRDY CSRQ,c.FPHM FPH, a.BEGNTIME GHSJ,'100' GHLB,a.INSUTYPE BXLX,a.ADM_DEPT_CODG KSBM,a.ATDDR_NO Ysbm,'0' TXBZ,'0' WDBZ,0 ZFZLF,nvl(MEDFEE_SUMAMT,0) ZLF,0 QTF,'2' JZZT,a.CZR GHCZYGH,e.name GHCZYXM
|
||
|
from HIS_YB_DJ a
|
||
|
left join JKPTSC p on a.JGID=p.JGID and p.PTBM='MZ_GHB' and p.col1=a.PKEY
|
||
|
left join HIS_JZ_BASEINFO b on a.JGID=b.JGID and a.kls=b.PKEY
|
||
|
left join HIS_YB_JSB c on a.JGID=c.JGID and a.IPT_NO=c.IPT_NO and a.MDTRT_ID=c.MDTRT_ID and c.CXZT='0'
|
||
|
left join MAIN_YHXX e on a.czr=e.useraccount
|
||
|
where a.JZLX='MZ' and a.DJCXZT='0' and nvl(p.ptsczt,'0')='0' and a.JGID=? and a.CZSJ<=? ]]></sql>
|
||
|
<fields>
|
||
|
<f name="SCPKEY" type="12"/>
|
||
|
<f name="JGID" type="12"/>
|
||
|
<f name="PKEY" type="12" />
|
||
|
<f name="JZLSH" type="12" />
|
||
|
<f name="GTHBZ" type="1" />
|
||
|
<f name="YYDAH" type="12" />
|
||
|
<f name="KLX" type="12" />
|
||
|
<f name="KH" type="12" />
|
||
|
<f name="ZJHM" type="12" />
|
||
|
<f name="ZJLX" type="12" />
|
||
|
<f name="XM" type="12" />
|
||
|
<f name="XB" type="12" />
|
||
|
<f name="CSRQ" type="93" />
|
||
|
<f name="FPH" type="12" />
|
||
|
<f name="GHSJ" type="93" />
|
||
|
<f name="GHLB" type="12" />
|
||
|
<f name="BXLX" type="12" />
|
||
|
<f name="KSBM" type="12" />
|
||
|
<f name="YSBM" type="12" />
|
||
|
<f name="TXBZ" type="12" />
|
||
|
<f name="WDBZ" type="12" />
|
||
|
<f name="ZFZLF" type="8" />
|
||
|
<f name="ZLF" type="8" />
|
||
|
<f name="QTF" type="8" />
|
||
|
<f name="JZZT" type="12" />
|
||
|
<f name="GHCZYGH" type="12" />
|
||
|
<f name="GHCZYXM" type="12" />
|
||
|
</fields>
|
||
|
<parameter>
|
||
|
<p>12</p>
|
||
|
<p>93</p>
|
||
|
</parameter>
|
||
|
</dao>
|
||
|
<dao id="gzzMzJbzdDao" log="true" type="1">
|
||
|
<sql>select PKEY,HZPKEY,JZPKEY,CARDPKEY,JBLX,JBBM,JBMC,JBZS,JZZT,FBSJ,JZSJ,ZYZX,SFZZD,XH,CJR,CJRQ,JGID,YBJBBM,YBJBMC,ZDYS,ZDLX,ZDJB,ZDKS,YBZHBM,YBZHMC,YBJBLX from HIS_JZ_MZZD where JGID=? and hzpkey=? and jzpkey=? order by sfzzd desc,xh</sql>
|
||
|
<tables>
|
||
|
<table name="HIS_JZ_MZZD" insert="false" update="false" delete="false">
|
||
|
<primary>PKEY</primary>
|
||
|
<primary>JGID</primary>
|
||
|
<primary>HZPKEY</primary>
|
||
|
<primary>JZPKEY</primary>
|
||
|
</table>
|
||
|
</tables>
|
||
|
<fields>
|
||
|
<f name="PKEY" type="12" table="HIS_JZ_MZZD" />
|
||
|
<f name="HZPKEY" type="12" table="HIS_JZ_MZZD" />
|
||
|
<f name="JZPKEY" type="12" table="HIS_JZ_MZZD" />
|
||
|
<f name="CARDPKEY" type="12" table="HIS_JZ_MZZD" />
|
||
|
<f name="JBLX" type="12" table="HIS_JZ_MZZD" />
|
||
|
<f name="JBBM" type="12" table="HIS_JZ_MZZD" />
|
||
|
<f name="JBMC" type="12" table="HIS_JZ_MZZD" />
|
||
|
<f name="JBZS" type="12" table="HIS_JZ_MZZD" />
|
||
|
<f name="JZZT" type="12" table="HIS_JZ_MZZD" />
|
||
|
<f name="FBSJ" type="93" table="HIS_JZ_MZZD" />
|
||
|
<f name="JZSJ" type="93" table="HIS_JZ_MZZD" />
|
||
|
<f name="ZYZX" type="12" table="HIS_JZ_MZZD" />
|
||
|
<f name="SFZZD" type="12" table="HIS_JZ_MZZD" />
|
||
|
<f name="XH" type="8" table="HIS_JZ_MZZD" />
|
||
|
<f name="CJR" type="12" table="HIS_JZ_MZZD" />
|
||
|
<f name="CJRQ" type="93" table="HIS_JZ_MZZD" />
|
||
|
<f name="JGID" type="12" table="HIS_JZ_MZZD" />
|
||
|
<f name="YBJBBM" type="12" table="HIS_JZ_MZZD" />
|
||
|
<f name="YBJBMC" type="12" table="HIS_JZ_MZZD" />
|
||
|
<f name="ZDYS" type="12" table="HIS_JZ_MZZD" />
|
||
|
<f name="ZDLX" type="12" table="HIS_JZ_MZZD" />
|
||
|
<f name="ZDJB" type="12" table="HIS_JZ_MZZD" />
|
||
|
<f name="ZDKS" type="12" table="HIS_JZ_MZZD" />
|
||
|
<f name="YBZHBM" type="12" table="HIS_JZ_MZZD" />
|
||
|
<f name="YBZHMC" type="12" table="HIS_JZ_MZZD" />
|
||
|
<f name="YBJBLX" type="12" table="HIS_JZ_MZZD" />
|
||
|
</fields>
|
||
|
<parameter>
|
||
|
<p>12</p>
|
||
|
<p>12</p>
|
||
|
<p>12</p>
|
||
|
</parameter>
|
||
|
</dao>
|
||
|
<dao id="getmzjzjldao" log="true" type="1">
|
||
|
<sql><![CDATA[select p.PKEY scpkey,a.JGID,a.PKEY,a.KLS,a.MDTRT_ID JZLSH,'0' JTYSQYBZ,'8' KLXDM,b.HZPKEY KHM,a.CERTNO ZJHM,'01' ZJLX,a.PSN_NAME XM,a.AGE NL,a.INSUTYPE BXLX,'100' JZLXDM,a.ADM_DEPT_CODG JZKSDM,a.ADM_DEPT_NAME JZKSMC,a.BEGNTIME JZSJ,a.ATDDR_NO ZDYSDM,a.CHFPDR_NAME ZDYSXM,'0' LYGCBZ,c.SETL_TIME SFSJ,c.FUND_PAY_SUMAMT YBJE,c.PSN_PART_AMT ZFJE, 0 YHJE,c.PSN_PART_AMT SSJE,c.MEDFEE_SUMAMT ZJE,
|
||
|
b.JZZB CFZBZ,b.PKEY JZPKEY,b.HZPKEY
|
||
|
from HIS_YB_DJ a
|
||
|
left join JKPTSC p on a.JGID=p.JGID and p.PTBM='MZ_JZJLB' and p.col1=a.PKEY
|
||
|
left join HIS_JZ_BASEINFO b on a.JGID=b.JGID and a.kls=b.PKEY
|
||
|
left join HIS_YB_JSB c on a.JGID=c.JGID and a.IPT_NO=c.IPT_NO and a.MDTRT_ID=c.MDTRT_ID and c.CXZT='0'
|
||
|
left join MAIN_YHXX e on a.czr=e.useraccount
|
||
|
where a.JZLX='MZ' and a.DJCXZT='0' and nvl(p.ptsczt,'0')='0' and c.SETL_ID is not null and a.JGID=? and a.CZSJ<=?]]></sql>
|
||
|
<fields>
|
||
|
<f name="SCPKEY" type="12" />
|
||
|
<f name="JGID" type="12" />
|
||
|
<f name="PKEY" type="12" />
|
||
|
<f name="KLS" type="12" />
|
||
|
<f name="JZLSH" type="12" />
|
||
|
<f name="JTYSQYBZ" type="1" />
|
||
|
<f name="KLXDM" type="1" />
|
||
|
<f name="KHM" type="12" />
|
||
|
<f name="ZJHM" type="12" />
|
||
|
<f name="ZJLX" type="1" />
|
||
|
<f name="XM" type="12" />
|
||
|
<f name="NL" type="12" />
|
||
|
<f name="BXLX" type="12" />
|
||
|
<f name="JZLXDM" type="1" />
|
||
|
<f name="JZKSDM" type="12" />
|
||
|
<f name="JZKSMC" type="12" />
|
||
|
<f name="JZSJ" type="93" />
|
||
|
<f name="ZDYSDM" type="12" />
|
||
|
<f name="ZDYSXM" type="12" />
|
||
|
<f name="LYGCBZ" type="1" />
|
||
|
<f name="SFSJ" type="93" />
|
||
|
<f name="YBJE" type="8" />
|
||
|
<f name="ZFJE" type="8" />
|
||
|
<f name="YHJE" type="8" />
|
||
|
<f name="SSJE" type="8" />
|
||
|
<f name="ZJE" type="8" />
|
||
|
<f name="CFZBZ" type="12" />
|
||
|
<f name="JZPKEY" type="12" />
|
||
|
<f name="HZPKEY" type="12" />
|
||
|
</fields>
|
||
|
<parameter>
|
||
|
<p>12</p>
|
||
|
<p>93</p>
|
||
|
</parameter>
|
||
|
</dao>
|
||
|
<dao id="xmdwdao" type="1">
|
||
|
<sql>select 编号,名称,cHosCode,PYM from 项目单位表 where cHosCode like ? order by 编号
|
||
|
</sql>
|
||
|
<tables>
|
||
|
<table delete="true" insert="true" name="项目单位表" update="true">
|
||
|
<primary>编号</primary>
|
||
|
<primary>cHosCode</primary>
|
||
|
</table>
|
||
|
</tables>
|
||
|
<fields>
|
||
|
<f name="编号" table="项目单位表" type="12"/>
|
||
|
<f name="名称" table="项目单位表" type="12"/>
|
||
|
<f name="cHosCode" table="项目单位表" type="12"/>
|
||
|
<f name="PYM" table="项目单位表" type="12"/>
|
||
|
</fields>
|
||
|
<parameter>
|
||
|
<p>12</p>
|
||
|
</parameter>
|
||
|
</dao>
|
||
|
<dao id="getmzcfmxdao" log="true" type="1">
|
||
|
<sql><![CDATA[select p.PKEY scpkey,a.JGID,a.PKEY,a.MDTRT_ID JZLSH,c.SETL_ID jslsh,b.HZPKEY KH,'8' KLX,a.CERTNO ZJHM,'01' ZJLX,a.PSN_NAME XM,a.GEND XB,a.BRDY CSRQ,'100' JZLXDM,a.INSUTYPE BXLX,a.ADM_DEPT_CODG JZKSDM,a.ADM_DEPT_NAME JZKSMC,a.ATDDR_NO ZDYSDM,a.CHFPDR_NAME ZDYSXM,a.BEGNTIME KFSJ,
|
||
|
b.PKEY JZPKEY,b.HZPKEY
|
||
|
from HIS_YB_DJ a
|
||
|
left join JKPTSC p on a.JGID=p.JGID and p.PTBM='MZ_CFMXB' and p.col1=a.PKEY
|
||
|
left join HIS_JZ_BASEINFO b on a.JGID=b.JGID and a.kls=b.PKEY
|
||
|
left join HIS_YB_JSB c on a.JGID=c.JGID and a.IPT_NO=c.IPT_NO and a.MDTRT_ID=c.MDTRT_ID and c.CXZT='0'
|
||
|
where a.JZLX='MZ' and a.DJCXZT='0' and c.SETL_ID is not null and nvl(p.ptsczt,'0')='0' and a.JGID=? and a.CZSJ<=? ]]></sql>
|
||
|
<fields>
|
||
|
<f name="SCPKEY" type="12" />
|
||
|
<f name="JGID" type="12" />
|
||
|
<f name="PKEY" type="12" />
|
||
|
<f name="JZLSH" type="12" />
|
||
|
<f name="JSLSH" type="12" />
|
||
|
<f name="KH" type="12" />
|
||
|
<f name="KLX" type="1" />
|
||
|
<f name="ZJHM" type="12" />
|
||
|
<f name="ZJLX" type="1" />
|
||
|
<f name="XM" type="12" />
|
||
|
<f name="XB" type="12" />
|
||
|
<f name="CSRQ" type="93" />
|
||
|
<f name="JZLXDM" type="1" />
|
||
|
<f name="BXLX" type="12" />
|
||
|
<f name="JZKSDM" type="12" />
|
||
|
<f name="JZKSMC" type="12" />
|
||
|
<f name="ZDYSDM" type="12" />
|
||
|
<f name="ZDYSXM" type="12" />
|
||
|
<f name="KFSJ" type="93" />
|
||
|
<f name="JZPKEY" type="12" />
|
||
|
<f name="HZPKEY" type="12" />
|
||
|
</fields>
|
||
|
<parameter>
|
||
|
<p>12</p>
|
||
|
<p>93</p>
|
||
|
</parameter>
|
||
|
</dao>
|
||
|
<dao id="yzmxdao" log="true" type="1">
|
||
|
<sql>
|
||
|
select a.PKEY YZLSH,a.CFH,a.YZLB,a.YZXPKEY YZXMDM,a.YZMC YZXMMC,a.YZXPKEY FUXMYYDM,s.YBBM FUXMWUDM,s.YBBM FWXMDM,s.YBMC FWXMMC,y.JX,y.GG,y.MC YPMC,'-' SCPH,to_date('2039-12-12','yyyy-mm-dd') YXQ,a.YZJL JL,a.YZJLDW JLDW,a.YZSL YWSYZSL,a.YZYF,a.YZPC,a.YZDJ XMDJ,a.YZJE XMJE,a.PS PSPB
|
||
|
from HIS_YZ_MXB a
|
||
|
left join HIS_SFX s on a.JGID=s.JGID and a.YZXPKEY=s.BM
|
||
|
left join HIS_YPXX y on a.YZXPKEY=y.BM
|
||
|
where a.JGID=? and a.HZPKEY=? and a.JZPKEY=?
|
||
|
</sql>
|
||
|
<fields>
|
||
|
<f name="YZLSH" type="12" />
|
||
|
<f name="CFH" type="12" />
|
||
|
<f name="YZLB" type="12" />
|
||
|
<f name="YZXMDM" type="12" />
|
||
|
<f name="YZXMMC" type="12" />
|
||
|
<f name="FUXMYYDM" type="12" />
|
||
|
<f name="FUXMWUDM" type="12" />
|
||
|
<f name="FWXMDM" type="12" />
|
||
|
<f name="FWXMMC" type="12" />
|
||
|
<f name="JX" type="12" />
|
||
|
<f name="GG" type="12" />
|
||
|
<f name="YPMC" type="12" />
|
||
|
<f name="SCPH" type="1" />
|
||
|
<f name="YXQ" type="93" />
|
||
|
<f name="JL" type="12" />
|
||
|
<f name="JLDW" type="12" />
|
||
|
<f name="YWSYZSL" type="12" />
|
||
|
<f name="YZYF" type="12" />
|
||
|
<f name="YZPC" type="12" />
|
||
|
<f name="XMDJ" type="12" />
|
||
|
<f name="XMJE" type="12" />
|
||
|
<f name="PSPB" type="12" />
|
||
|
</fields>
|
||
|
<parameter>
|
||
|
<p>12</p>
|
||
|
<p>12</p>
|
||
|
<p>12</p>
|
||
|
</parameter>
|
||
|
</dao>
|
||
|
|
||
|
<dao id="jkptscdao" log="true" type="1">
|
||
|
<sql>select PKEY,JGID,PTBM,COL1,COL2,COL3,PTSCZT from JKPTSC where 1=2</sql>
|
||
|
<tables>
|
||
|
<table name="JKPTSC" insert="true" update="true" delete="true">
|
||
|
<primary>PKEY</primary>
|
||
|
</table>
|
||
|
</tables>
|
||
|
<fields>
|
||
|
<f name="PKEY" type="12" table="JKPTSC" />
|
||
|
<f name="JGID" type="12" table="JKPTSC" />
|
||
|
<f name="PTBM" type="12" table="JKPTSC" />
|
||
|
<f name="COL1" type="12" table="JKPTSC" />
|
||
|
<f name="COL2" type="12" table="JKPTSC" />
|
||
|
<f name="COL3" type="12" table="JKPTSC" />
|
||
|
<f name="PTSCZT" type="12" table="JKPTSC" />
|
||
|
</fields>
|
||
|
</dao>
|
||
|
|
||
|
<dao id="fyhzdao" log="true" type="1">
|
||
|
<sql>
|
||
|
select nvl(b.VALUE4,'15') FYLB,sum(A.DET_ITEM_FEE_SUMAMT) fyzje
|
||
|
from HIS_YB_SCMX A
|
||
|
left join HIS_SFX f on a.JGID=f.JGID and a.MEDINS_LIST_CODG=f.BM
|
||
|
left join MAIN_JGZDB b on b.JGZDLB_BH='Z00002' and b.JGID=f.JGID and f.FYZL=b.BH
|
||
|
where a.ZT='0' and a.JGID=? and a.MDTRT_ID=? and a.setl_id=?
|
||
|
group by nvl(b.VALUE4,'15')
|
||
|
</sql>
|
||
|
<fields>
|
||
|
<f name="FYLB" type="12" />
|
||
|
<f name="FYZJE" type="4" />
|
||
|
</fields>
|
||
|
<parameter>
|
||
|
<p>12</p>
|
||
|
<p>12</p>
|
||
|
<p>12</p>
|
||
|
</parameter>
|
||
|
</dao>
|
||
|
<dao id="getmzjshzbdao" log="true" type="1">
|
||
|
<sql><![CDATA[
|
||
|
select p.PKEY scpkey,c.PKEY,c.SETL_ID SFLSH,c.OLD_SETL_ID ysflsh,c.MDTRT_ID JZLSH,'' JCLSH,c.FPHM FPH,b.HZPKEY KH,'8' KLX,'01' ZJLX,a.CERTNO ZJHM,a.PSN_NAME XM,'01' YLFKFS,'100' JZLXDM,a.INSUTYPE BXLX, '0' YBZHBZ,'1' WDBZ,'2' CFZS,'0' YZSSFBZ,c.SETL_TIME SFSJ,a.ADM_DEPT_CODG JZKSDM,a.ADM_DEPT_NAME JZKSMC,a.ATDDR_NO KFYSGH,a.CHFPDR_NAME KFYSXM,c.MEDFEE_SUMAMT ZJE,c.INSCP_SCP_AMT YBJE, c.FUND_PAY_SUMAMT YBZFJE,c.PSN_PART_AMT ZFJE,0 YHJE,c.BALC DNZHJE,0 LNZHJE,c.HIFP_PAY TCZJJE,c.PSN_PART_AMT FLZJJE,0 JZJE,c.CZY SFCZYGH
|
||
|
from HIS_YB_JSB c
|
||
|
left join JKPTSC p on c.JGID=p.JGID and p.PTBM='MZ_SFHZB' and p.col1=c.PKEY
|
||
|
left join HIS_YB_DJ a on a.JGID=c.JGID and a.IPT_NO=c.IPT_NO and a.MDTRT_ID=c.MDTRT_ID
|
||
|
left join HIS_JZ_BASEINFO b on a.JGID=b.JGID and a.kls=b.PKEY
|
||
|
where c.JZLX='MZ' and c.CXZT='0' and nvl(p.ptsczt,'0')='0' and c.JGID=? and a.CZSJ<=?
|
||
|
]]></sql>
|
||
|
<fields>
|
||
|
<f name="SCPKEY" type="12" />
|
||
|
<f name="PKEY" type="12" />
|
||
|
<f name="SFLSH" type="12" />
|
||
|
<f name="YSFLSH" type="12" />
|
||
|
<f name="JZLSH" type="12" />
|
||
|
<f name="JCLSH" type="1" />
|
||
|
<f name="FPH" type="12" />
|
||
|
<f name="KH" type="12" />
|
||
|
<f name="KLX" type="1" />
|
||
|
<f name="ZJLX" type="12" />
|
||
|
<f name="ZJHM" type="12" />
|
||
|
<f name="XM" type="12" />
|
||
|
<f name="YLFKFS" type="1" />
|
||
|
<f name="JZLXDM" type="1" />
|
||
|
<f name="BXLX" type="12" />
|
||
|
<f name="YBZHBZ" type="1" />
|
||
|
<f name="WDBZ" type="1" />
|
||
|
<f name="CFZS" type="1" />
|
||
|
<f name="YZSSFBZ" type="1" />
|
||
|
<f name="SFSJ" type="93" />
|
||
|
<f name="JZKSDM" type="12" />
|
||
|
<f name="JZKSMC" type="12" />
|
||
|
<f name="KFYSGH" type="12" />
|
||
|
<f name="KFYSXM" type="12" />
|
||
|
<f name="ZJE" type="8" />
|
||
|
<f name="YBJE" type="8" />
|
||
|
<f name="YBZFJE" type="8" />
|
||
|
<f name="ZFJE" type="8" />
|
||
|
<f name="YHJE" type="8" />
|
||
|
<f name="DNZHJE" type="8" />
|
||
|
<f name="LNZHJE" type="8" />
|
||
|
<f name="TCZJJE" type="8" />
|
||
|
<f name="FLZJJE" type="8" />
|
||
|
<f name="JZJE" type="8" />
|
||
|
<f name="SFCZYGH" type="12" />
|
||
|
</fields>
|
||
|
<parameter>
|
||
|
<p>12</p>
|
||
|
<p>93</p>
|
||
|
</parameter>
|
||
|
</dao>
|
||
|
<dao id="getmzsfmxbdao" log="true" type="1">
|
||
|
<sql><![CDATA[
|
||
|
select p.PKEY scpkey,c.PKEY,c.SETL_ID SFLSH,c.MDTRT_ID JZLSH,'' JCLSH,c.FPHM FPH,b.HZPKEY KH,'8' KLX,'01' ZJLX,a.CERTNO ZJHM,a.PSN_NAME XM,'100' JZLXDM,a.INSUTYPE BXLX, a.ADM_DEPT_CODG JZKSDM,a.ADM_DEPT_NAME JZKSMC,a.ATDDR_NO KFYSGH,a.CHFPDR_NAME KFYSXM,c.SETL_TIME STFSJ,c.CZY SFCZYGH,c.KLS
|
||
|
from HIS_YB_JSB c
|
||
|
left join JKPTSC p on c.JGID=p.JGID and p.PTBM='MZ_SFMXB' and p.col1=c.PKEY
|
||
|
left join HIS_YB_DJ a on a.JGID=c.JGID and a.IPT_NO=c.IPT_NO and a.MDTRT_ID=c.MDTRT_ID
|
||
|
left join HIS_JZ_BASEINFO b on a.JGID=b.JGID and a.kls=b.PKEY
|
||
|
where c.JZLX='MZ' and c.CXZT='0' and nvl(p.ptsczt,'0')='0' and c.JGID=? and a.CZSJ<=?
|
||
|
]]></sql>
|
||
|
<fields>
|
||
|
<f name="SCPKEY" type="12" />
|
||
|
<f name="PKEY" type="12" />
|
||
|
<f name="SFLSH" type="12" />
|
||
|
<f name="JZLSH" type="12" />
|
||
|
<f name="JCLSH" type="1" />
|
||
|
<f name="FPH" type="12" />
|
||
|
<f name="KH" type="12" />
|
||
|
<f name="KLX" type="1" />
|
||
|
<f name="ZJLX" type="12" />
|
||
|
<f name="ZJHM" type="12" />
|
||
|
<f name="XM" type="12" />
|
||
|
<f name="JZLXDM" type="1" />
|
||
|
<f name="BXLX" type="12" />
|
||
|
<f name="JZKSDM" type="12" />
|
||
|
<f name="JZKSMC" type="12" />
|
||
|
<f name="KFYSGH" type="12" />
|
||
|
<f name="KFYSXM" type="12" />
|
||
|
<f name="STFSJ" type="93" />
|
||
|
<f name="SFCZYGH" type="12" />
|
||
|
<f name="KLS" type="12" />
|
||
|
</fields>
|
||
|
<parameter>
|
||
|
<p>12</p>
|
||
|
<p>93</p>
|
||
|
</parameter>
|
||
|
</dao>
|
||
|
<dao id="sfmxdao" log="true" type="1">
|
||
|
<sql>select e.PKEY,b.ZDZBPKEY CFH,fy.VALUE4 MXFYLB,b.FYDL MXXMLB,e.MEDINS_LIST_CODG MXXMBM,e.MED_LIST_CODG MXXMYBBM,e.MEDINS_LIST_NAME MXXMMC,'-' MXXMGG,f.JBDW MXXMDW,e.PRIC MXXMDJ,e.CNT MXXMSL,e.DET_ITEM_FEE_SUMAMT MXXMJE,'-' SCPH,to_date('2039-12-12','yyyy-mm-dd') YXQ
|
||
|
from HIS_YB_SCMX e
|
||
|
left join HIS_SFZD_SFXMXB b on e.JGID=b.JGID and b.PKEY=e.feedetl_sn and e.SETL_ID=b.SETL_ID
|
||
|
left join HIS_SFX f on e.JGID=f.JGID and e.MEDINS_LIST_CODG=f.BM
|
||
|
left join MAIN_JGZDB fy on fy.JGZDLB_BH='Z00002' and fy.JGID=b.JGID and b.FYZL=fy.BH
|
||
|
where e.ZT='0' and e.JGID=? and e.MDTRT_ID=? and e.SETL_ID=?
|
||
|
</sql>
|
||
|
<fields>
|
||
|
<f name="PKEY" type="12" />
|
||
|
<f name="CFH" type="12" />
|
||
|
<f name="MXFYLB" type="12" />
|
||
|
<f name="MXXMLB" type="4" />
|
||
|
<f name="MXXMBM" type="12" />
|
||
|
<f name="MXXMYBBM" type="12" />
|
||
|
<f name="MXXMMC" type="12" />
|
||
|
<f name="MXXMGG" type="12" />
|
||
|
<f name="MXXMDW" type="12" />
|
||
|
<f name="MXXMDJ" type="8" />
|
||
|
<f name="MXXMSL" type="8" />
|
||
|
<f name="MXXMJE" type="8" />
|
||
|
<f name="SCPH" type="12" />
|
||
|
<f name="YXQ" type="93" />
|
||
|
</fields>
|
||
|
<parameter>
|
||
|
<p>12</p>
|
||
|
<p>12</p>
|
||
|
<p>12</p>
|
||
|
</parameter>
|
||
|
</dao>
|
||
|
<dao id="getjyjldao" log="true" type="1">
|
||
|
<sql><![CDATA[
|
||
|
select p.pkey scpkey,a.XH JYJLLSH,a.JYSJ BGRQ,a.KBM KH,'8' KLX,a.ZJHM,'01' ZJLX,a.XM,a.XB,a.NL,a.SJYS SQYSGH,a.JYYS BGYSGH,a.FHYS SHYSGH,nvl(a.DYSJ,a.FHSJ) DYRQ, a.SJSJ SQSJ,a.CYSJ CJSJ,a.JYSJ JYRQ,b.JKPTBM BBDM,b.JKPTMC BBMC,y.JKPTBM BGDLBBM,a.BRLX JLLB,a.BLH ZYH,a.CH,a.SJKS SQKSBM,'-' BQMC,a.tmh,
|
||
|
a.KLS
|
||
|
from LIS_BRJYXX a
|
||
|
left join JKPTSC p on a.JGID=p.JGID and p.PTBM='SY_JYJLB' and p.col1=a.XH
|
||
|
left join LIS_YBLX b on a.YBLX=b.BH
|
||
|
left join LIS_YQBGWH y on y.BH =a.JYYQ and y.JGID = a.JGID
|
||
|
where a.FBBZ='Y' and a.KLS is not null and a.JGID=? and nvl(p.ptsczt,'0')='0' and a.JYSJ<=?
|
||
|
]]></sql>
|
||
|
<fields>
|
||
|
<f name="SCPKEY" type="12" />
|
||
|
<f name="JYJLLSH" type="12" />
|
||
|
<f name="BGRQ" type="93" />
|
||
|
<f name="KH" type="12" />
|
||
|
<f name="KLX" type="1" />
|
||
|
<f name="ZJHM" type="12" />
|
||
|
<f name="ZJLX" type="1" />
|
||
|
<f name="XM" type="12" />
|
||
|
<f name="XB" type="12" />
|
||
|
<f name="NL" type="12" />
|
||
|
<f name="SQYSGH" type="12" />
|
||
|
<f name="BGYSGH" type="12" />
|
||
|
<f name="SHYSGH" type="12" />
|
||
|
<f name="DYRQ" type="93" />
|
||
|
<f name="SQSJ" type="93" />
|
||
|
<f name="CJSJ" type="93" />
|
||
|
<f name="JYRQ" type="93" />
|
||
|
<f name="BBDM" type="12" />
|
||
|
<f name="BBMC" type="12" />
|
||
|
<f name="BGDLBBM" type="12" />
|
||
|
<f name="JLLB" type="12" />
|
||
|
<f name="ZYH" type="12" />
|
||
|
<f name="CH" type="12" />
|
||
|
<f name="SQKSBM" type="4" />
|
||
|
<f name="BQMC" type="1" />
|
||
|
<f name="TMH" type="12" />
|
||
|
<f name="KLS" type="12" />
|
||
|
</fields>
|
||
|
<parameter>
|
||
|
<p>12</p>
|
||
|
<p>93</p>
|
||
|
</parameter>
|
||
|
</dao>
|
||
|
<dao id="jyjzlshdao" log="true" type="1">
|
||
|
<sql>select mdtrt_id from HIS_YB_DJ where JGID=? and IPT_NO=? and KLS=? and DJCXZT='0' order by CZSJ desc</sql>
|
||
|
<fields>
|
||
|
<f name="MDTRT_ID" type="12" />
|
||
|
</fields>
|
||
|
<parameter>
|
||
|
<p>12</p>
|
||
|
<p>12</p>
|
||
|
<p>12</p>
|
||
|
</parameter>
|
||
|
</dao>
|
||
|
<dao id="jyzhxmdao" log="true" type="1">
|
||
|
<sql>select ZHXM,ZHXMMC from LIS_JYXMSQ where JGID=? and TMH=?</sql>
|
||
|
<fields>
|
||
|
<f name="ZHXM" type="12" />
|
||
|
<f name="ZHXMMC" type="12" />
|
||
|
</fields>
|
||
|
<parameter>
|
||
|
<p>12</p>
|
||
|
<p>12</p>
|
||
|
</parameter>
|
||
|
</dao>
|
||
|
<dao id="getjyjgzbbdao" log="true" type="1">
|
||
|
<sql><![CDATA[select p.pkey scpkey,a.XH JYLSH,a.JYSJ BGRQ,a.JYYS JCRGH,a.FHYS SHRGH,'3' JYLBDM,'ZZZZZZZZZZZZZZZ' JYSFDM,'ZZZZZZZZZZZZZZZ' JYSFYBDM,t3.XMBM JYBZXMDM,t3.XMDH JYXMDM,t3.XMMC JYXMMC,t3.TSXX JYJGDM,
|
||
|
t3.JG,t3.JGLX,t3.DLJG,dw.CJDW JYJLDW,a.SBH YQBH,y.YQMC YQMC,t3.CKZ CKZFW,t3.DYSX DYXH
|
||
|
from LIS_BRJYXX a
|
||
|
left join JKPTSC p on a.JGID=p.JGID and p.PTBM='SY_JYJGZBB' and p.col1=a.XH
|
||
|
left join LIS_JYJG t3 on a.JGID = t3.JGID and a.SBH = t3.SBH and a.RJBH= t3.RJBH and a.YBH = t3.YBH
|
||
|
left join LIS_CJDW dw on t3.JYDW=dw.BH
|
||
|
left join LIS_YQSBDJ y on y.SBH =a.SBH and y.JGID = a.JGID
|
||
|
where a.FBBZ='Y' and a.KLS is not null and nvl(p.ptsczt,'0')='0' and t3.JGLX!='P' and t3.XMBM!='8888' and a.JGID=? and a.JYSJ<=?]]></sql>
|
||
|
<fields>
|
||
|
<f name="SCPKEY" type="12" />
|
||
|
<f name="JYLSH" type="12" />
|
||
|
<f name="BGRQ" type="93" />
|
||
|
<f name="JCRGH" type="12" />
|
||
|
<f name="SHRGH" type="12" />
|
||
|
<f name="JYLBDM" type="1" />
|
||
|
<f name="JYSFDM" type="1" />
|
||
|
<f name="JYSFYBDM" type="1" />
|
||
|
<f name="JYBZXMDM" type="12" />
|
||
|
<f name="JYXMDM" type="12" />
|
||
|
<f name="JYXMMC" type="12" />
|
||
|
<f name="JYJGDM" type="12" />
|
||
|
<f name="JG" type="12" />
|
||
|
<f name="JGLX" type="12" />
|
||
|
<f name="DLJG" type="12" />
|
||
|
<f name="JYJLDW" type="12" />
|
||
|
<f name="YQBH" type="12" />
|
||
|
<f name="YQMC" type="12" />
|
||
|
<f name="CKZFW" type="12" />
|
||
|
<f name="DYXH" type="-5" />
|
||
|
</fields>
|
||
|
<parameter>
|
||
|
<p>12</p>
|
||
|
<p>93</p>
|
||
|
</parameter>
|
||
|
</dao>
|
||
|
<dao id="getrydjbdao" log="true" type="1">
|
||
|
<sql><![CDATA[select p.pkey scpkey,a.JZNO JZLSH,'8' KLX,a.HZPKEY KH,b.SFZH ZJHM,'01' ZJLX,b.XM,b.XB,b.CSRQ,'2' RYLYDM,a.RYKS RYKSBM,a.WARD RYBQBM,a.JJRQ RYSJ,a.RYZD RYZDBM,'0' LGBZ,'0' ZFBZ,a.JJYS CZYGH
|
||
|
from HIS_JZ_BASEINFO a
|
||
|
left join JKPTSC p on a.JGID=p.JGID and p.PTBM='ZY_RYDJB' and p.col1=a.JZNO
|
||
|
left join HIS_HZINFO b on a.hzpkey = b.pkey and a.JGID=b.JGID
|
||
|
where a.JZLX='Z' and nvl(p.ptsczt,'0')='0' and a.JGID=? and a.JJRQ<=?]]></sql>
|
||
|
<fields>
|
||
|
<f name="SCPKEY" type="12" />
|
||
|
<f name="JZLSH" type="12" />
|
||
|
<f name="KLX" type="1" />
|
||
|
<f name="KH" type="12" />
|
||
|
<f name="ZJHM" type="12" />
|
||
|
<f name="ZJLX" type="12" />
|
||
|
<f name="XM" type="12" />
|
||
|
<f name="XB" type="12" />
|
||
|
<f name="CSRQ" type="93" />
|
||
|
<f name="RYLYDM" type="1" />
|
||
|
<f name="RYKSBM" type="12" />
|
||
|
<f name="RYBQBM" type="12" />
|
||
|
<f name="RYSJ" type="93" />
|
||
|
<f name="RYZDBM" type="12" />
|
||
|
<f name="LGBZ" type="1" />
|
||
|
<f name="ZFBZ" type="1" />
|
||
|
<f name="CZYGH" type="12" />
|
||
|
</fields>
|
||
|
<parameter>
|
||
|
<p>12</p>
|
||
|
<p>93</p>
|
||
|
</parameter>
|
||
|
</dao>
|
||
|
<dao id="bqdic" cache="true" type="1">
|
||
|
<sql>select PKEY,MC from HIS_BQ where JGID=?</sql>
|
||
|
<fields>
|
||
|
<f name="PKEY" type="12"/>
|
||
|
<f name="MC" type="12"/>
|
||
|
</fields>
|
||
|
<parameter>
|
||
|
<p>12</p>
|
||
|
</parameter>
|
||
|
</dao>
|
||
|
<dao id="ybjbdic" cache="true" type="1">
|
||
|
<sql>select DISE_CODG,DISE_NAME,DISE_TYPE from HIS_YB_JB </sql>
|
||
|
<fields>
|
||
|
<f name="DISE_CODG" type="12"/>
|
||
|
<f name="DISE_NAME" type="12"/>
|
||
|
<f name="DISE_TYPE" type="12"/>
|
||
|
</fields>
|
||
|
</dao>
|
||
|
<dao id="getybdjxx" log="true" type="1">
|
||
|
<sql>select NATY,INSUTYPE,EMP_NAME from HIS_YB_DJ where JGID=? and JZLX=? and IPT_NO=? and DJCXZT='0'</sql>
|
||
|
<fields>
|
||
|
<f name="NATY" type="12" />
|
||
|
<f name="INSUTYPE" type="12" />
|
||
|
<f name="EMP_NAME" type="12" />
|
||
|
</fields>
|
||
|
<parameter>
|
||
|
<p>12</p>
|
||
|
<p>12</p>
|
||
|
<p>12</p>
|
||
|
</parameter>
|
||
|
</dao>
|
||
|
<dao id="getcydjbdao" log="true" type="1">
|
||
|
<sql><![CDATA[
|
||
|
select p.pkey scpkey,a.JZNO JZLSH,'8' KLX,a.HZPKEY KH,b.SFZH ZJHM,'01' ZJLX,b.XM,b.XB,b.CSRQ,a.RYKS RYKSBM,a.WARD RYBQBM,
|
||
|
a.JJRQ RYSJ,a.CYKS CYKSBM,a.CYWARD CYBQBM,a.CYRQ CYSJ,'0' LGBZ,'1' WDBZ,'0' TXBZ,'0' ZFBZ,a.RYZD,a.PKEY JZPKEY
|
||
|
from HIS_JZ_BASEINFO a
|
||
|
left join JKPTSC p on a.JGID=p.JGID and p.PTBM='ZY_CYDJB' and p.col1=a.JZNO
|
||
|
left join HIS_HZINFO b on a.hzpkey = b.pkey and a.JGID=b.JGID
|
||
|
where a.JZLX='Z' and nvl(p.ptsczt,'0')='0' and a.JGID=? and a.CYRQ<=?
|
||
|
]]></sql>
|
||
|
<fields>
|
||
|
<f name="SCPKEY" type="12" />
|
||
|
<f name="JZLSH" type="12" />
|
||
|
<f name="KLX" type="1" />
|
||
|
<f name="KH" type="12" />
|
||
|
<f name="ZJHM" type="12" />
|
||
|
<f name="ZJLX" type="12" />
|
||
|
<f name="XM" type="12" />
|
||
|
<f name="XB" type="12" />
|
||
|
<f name="CSRQ" type="93" />
|
||
|
<f name="RYKSBM" type="12" />
|
||
|
<f name="RYBQBM" type="12" />
|
||
|
<f name="RYSJ" type="93" />
|
||
|
<f name="CYKSBM" type="12" />
|
||
|
<f name="CYBQBM" type="12" />
|
||
|
<f name="CYSJ" type="93" />
|
||
|
<f name="LGBZ" type="12" />
|
||
|
<f name="WDBZ" type="12" />
|
||
|
<f name="TXBZ" type="12" />
|
||
|
<f name="ZFBZ" type="12" />
|
||
|
<f name="RYZD" type="12" />
|
||
|
<f name="JZPKEY" type="12" />
|
||
|
</fields>
|
||
|
<parameter>
|
||
|
<p>12</p>
|
||
|
<p>93</p>
|
||
|
</parameter>
|
||
|
</dao>
|
||
|
<dao id="getryjzjldao" log="true" type="1">
|
||
|
<sql><![CDATA[select p.pkey scpkey,a.JZNO JZLSH,a.ZYBAH BAH,'0' JTYSQYBZ,'8' KLX,a.HZPKEY KH,b.SFZH ZJHM,'01' ZJLX,b.XM HZXM,'400' JZLX,'2' RYLYDM,a.RYKS JZKSBM,a.CYKS CYKSBM,
|
||
|
a.JJRQ RYSJ,a.CYRQ CYSJ,'-' ZS,'-' XBS,'-' GMS,'-' YCJZS,'-' HYYJS,'-' JWS,'-' TGJCJL,'-' FZJCJL
|
||
|
from HIS_JZ_BASEINFO a
|
||
|
left join JKPTSC p on a.JGID=p.JGID and p.PTBM='ZY_JZJLB1' and p.col1=a.JZNO
|
||
|
left join HIS_HZINFO b on a.hzpkey = b.pkey and a.JGID=b.JGID
|
||
|
where a.JZLX='Z' and nvl(p.ptsczt,'0')='0' and a.JGID=? and a.JJRQ<=?
|
||
|
]]></sql>
|
||
|
<fields>
|
||
|
<f name="SCPKEY" type="12" />
|
||
|
<f name="JZLSH" type="12" />
|
||
|
<f name="BAH" type="12" />
|
||
|
<f name="JTYSQYBZ" type="12" />
|
||
|
<f name="KLX" type="1" />
|
||
|
<f name="KH" type="12" />
|
||
|
<f name="ZJHM" type="12" />
|
||
|
<f name="ZJLX" type="12" />
|
||
|
<f name="HZXM" type="12" />
|
||
|
<f name="JZLX" type="12" />
|
||
|
<f name="RYLYDM" type="1" />
|
||
|
<f name="JZKSBM" type="12" />
|
||
|
<f name="CYKSBM" type="12" />
|
||
|
<f name="RYSJ" type="93" />
|
||
|
<f name="CYSJ" type="93" />
|
||
|
<f name="ZS" type="12" />
|
||
|
<f name="XBS" type="12" />
|
||
|
<f name="GMS" type="12" />
|
||
|
<f name="YCJZS" type="12" />
|
||
|
<f name="HYYJS" type="12" />
|
||
|
<f name="JWS" type="12" />
|
||
|
<f name="TGJCJL" type="12" />
|
||
|
<f name="FZJCJL" type="12" />
|
||
|
</fields>
|
||
|
<parameter>
|
||
|
<p>12</p>
|
||
|
<p>93</p>
|
||
|
</parameter>
|
||
|
</dao>
|
||
|
<dao id="getcyjzjldao" log="true" type="1">
|
||
|
<sql><![CDATA[select p.pkey scpkey,a.JZNO JZLSH,a.ZYBAH BAH,'0' JTYSQYBZ,'8' KLX,a.HZPKEY KH,b.SFZH ZJHM,'01' ZJLX,b.XM HZXM,'400' JZLX,'2' RYLYDM,a.RYKS JZKSBM,a.CYKS CYKSBM,
|
||
|
a.JJRQ RYSJ,a.CYRQ CYSJ,'-' ZS,'-' XBS,'-' GMS,'-' YCJZS,'-' HYYJS,'-' JWS,'-' TGJCJL,'-' FZJCJL
|
||
|
from HIS_JZ_BASEINFO a
|
||
|
left join JKPTSC p on a.JGID=p.JGID and p.PTBM='ZY_JZJLB2' and p.col1=a.JZNO
|
||
|
left join HIS_HZINFO b on a.hzpkey = b.pkey and a.JGID=b.JGID
|
||
|
where a.JZLX='Z' and nvl(p.ptsczt,'0')='0' and a.JGID=? and a.CYRQ<=? and to_char(a.CYRQ,'yyyymmdd')!=to_char(a.JJRQ,'yyyymmdd')
|
||
|
]]></sql>
|
||
|
<fields>
|
||
|
<f name="SCPKEY" type="12" />
|
||
|
<f name="JZLSH" type="12" />
|
||
|
<f name="BAH" type="12" />
|
||
|
<f name="JTYSQYBZ" type="12" />
|
||
|
<f name="KLX" type="1" />
|
||
|
<f name="KH" type="12" />
|
||
|
<f name="ZJHM" type="12" />
|
||
|
<f name="ZJLX" type="12" />
|
||
|
<f name="HZXM" type="12" />
|
||
|
<f name="JZLX" type="12" />
|
||
|
<f name="RYLYDM" type="1" />
|
||
|
<f name="JZKSBM" type="12" />
|
||
|
<f name="CYKSBM" type="12" />
|
||
|
<f name="RYSJ" type="93" />
|
||
|
<f name="CYSJ" type="93" />
|
||
|
<f name="ZS" type="12" />
|
||
|
<f name="XBS" type="12" />
|
||
|
<f name="GMS" type="12" />
|
||
|
<f name="YCJZS" type="12" />
|
||
|
<f name="HYYJS" type="12" />
|
||
|
<f name="JWS" type="12" />
|
||
|
<f name="TGJCJL" type="12" />
|
||
|
<f name="FZJCJL" type="12" />
|
||
|
</fields>
|
||
|
<parameter>
|
||
|
<p>12</p>
|
||
|
<p>93</p>
|
||
|
</parameter>
|
||
|
</dao>
|
||
|
<dao id="getyzmxbdao" log="true" type="1">
|
||
|
<sql><![CDATA[select p.pkey scpkey,yz.PKEY YZID,a.JZNO JZLSH,'1' CXBZ,'8' KLX,a.HZPKEY KH,b.SFZH ZJHM,'01' ZJLX,b.XM,b.XB,b.CSRQ,a.WARD BQ,a.RYKS XDKSBM,
|
||
|
yz.YZXZYS XDRGH,yz.YZXZSJ YZXDSJ,yz.YZZXKS ZXKSBM,yz.YZSHYS ZXRGH,yz.YZZXSJ,yz.YZTZSJ YZZZSJ,yz.YZCL YZLB,yz.YZXPKEY YZMXBM,yz.YZMC YZMXMC,s.YBBM YZMXYBBM,yz.YZLB YZXMLXDM,
|
||
|
y.GG YPGG,yz.YZYF YPYF,yz.YZPC YYPD,yz.YZJL JL,yz.YZJLDW DW,yz.YZTS YYTS,yz.YZDJ XMDJ,yz.YZJE XMJE,yz.PS SFPS,yz.YZSL YPSL,'1' JYDM,yz.YZBEGINJDHS HDYZHSQM,yz.YZTZSJ YZTZRQSJ,yz.YZTZYS TZYZZQM,
|
||
|
'-' SCPH,to_date('2039-12-12','yyyy-mm-dd') YXQ
|
||
|
from HIS_JZ_BASEINFO a
|
||
|
left join HIS_HZINFO b on a.hzpkey = b.pkey and a.JGID=b.JGID
|
||
|
left join HIS_YZ_MXB yz on a.JGID=yz.JGID and a.HZPKEY=yz.HZPKEY and a.PKEY=yz.JZPKEY
|
||
|
left join JKPTSC p on yz.JGID=p.JGID and p.PTBM='ZY_YZMXB' and p.col1=yz.PKEY
|
||
|
left join HIS_SFX s on yz.JGID=s.JGID and yz.YZXPKEY=s.BM
|
||
|
left join HIS_YPXX y on yz.YZXPKEY=y.BM
|
||
|
where a.JZLX='Z' and nvl(p.ptsczt,'0')='0' and yz.PKEY is not null and a.JGID=? and a.CYRQ<=?
|
||
|
]]></sql>
|
||
|
<fields>
|
||
|
<f name="SCPKEY" type="12" />
|
||
|
<f name="YZID" type="12" />
|
||
|
<f name="JZLSH" type="12" />
|
||
|
<f name="CXBZ" type="1" />
|
||
|
<f name="KLX" type="1" />
|
||
|
<f name="KH" type="12" />
|
||
|
<f name="ZJHM" type="12" />
|
||
|
<f name="ZJLX" type="1" />
|
||
|
<f name="XM" type="12" />
|
||
|
<f name="XB" type="12" />
|
||
|
<f name="CSRQ" type="93" />
|
||
|
<f name="BQ" type="12" />
|
||
|
<f name="XDKSBM" type="12" />
|
||
|
<f name="XDRGH" type="12" />
|
||
|
<f name="YZXDSJ" type="93" />
|
||
|
<f name="ZXKSBM" type="12" />
|
||
|
<f name="ZXRGH" type="12" />
|
||
|
<f name="YZZXSJ" type="93" />
|
||
|
<f name="YZZZSJ" type="93" />
|
||
|
<f name="YZLB" type="12" />
|
||
|
<f name="YZMXBM" type="12" />
|
||
|
<f name="YZMXMC" type="12" />
|
||
|
<f name="YZMXYBBM" type="12" />
|
||
|
<f name="YZXMLXDM" type="12" />
|
||
|
<f name="YPGG" type="12" />
|
||
|
<f name="YPYF" type="12" />
|
||
|
<f name="YYPD" type="12" />
|
||
|
<f name="JL" type="12" />
|
||
|
<f name="DW" type="12" />
|
||
|
<f name="YYTS" type="12" />
|
||
|
<f name="XMDJ" type="12" />
|
||
|
<f name="XMJE" type="12" />
|
||
|
<f name="SFPS" type="12" />
|
||
|
<f name="YPSL" type="12" />
|
||
|
<f name="JYDM" type="1" />
|
||
|
<f name="HDYZHSQM" type="12" />
|
||
|
<f name="YZTZRQSJ" type="93" />
|
||
|
<f name="TZYZZQM" type="12" />
|
||
|
<f name="SCPH" type="1" />
|
||
|
<f name="YXQ" type="93" />
|
||
|
</fields>
|
||
|
<parameter>
|
||
|
<p>12</p>
|
||
|
<p>93</p>
|
||
|
</parameter>
|
||
|
</dao>
|
||
|
<dao id="getzysfhzbdao" log="true" type="1">
|
||
|
<sql><![CDATA[select p.PKEY scpkey,c.PKEY SFLSH,c.SETL_ID,c.MDTRT_ID,c.IPT_NO JZLSH,c.FPHM FPH,'0' JSBZ,a.KLS KH,'8' KLX,'01' ZJLX,a.CERTNO ZJHM,a.PSN_NAME XM,'01' YLFKFS,a.INSUTYPE BXLX,
|
||
|
c.SETL_TIME SFSJ,a.ADM_DEPT_CODG XDKSBM,a.ADM_DEPT_NAME XDKSMC,a.ATDDR_NO XDRGH,a.CHFPDR_NAME XDRXM,c.MEDFEE_SUMAMT ZJE,c.INSCP_SCP_AMT YBJE,
|
||
|
c.FUND_PAY_SUMAMT YBZFJE,c.PSN_PART_AMT ZFJE,0 YHJE,c.BALC DNZHJE,0 LNZHJE,c.HIFP_PAY TCZJJE,c.PSN_PART_AMT FLZJJE,0 JZJE,c.CZY SFCZYGH
|
||
|
from HIS_YB_JSB c
|
||
|
left join JKPTSC p on c.JGID=p.JGID and p.PTBM='ZY_SFHZB' and p.col1=c.PKEY
|
||
|
left join HIS_YB_DJ a on a.JGID=c.JGID and a.IPT_NO=c.IPT_NO and a.MDTRT_ID=c.MDTRT_ID
|
||
|
where c.JZLX='ZY' and c.CXZT='0' and nvl(p.ptsczt,'0')='0' and a.PSN_NAME is not null and c.JGID=? and c.CZSJ<=?]]></sql>
|
||
|
<fields>
|
||
|
<f name="SCPKEY" type="12" />
|
||
|
<f name="SFLSH" type="12" />
|
||
|
<f name="SETL_ID" type="12" />
|
||
|
<f name="MDTRT_ID" type="12" />
|
||
|
<f name="JZLSH" type="12" />
|
||
|
<f name="FPH" type="12" />
|
||
|
<f name="JSBZ" type="1" />
|
||
|
<f name="KH" type="12" />
|
||
|
<f name="KLX" type="1" />
|
||
|
<f name="ZJLX" type="12" />
|
||
|
<f name="ZJHM" type="12" />
|
||
|
<f name="XM" type="12" />
|
||
|
<f name="YLFKFS" type="1" />
|
||
|
<f name="BXLX" type="12" />
|
||
|
<f name="SFSJ" type="93" />
|
||
|
<f name="XDKSBM" type="12" />
|
||
|
<f name="XDKSMC" type="12" />
|
||
|
<f name="XDRGH" type="12" />
|
||
|
<f name="XDRXM" type="12" />
|
||
|
<f name="ZJE" type="8" />
|
||
|
<f name="YBJE" type="8" />
|
||
|
<f name="YBZFJE" type="8" />
|
||
|
<f name="ZFJE" type="8" />
|
||
|
<f name="YHJE" type="8" />
|
||
|
<f name="DNZHJE" type="8" />
|
||
|
<f name="LNZHJE" type="8" />
|
||
|
<f name="TCZJJE" type="8" />
|
||
|
<f name="FLZJJE" type="8" />
|
||
|
<f name="JZJE" type="8" />
|
||
|
<f name="SFCZYGH" type="12" />
|
||
|
</fields>
|
||
|
<parameter>
|
||
|
<p>12</p>
|
||
|
<p>93</p>
|
||
|
</parameter>
|
||
|
</dao>
|
||
|
<dao id="getzysfmxbdao" log="true" type="1">
|
||
|
<sql><![CDATA[select p.PKEY scpkey,c.PKEY SFLSH,c.SETL_ID,c.MDTRT_ID,c.IPT_NO JZLSH,c.FPHM FPH,a.KLS KH,'8' KLX,'01' ZJLX,a.CERTNO ZJHM,a.PSN_NAME XM,a.INSUTYPE BXLX,
|
||
|
a.ADM_DEPT_CODG XDKSBM,a.ADM_DEPT_NAME XDKSMC,a.ATDDR_NO XDRGH,a.CHFPDR_NAME XDRXM,c.CZY SFCZYGH
|
||
|
from HIS_YB_JSB c
|
||
|
left join JKPTSC p on c.JGID=p.JGID and p.PTBM='ZY_SFMXB' and p.col1=c.PKEY
|
||
|
left join HIS_YB_DJ a on a.JGID=c.JGID and a.IPT_NO=c.IPT_NO and a.MDTRT_ID=c.MDTRT_ID
|
||
|
where c.JZLX='ZY' and c.CXZT='0' and nvl(p.ptsczt,'0')='0' and c.JGID=? and c.CZSJ<=?]]></sql>
|
||
|
<fields>
|
||
|
<f name="SCPKEY" type="12" />
|
||
|
<f name="SFLSH" type="12" />
|
||
|
<f name="SETL_ID" type="12" />
|
||
|
<f name="MDTRT_ID" type="12" />
|
||
|
<f name="JZLSH" type="12" />
|
||
|
<f name="FPH" type="12" />
|
||
|
<f name="KH" type="12" />
|
||
|
<f name="KLX" type="1" />
|
||
|
<f name="ZJLX" type="12" />
|
||
|
<f name="ZJHM" type="12" />
|
||
|
<f name="XM" type="12" />
|
||
|
<f name="BXLX" type="12" />
|
||
|
<f name="XDKSBM" type="12" />
|
||
|
<f name="XDKSMC" type="12" />
|
||
|
<f name="XDRGH" type="12" />
|
||
|
<f name="XDRXM" type="12" />
|
||
|
<f name="SFCZYGH" type="12" />
|
||
|
</fields>
|
||
|
<parameter>
|
||
|
<p>12</p>
|
||
|
<p>93</p>
|
||
|
</parameter>
|
||
|
</dao>
|
||
|
<dao id="zysfmxdao" log="true" type="1">
|
||
|
<sql> select e.PKEY SFMXID,e.INIT_FEEDETL_SN TFID,fy.VALUE4 MXFYLB,b.FYDL MXXMLB,b.JFRQ STFSJ,e.MEDINS_LIST_CODG MXXMBM,e.MED_LIST_CODG MXXMYBBM,e.MEDINS_LIST_NAME MXXMMC,yz.YZLB YZXMLXDM,'-' MXXMGG,f.JBDW MXXMDW,e.PRIC MXXMDJ,e.CNT MXXMSL,e.DET_ITEM_FEE_SUMAMT MXXMJE,'-' SCPH,to_date('2039-12-12','yyyy-mm-dd') YXQ
|
||
|
from HIS_YB_SCMX e
|
||
|
left join HIS_SFZD_SFXMXB b on e.JGID=b.JGID and b.PKEY=e.feedetl_sn and e.SETL_ID=b.SETL_ID
|
||
|
left join HIS_YZ_MXB yz on b.JGID=yz.JGID and b.YZMX=yz.pkey
|
||
|
left join HIS_SFX f on e.JGID=f.JGID and e.MEDINS_LIST_CODG=f.BM
|
||
|
left join MAIN_JGZDB fy on fy.JGZDLB_BH='Z00002' and fy.JGID=b.JGID and b.FYZL=fy.BH
|
||
|
where e.ZT='0' and e.JGID=? and e.MDTRT_ID=? and e.SETL_ID=?</sql>
|
||
|
<fields>
|
||
|
<f name="SFMXID" type="12" />
|
||
|
<f name="TFID" type="12" />
|
||
|
<f name="MXFYLB" type="12" />
|
||
|
<f name="MXXMLB" type="12" />
|
||
|
<f name="STFSJ" type="93" />
|
||
|
<f name="MXXMBM" type="12" />
|
||
|
<f name="MXXMYBBM" type="12" />
|
||
|
<f name="MXXMMC" type="12" />
|
||
|
<f name="YZXMLXDM" type="12" />
|
||
|
<f name="MXXMGG" type="1" />
|
||
|
<f name="MXXMDW" type="12" />
|
||
|
<f name="MXXMDJ" type="8" />
|
||
|
<f name="MXXMSL" type="8" />
|
||
|
<f name="MXXMJE" type="8" />
|
||
|
<f name="SCPH" type="1" />
|
||
|
<f name="YXQ" type="93" />
|
||
|
</fields>
|
||
|
<parameter>
|
||
|
<p>12</p>
|
||
|
<p>12</p>
|
||
|
<p>12</p>
|
||
|
</parameter>
|
||
|
</dao>
|
||
|
<dao id="getfyfsmxdao" log="true" type="1">
|
||
|
<sql><![CDATA[select p.PKEY scpkey,sf.PKEY SFMXID,sf.HCDJPKEY TFID,sf.YZMX YZID,a.JZNO ZYH,a.JZNO JZLSH,a.HZPKEY KH,'8' KLX,'01' ZJLX,b.SFZH ZJHM,b.XM,a.RYKS XDKSBM,a.JJYS XDRGH,a.RYKS ZXKSBM,fy.VALUE4 MXFYLB,sf.FYDL MXXMLB,sf.JFRQ STFSJ,sf.SFX MXXMBM,f.MC MXXMMC,f.YBBM MXXMYBBM,'-' SCPH,to_date('2039-12-12','yyyy-mm-dd') YXQ,
|
||
|
yz.YZLB YZXMLXDM,'-' MXXMGG,f.JBDW MXXMDW,sf.SFXDJ MXXMDJ,sf.SFXSL MXXMSL,sf.SFXZFY MXXMJE
|
||
|
from HIS_SFZD_SFXMXB sf
|
||
|
left join JKPTSC p on sf.JGID=p.JGID and p.PTBM='ZY_FYFSMXB' and p.col1=sf.PKEY
|
||
|
left join HIS_YZ_MXB yz on sf.JGID=yz.JGID and sf.YZMX=yz.PKEY
|
||
|
left join HIS_JZ_BASEINFO a on a.JGID=yz.JGID and a.HZPKEY=yz.HZPKEY and a.PKEY=yz.JZPKEY
|
||
|
left join HIS_HZINFO b on a.hzpkey = b.pkey and a.JGID=b.JGID
|
||
|
left join HIS_SFX f on sf.JGID=f.JGID and sf.SFX=f.BM
|
||
|
left join MAIN_JGZDB fy on fy.JGZDLB_BH='Z00002' and fy.JGID=sf.JGID and sf.FYZL=fy.BH
|
||
|
where a.JZLX='Z' and nvl(p.ptsczt,'0')='0' and sf.JGID=? and sf.JFRQ<=?]]></sql>
|
||
|
<fields>
|
||
|
<f name="SCPKEY" type="12" />
|
||
|
<f name="SFMXID" type="12" />
|
||
|
<f name="TFID" type="12" />
|
||
|
<f name="YZID" type="12" />
|
||
|
<f name="ZYH" type="12" />
|
||
|
<f name="JZLSH" type="12" />
|
||
|
<f name="KH" type="12" />
|
||
|
<f name="KLX" type="1" />
|
||
|
<f name="ZJLX" type="1" />
|
||
|
<f name="ZJHM" type="12" />
|
||
|
<f name="XM" type="12" />
|
||
|
<f name="XDKSBM" type="12" />
|
||
|
<f name="XDRGH" type="12" />
|
||
|
<f name="ZXKSBM" type="12" />
|
||
|
<f name="MXFYLB" type="12" />
|
||
|
<f name="MXXMLB" type="12" />
|
||
|
<f name="STFSJ" type="93" />
|
||
|
<f name="MXXMBM" type="12" />
|
||
|
<f name="MXXMMC" type="12" />
|
||
|
<f name="MXXMYBBM" type="12" />
|
||
|
<f name="SCPH" type="1" />
|
||
|
<f name="YXQ" type="93" />
|
||
|
<f name="YZXMLXDM" type="1" />
|
||
|
<f name="MXXMGG" type="1" />
|
||
|
<f name="MXXMDW" type="12" />
|
||
|
<f name="MXXMDJ" type="12" />
|
||
|
<f name="MXXMSL" type="12" />
|
||
|
<f name="MXXMJE" type="12" />
|
||
|
</fields>
|
||
|
<parameter>
|
||
|
<p>12</p>
|
||
|
<p>93</p>
|
||
|
</parameter>
|
||
|
</dao>
|
||
|
<dao id="getcyxjbgdao" log="true" type="1">
|
||
|
<sql><![CDATA[select p.pkey scpkey,a.JZNO JZLSH,a.RYKS KSDM,'8' KLX,a.HZPKEY KH,b.SFZH ZJHM,'01' ZJLX,a.CYBED CH,b.XM,b.XB,b.NL,a.JJRQ RYSJ,
|
||
|
a.CYRQ CYSJ,a.RYZD,'-' RYZZTZ,'-' JCHZ,'-' ZLGC,a.CYQK,'-' CYYZ,'-' ZLJG,a.JJYS ZZYSGH,a.JZNO ZYH,a.CYWARD,a.PKEY JZPKEY
|
||
|
from HIS_JZ_BASEINFO a
|
||
|
left join JKPTSC p on a.JGID=p.JGID and p.PTBM='ZY_CYXJBG' and p.col1=a.JZNO
|
||
|
left join HIS_HZINFO b on a.hzpkey = b.pkey and a.JGID=b.JGID
|
||
|
where a.JZLX='Z' and nvl(p.ptsczt,'0')='0' and a.JJYS is not null and a.JGID=? and a.CYRQ<=?]]></sql>
|
||
|
<fields>
|
||
|
<f name="SCPKEY" type="12" />
|
||
|
<f name="JZLSH" type="12" />
|
||
|
<f name="KSDM" type="12" />
|
||
|
<f name="KLX" type="1" />
|
||
|
<f name="KH" type="12" />
|
||
|
<f name="ZJHM" type="12" />
|
||
|
<f name="ZJLX" type="1" />
|
||
|
<f name="CH" type="12" />
|
||
|
<f name="XM" type="12" />
|
||
|
<f name="XB" type="12" />
|
||
|
<f name="NL" type="12" />
|
||
|
<f name="RYSJ" type="93" />
|
||
|
<f name="CYSJ" type="93" />
|
||
|
<f name="RYZD" type="12" />
|
||
|
<f name="RYZZTZ" type="1" />
|
||
|
<f name="JCHZ" type="1" />
|
||
|
<f name="ZLGC" type="1" />
|
||
|
<f name="CYQK" type="12" />
|
||
|
<f name="CYYZ" type="1" />
|
||
|
<f name="ZLJG" type="1" />
|
||
|
<f name="ZZYSGH" type="12" />
|
||
|
<f name="ZYH" type="12" />
|
||
|
<f name="CYWARD" type="12" />
|
||
|
<f name="JZPKEY" type="12" />
|
||
|
</fields>
|
||
|
<parameter>
|
||
|
<p>12</p>
|
||
|
<p>93</p>
|
||
|
</parameter>
|
||
|
</dao>
|
||
|
<dao id="yzlxdao" log="true" type="1">
|
||
|
<sql>select a.BH YZLB,b.bh,b.mc
|
||
|
from MAIN_JGZDB a
|
||
|
left join MAIN_ZDB b on zdzb_bh='CV06.00.229' and a.VALUE1=b.bh
|
||
|
where a.JGID=? and a.JGZDLB_BH='Z00001'
|
||
|
</sql>
|
||
|
<fields>
|
||
|
<f name="YZLB" type="12" />
|
||
|
<f name="BH" type="12" />
|
||
|
<f name="MC" type="12" />
|
||
|
</fields>
|
||
|
<parameter>
|
||
|
<p>12</p>
|
||
|
</parameter>
|
||
|
</dao>
|
||
|
<dao id="ptjxdao" log="true" type="1">
|
||
|
<sql> select a.BH JX,b.BH,b.MC
|
||
|
from MAIN_ZDB a
|
||
|
left join MAIN_ZDB b on b.zdzb_bh='DBJ440100/T3-2007' and a.VALUE1=b.bh
|
||
|
where a.ZDZB_BH='100159'
|
||
|
</sql>
|
||
|
<fields>
|
||
|
<f name="YZLB" type="12" />
|
||
|
<f name="BH" type="12" />
|
||
|
<f name="MC" type="12" />
|
||
|
</fields>
|
||
|
</dao>
|
||
|
<dao id="getzdmxdao" log="true" type="1">
|
||
|
<sql><![CDATA[select p.pkey scpkey,a.JZNO JZLSH,'8' KLX,a.HZPKEY KH,b.SFZH ZJHM,'01' ZJLX,zd.PKEY ZYZDLSH,a.JZLX MZZYBZ,zd.JBLX ZDLXQF,zd.ZDLX ZDLB,zd.JZSJ ZDSJ,
|
||
|
zd.JBBM ZDBM,zd.JBMC ZDSM,'01' BMLX,zd.SFZZD ZYZDBZ,'2' YZDBZ
|
||
|
from HIS_JZ_MZZD zd
|
||
|
left join JKPTSC p on zd.JGID=p.JGID and p.PTBM='BG_ZDMXBG' and p.col1=zd.PKEY
|
||
|
left join HIS_JZ_BASEINFO a on a.JGID=zd.JGID and a.HZPKEY=zd.HZPKEY and a.PKEY=zd.JZPKEY
|
||
|
left join HIS_HZINFO b on a.hzpkey = b.pkey and a.JGID=b.JGID
|
||
|
where nvl(p.ptsczt,'0')='0' and a.PKEY is not null and zd.JGID=? and zd.JZSJ<=? ]]></sql>
|
||
|
<fields>
|
||
|
<f name="SCPKEY" type="12" />
|
||
|
<f name="JZLSH" type="12" />
|
||
|
<f name="KLX" type="1" />
|
||
|
<f name="KH" type="12" />
|
||
|
<f name="ZJHM" type="12" />
|
||
|
<f name="ZJLX" type="1" />
|
||
|
<f name="ZYZDLSH" type="12" />
|
||
|
<f name="MZZYBZ" type="12" />
|
||
|
<f name="ZDLXQF" type="12" />
|
||
|
<f name="ZDLB" type="1" />
|
||
|
<f name="ZDSJ" type="93" />
|
||
|
<f name="ZDBM" type="12" />
|
||
|
<f name="ZDSM" type="12" />
|
||
|
<f name="BMLX" type="1" />
|
||
|
<f name="ZYZDBZ" type="12" />
|
||
|
<f name="YZDBZ" type="1" />
|
||
|
</fields>
|
||
|
<parameter>
|
||
|
<p>12</p>
|
||
|
<p>93</p>
|
||
|
</parameter>
|
||
|
</dao>
|
||
|
<dao id="getzyjsbrbdao" log="true" type="1">
|
||
|
<sql><![CDATA[select p.PKEY scpkey,c.PKEY,c.SETL_ID ZXJYLSH,c.PSN_NO YBKH,c.CERTNO SFZH,c.IPT_NO JZLSH,c.IPT_NO ZYH,a.BEGNTIME RYSJ,a.JSSJ CYSJ,a.DSCG_MAINDIAG_CODE CYZDBM,
|
||
|
a.DSCG_MAINDIAG_NAME CYZDSM,c.INSUTYPE YBLB,c.MEDFEE_SUMAMT ZFY,c.PSN_CASH_PAY GRXJZF,c.PSN_PART_AMT GRZFJE,c.CZSJ CZRQ,c.FUND_PAY_SUMAMT JJZFE,c.CZY CZYGH,
|
||
|
c.SETL_TIME SFRQ,c.ACCT_PAY ZHZFE,a.DSCG_DEPT_NAME ZYKSMC,c.HIFP_PAY TCZF,c.HIFMI_PAY DBZF,c.CVLSERV_PAY GWYBZ,c.ACT_PAY_DEDC QFBZZF,c.FULAMT_OWNPAY_AMT ZFFY,
|
||
|
c.OVERLMT_SELFPAY CXJZFFY,c.PRESELFPAY_AMT YLZLJE,c.INSCP_SCP_AMT FHJBYLJE,c.HOSP_PART_AMT DDYLJGZF,c.MED_TYPE YLDYLB,c.BALC BCZHYE,c.POOL_PROP_SELFPAY BCBL,
|
||
|
c.HIFP_PAY BCJE,c.MAF_PAY MZJZ
|
||
|
from HIS_YB_JSB c
|
||
|
left join JKPTSC p on c.JGID=p.JGID and p.PTBM='YB_ZYJSB_RB' and p.col1=c.PKEY
|
||
|
left join HIS_YB_DJ a on a.JGID=c.JGID and a.IPT_NO=c.IPT_NO and a.MDTRT_ID=c.MDTRT_ID
|
||
|
where c.JZLX='ZY' and c.CXZT='0' and nvl(p.ptsczt,'0')='0' and c.JGID=? and c.CZSJ<=? ]]></sql>
|
||
|
<fields>
|
||
|
<f name="SCPKEY" type="12" />
|
||
|
<f name="PKEY" type="12" />
|
||
|
<f name="ZXJYLSH" type="12" />
|
||
|
<f name="YBKH" type="12" />
|
||
|
<f name="SFZH" type="12" />
|
||
|
<f name="JZLSH" type="12" />
|
||
|
<f name="ZYH" type="12" />
|
||
|
<f name="RYSJ" type="93" />
|
||
|
<f name="CYSJ" type="93" />
|
||
|
<f name="CYZDBM" type="12" />
|
||
|
<f name="CYZDSM" type="12" />
|
||
|
<f name="YBLB" type="12" />
|
||
|
<f name="ZFY" type="8" />
|
||
|
<f name="GRXJZF" type="8" />
|
||
|
<f name="GRZFJE" type="8" />
|
||
|
<f name="CZRQ" type="93" />
|
||
|
<f name="JJZFE" type="8" />
|
||
|
<f name="CZYGH" type="12" />
|
||
|
<f name="SFRQ" type="93" />
|
||
|
<f name="ZHZFE" type="8" />
|
||
|
<f name="ZYKSMC" type="12" />
|
||
|
<f name="TCZF" type="8" />
|
||
|
<f name="DBZF" type="8" />
|
||
|
<f name="GWYBZ" type="8" />
|
||
|
<f name="QFBZZF" type="8" />
|
||
|
<f name="ZFFY" type="8" />
|
||
|
<f name="CXJZFFY" type="8" />
|
||
|
<f name="YLZLJE" type="8" />
|
||
|
<f name="FHJBYLJE" type="8" />
|
||
|
<f name="DDYLJGZF" type="8" />
|
||
|
<f name="YLDYLB" type="12" />
|
||
|
<f name="BCZHYE" type="8" />
|
||
|
<f name="BCBL" type="8" />
|
||
|
<f name="BCJE" type="8" />
|
||
|
<f name="MZJZ" type="8" />
|
||
|
</fields>
|
||
|
<parameter>
|
||
|
<p>12</p>
|
||
|
<p>93</p>
|
||
|
</parameter>
|
||
|
</dao>
|
||
|
<dao id="gettjsjljlhzdao" log="true" type="1">
|
||
|
<sql>select YLJGDM,PTBM,YWKSSJ,YWJSSJ,YCZSL,MXSJSCBZ,MJ,TBRQ,XGBZ,SCZT,SJBZ,TJBZ,SCZSL,JYZT,PCH from TJ_SJL_JLHZ where YLJGDM like ? and PTBM=? and PCH like ?</sql>
|
||
|
<tables>
|
||
|
<table name="TJ_SJL_JLHZ" insert="true" update="true" delete="true">
|
||
|
<primary>YLJGDM</primary>
|
||
|
<primary>PTBM</primary>
|
||
|
<primary>PCH</primary>
|
||
|
</table>
|
||
|
</tables>
|
||
|
<fields>
|
||
|
<f name="YLJGDM" type="12" table="TJ_SJL_JLHZ" />
|
||
|
<f name="PTBM" type="12" table="TJ_SJL_JLHZ" />
|
||
|
<f name="YWKSSJ" type="93" table="TJ_SJL_JLHZ" />
|
||
|
<f name="YWJSSJ" type="93" table="TJ_SJL_JLHZ" />
|
||
|
<f name="YCZSL" type="4" table="TJ_SJL_JLHZ" />
|
||
|
<f name="MXSJSCBZ" type="-5" table="TJ_SJL_JLHZ" />
|
||
|
<f name="MJ" type="12" table="TJ_SJL_JLHZ" />
|
||
|
<f name="TBRQ" type="93" table="TJ_SJL_JLHZ" />
|
||
|
<f name="XGBZ" type="12" table="TJ_SJL_JLHZ" />
|
||
|
<f name="SCZT" type="12" table="TJ_SJL_JLHZ" />
|
||
|
<f name="SJBZ" type="12" table="TJ_SJL_JLHZ" />
|
||
|
<f name="TJBZ" type="12" table="TJ_SJL_JLHZ" />
|
||
|
<f name="SCZSL" type="4" table="TJ_SJL_JLHZ" />
|
||
|
<f name="JYZT" type="12" table="TJ_SJL_JLHZ" />
|
||
|
<f name="PCH" type="12" table="TJ_SJL_JLHZ" />
|
||
|
</fields>
|
||
|
<parameter>
|
||
|
<p>12</p>
|
||
|
<p>12</p>
|
||
|
<p>12</p>
|
||
|
</parameter>
|
||
|
</dao>
|
||
|
<dao id="getmjzbldao" log="true" type="1">
|
||
|
<sql><![CDATA[select p.PKEY scpkey,c.PKEY,c.MDTRT_ID JZLSH,c.CERTNO HZSFZJHM,c.PSN_CERT_TYPE SFZJLBDM,'8' KLX,z.HZPKEY KH,a.ADM_DEPT_CODG KSBM,a.ADM_DEPT_NAME KSMC,
|
||
|
a.PSN_NAME HZXM,a.GEND XBDM,a.BRDY CSRQ,a.AGE NL,a.BEGNTIME JZRQSJ,a.DSCG_MAINDIAG_CODE CBZD_XYZDBM,a.DSCG_MAINDIAG_NAME CBZD_XYZDMC,a.ATDDR_NO YSDM,
|
||
|
a.CHFPDR_NAME YSXM,z.ZS,z.XBS,z.JWS JBS,z.TGJC,z.GMS
|
||
|
from HIS_YB_JSB c
|
||
|
left join JKPTSC p on c.JGID=p.JGID and p.PTBM='MJZBL_MJZBL' and p.col1=c.PKEY
|
||
|
left join HIS_YB_DJ a on a.JGID=c.JGID and a.IPT_NO=c.IPT_NO and a.MDTRT_ID=c.MDTRT_ID
|
||
|
left join HIS_JZ_MZBL z on a.JGID=z.JGID and a.kls=z.JZPKEY
|
||
|
where c.JZLX='MZ' and c.CXZT='0' and nvl(p.ptsczt,'0')='0' and c.JGID=? and c.CZSJ<=?
|
||
|
]]></sql>
|
||
|
<fields>
|
||
|
<f name="SCPKEY" type="12" />
|
||
|
<f name="PKEY" type="12" />
|
||
|
<f name="JZLSH" type="12" />
|
||
|
<f name="HZSFZJHM" type="12" />
|
||
|
<f name="SFZJLBDM" type="12" />
|
||
|
<f name="KLX" type="1" />
|
||
|
<f name="KH" type="12" />
|
||
|
<f name="KSBM" type="12" />
|
||
|
<f name="KSMC" type="12" />
|
||
|
<f name="HZXM" type="12" />
|
||
|
<f name="XBDM" type="12" />
|
||
|
<f name="CSRQ" type="93" />
|
||
|
<f name="NL" type="12" />
|
||
|
<f name="JZRQSJ" type="93" />
|
||
|
<f name="CBZD_XYZDBM" type="12" />
|
||
|
<f name="CBZD_XYZDMC" type="12" />
|
||
|
<f name="YSDM" type="12" />
|
||
|
<f name="YSXM" type="12" />
|
||
|
<f name="ZS" type="12" />
|
||
|
<f name="XBS" type="12" />
|
||
|
<f name="JBS" type="12" />
|
||
|
<f name="TGJC" type="12" />
|
||
|
<f name="GMS" type="12" />
|
||
|
</fields>
|
||
|
<parameter>
|
||
|
<p>12</p>
|
||
|
<p>93</p>
|
||
|
</parameter>
|
||
|
</dao>
|
||
|
<dao id="getwssjzydao" log="true" type="1">
|
||
|
<sql><![CDATA[select p.PKEY scpkey,c.PKEY,c.JZLX,c.MDTRT_ID JZLSH,c.IPT_NO,c.CERTNO JMJKKH,c.CERTNO HZSFZJHM,c.PSN_CERT_TYPE SFZJLBDM,'8' KLX,b.HZPKEY KH,
|
||
|
a.BEGNTIME,a.JSSJ,a.DSCG_MAINDIAG_CODE XYZDBM,a.CHFPDR_NAME ZRYSXM
|
||
|
from HIS_YB_JSB c
|
||
|
left join JKPTSC p on c.JGID=p.JGID and p.PTBM='BLGY_WSSJZY' and p.col1=c.PKEY
|
||
|
left join HIS_YB_DJ a on a.JGID=c.JGID and a.IPT_NO=c.IPT_NO and a.MDTRT_ID=c.MDTRT_ID
|
||
|
left join HIS_JZ_BASEINFO b on a.JGID=b.JGID and a.kls=b.PKEY
|
||
|
where c.CXZT='0' and nvl(p.ptsczt,'0')='0' and c.CERTNO is not null and c.JGID=? and c.CZSJ<=?
|
||
|
]]></sql>
|
||
|
<fields>
|
||
|
<f name="SCPKEY" type="12" />
|
||
|
<f name="PKEY" type="12" />
|
||
|
<f name="JZLX" type="12" />
|
||
|
<f name="JZLSH" type="12" />
|
||
|
<f name="IPT_NO" type="12" />
|
||
|
<f name="JMJKKH" type="12" />
|
||
|
<f name="HZSFZJHM" type="12" />
|
||
|
<f name="SFZJLBDM" type="12" />
|
||
|
<f name="KLX" type="1" />
|
||
|
<f name="KH" type="12" />
|
||
|
<f name="BEGNTIME" type="93" />
|
||
|
<f name="JSSJ" type="93" />
|
||
|
<f name="XYZDBM" type="12" />
|
||
|
<f name="ZRYSXM" type="12" />
|
||
|
</fields>
|
||
|
<parameter>
|
||
|
<p>12</p>
|
||
|
<p>93</p>
|
||
|
</parameter>
|
||
|
</dao>
|
||
|
<dao id="getylfyjldao" log="true" type="1">
|
||
|
<sql><![CDATA[select p.PKEY scpkey,c.PKEY,c.JZLX,c.MDTRT_ID JZLSH,c.IPT_NO,c.CERTNO JMJKKH,c.CERTNO HZSFZJHM,c.PSN_CERT_TYPE SFZJLBDM,'8' KLX,b.HZPKEY KH,
|
||
|
c.INSUTYPE BXLXDM,c.MEDFEE_SUMAMT,c.PSN_PART_AMT GRCDFYJE
|
||
|
from HIS_YB_JSB c
|
||
|
left join JKPTSC p on c.JGID=p.JGID and p.PTBM='BLGY_YLFYJL' and p.col1=c.PKEY
|
||
|
left join HIS_YB_DJ a on a.JGID=c.JGID and a.IPT_NO=c.IPT_NO and a.MDTRT_ID=c.MDTRT_ID
|
||
|
left join HIS_JZ_BASEINFO b on a.JGID=b.JGID and a.kls=b.PKEY
|
||
|
where c.CXZT='0' and nvl(p.ptsczt,'0')='0' and c.CERTNO is not null and c.JGID=? and c.CZSJ<=?
|
||
|
]]></sql>
|
||
|
<fields>
|
||
|
<f name="SCPKEY" type="12" />
|
||
|
<f name="PKEY" type="12" />
|
||
|
<f name="JZLX" type="12" />
|
||
|
<f name="JZLSH" type="12" />
|
||
|
<f name="IPT_NO" type="12" />
|
||
|
<f name="JMJKKH" type="12" />
|
||
|
<f name="HZSFZJHM" type="12" />
|
||
|
<f name="SFZJLBDM" type="12" />
|
||
|
<f name="KLX" type="1" />
|
||
|
<f name="KH" type="12" />
|
||
|
<f name="BXLXDM" type="12" />
|
||
|
<f name="MEDFEE_SUMAMT" type="8" />
|
||
|
<f name="GRCDFYJE" type="8" />
|
||
|
</fields>
|
||
|
<parameter>
|
||
|
<p>12</p>
|
||
|
<p>93</p>
|
||
|
</parameter>
|
||
|
</dao>
|
||
|
<dao id="getjbjkxxdao" log="true" type="1">
|
||
|
<sql><![CDATA[select p.PKEY scpkey,c.PKEY,c.CERTNO JMJKKH,c.CERTNO HZSFZJHM,c.PSN_CERT_TYPE SFZJLBDM,'8' KLX,z.HZPKEY KH,
|
||
|
z.XBS JBS,z.GMS,z.JWS GRS,'-' YJS,'-' JZS
|
||
|
from HIS_YB_JSB c
|
||
|
left join JKPTSC p on c.JGID=p.JGID and p.PTBM='BLGY_JBJKXX' and p.col1=c.PKEY
|
||
|
left join HIS_YB_DJ a on a.JGID=c.JGID and a.IPT_NO=c.IPT_NO and a.MDTRT_ID=c.MDTRT_ID
|
||
|
left join HIS_JZ_MZBL z on a.JGID=z.JGID and a.kls=z.JZPKEY
|
||
|
where c.CXZT='0' and nvl(p.ptsczt,'0')='0' and c.CERTNO is not null and z.PKEY is not null and c.JGID=? and c.CZSJ<=?
|
||
|
]]></sql>
|
||
|
<fields>
|
||
|
<f name="SCPKEY" type="12" />
|
||
|
<f name="PKEY" type="12" />
|
||
|
<f name="JMJKKH" type="12" />
|
||
|
<f name="HZSFZJHM" type="12" />
|
||
|
<f name="SFZJLBDM" type="12" />
|
||
|
<f name="KLX" type="1" />
|
||
|
<f name="KH" type="12" />
|
||
|
<f name="JBS" type="12" />
|
||
|
<f name="GMS" type="12" />
|
||
|
<f name="GRS" type="12" />
|
||
|
<f name="YJS" type="12" />
|
||
|
<f name="JZS" type="12" />
|
||
|
</fields>
|
||
|
<parameter>
|
||
|
<p>12</p>
|
||
|
<p>93</p>
|
||
|
</parameter>
|
||
|
</dao>
|
||
|
|
||
|
</datasource>
|