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.
443 lines
14 KiB
443 lines
14 KiB
<?xml version="1.0" encoding="UTF-8"?>
|
|
<datasource>
|
|
<!-- 1 表示 sql语句dao 2表示存储过程dao 默认为sql语句dao-->
|
|
|
|
|
|
<dao id="cfhz_ypcfzb_dao" log="true" type="1">
|
|
<sql>
|
|
SELECT
|
|
PKEY,
|
|
CFRQ,
|
|
CFH,
|
|
CFLX,
|
|
JGID,
|
|
CFKS,
|
|
CFYS,
|
|
HZPKEY,
|
|
JZPKEY,
|
|
JSZT,
|
|
CFJE,
|
|
CFZCTS,
|
|
JY_PZS,
|
|
JY_JE,
|
|
GZ_KSS1_PZS,
|
|
GZ_KSS1_JE,
|
|
GZ_KSS2_PZS,
|
|
GZ_KSS2_JE,
|
|
GZ_KSS3_PZS,
|
|
GZ_KSS3_JE,
|
|
YF_SY_PZS,
|
|
YF_SY_JE,
|
|
YF_JZ_PZS,
|
|
YF_JZ_JE,
|
|
GZ_J1_PZS,
|
|
GZ_J1_JE,
|
|
GZ_J2_PZS,
|
|
GZ_J2_JE,
|
|
GZ_MZ_PZS,
|
|
GZ_MZ_JE,
|
|
PZS,
|
|
IS_KSS,
|
|
IS_KSS_1,
|
|
IS_KSS_2,
|
|
IS_KSS_3,
|
|
IS_KSS_JM,
|
|
DDD_KF,
|
|
DDD_ZS,
|
|
DDD_MZ,
|
|
DDD_JZ,
|
|
DDD_ZY,
|
|
JZLX,
|
|
CFYPJE,
|
|
IS_YP,
|
|
CFJE_KSS
|
|
FROM
|
|
HIS_GAT_YPCF_ZB t
|
|
WHERE
|
|
t.JGID =?
|
|
AND t.CFRQ =?
|
|
</sql>
|
|
<tables>
|
|
<table name="HIS_GAT_YPCF_ZB" insert="true" update="true" delete="true">
|
|
<primary>PKEY</primary>
|
|
</table>
|
|
</tables>
|
|
//PKEY,CFRQ,CFH,CFLX,JGID,CFKS,CFYS,HZPKEY,JZPKEY,JSZT,CFJE,CFZCTS,JY_PZS,JY_JE,GZ_KSS1_PZS,GZ_KSS1_JE,GZ_KSS2_PZS,GZ_KSS2_JE,GZ_KSS3_PZS,GZ_KSS3_JE,YF_SY_PZS,YF_SY_JE,YF_JZ_PZS,YF_JZ_JE,GZ_J1_PZS,GZ_J1_JE,GZ_J2_PZS,GZ_J2_JE,GZ_MZ_PZS,GZ_MZ_JE,PZS,IS_KSS,IS_KSS_1,IS_KSS_2,IS_KSS_3,IS_KSS_JM,DDD_KF,DDD_ZS,DDD_MZ,DDD_JZ,DDD_ZY,JZLX,CFYPJE,IS_YP,CFJE_KSS
|
|
<fields>
|
|
<f name="PKEY" type="12" table="HIS_GAT_YPCF_ZB" />
|
|
<f name="CFRQ" type="12" table="HIS_GAT_YPCF_ZB" />
|
|
<f name="CFH" type="12" table="HIS_GAT_YPCF_ZB" />
|
|
<f name="CFLX" type="12" table="HIS_GAT_YPCF_ZB" />
|
|
<f name="JGID" type="12" table="HIS_GAT_YPCF_ZB" />
|
|
<f name="CFKS" type="12" table="HIS_GAT_YPCF_ZB" />
|
|
<f name="CFYS" type="12" table="HIS_GAT_YPCF_ZB" />
|
|
<f name="HZPKEY" type="12" table="HIS_GAT_YPCF_ZB" />
|
|
<f name="JZPKEY" type="12" table="HIS_GAT_YPCF_ZB" />
|
|
<f name="JSZT" type="12" table="HIS_GAT_YPCF_ZB" />
|
|
<f name="CFJE" type="8" table="HIS_GAT_YPCF_ZB" />
|
|
<f name="CFZCTS" type="4" table="HIS_GAT_YPCF_ZB" />
|
|
<f name="JY_PZS" type="4" table="HIS_GAT_YPCF_ZB" />
|
|
<f name="JY_JE" type="8" table="HIS_GAT_YPCF_ZB" />
|
|
<f name="GZ_KSS1_PZS" type="4" table="HIS_GAT_YPCF_ZB" />
|
|
<f name="GZ_KSS1_JE" type="8" table="HIS_GAT_YPCF_ZB" />
|
|
<f name="GZ_KSS2_PZS" type="4" table="HIS_GAT_YPCF_ZB" />
|
|
<f name="GZ_KSS2_JE" type="8" table="HIS_GAT_YPCF_ZB" />
|
|
<f name="GZ_KSS3_PZS" type="4" table="HIS_GAT_YPCF_ZB" />
|
|
<f name="GZ_KSS3_JE" type="8" table="HIS_GAT_YPCF_ZB" />
|
|
<f name="YF_SY_PZS" type="4" table="HIS_GAT_YPCF_ZB" />
|
|
<f name="YF_SY_JE" type="8" table="HIS_GAT_YPCF_ZB" />
|
|
<f name="YF_JZ_PZS" type="4" table="HIS_GAT_YPCF_ZB" />
|
|
<f name="YF_JZ_JE" type="8" table="HIS_GAT_YPCF_ZB" />
|
|
<f name="GZ_J1_PZS" type="4" table="HIS_GAT_YPCF_ZB" />
|
|
<f name="GZ_J1_JE" type="8" table="HIS_GAT_YPCF_ZB" />
|
|
<f name="GZ_J2_PZS" type="4" table="HIS_GAT_YPCF_ZB" />
|
|
<f name="GZ_J2_JE" type="8" table="HIS_GAT_YPCF_ZB" />
|
|
<f name="GZ_MZ_PZS" type="4" table="HIS_GAT_YPCF_ZB" />
|
|
<f name="GZ_MZ_JE" type="8" table="HIS_GAT_YPCF_ZB" />
|
|
<f name="PZS" type="4" table="HIS_GAT_YPCF_ZB" />
|
|
<f name="IS_KSS" type="12" table="HIS_GAT_YPCF_ZB" />
|
|
<f name="IS_KSS_1" type="12" table="HIS_GAT_YPCF_ZB" />
|
|
<f name="IS_KSS_2" type="12" table="HIS_GAT_YPCF_ZB" />
|
|
<f name="IS_KSS_3" type="12" table="HIS_GAT_YPCF_ZB" />
|
|
<f name="IS_KSS_JM" type="12" table="HIS_GAT_YPCF_ZB" />
|
|
<f name="DDD_KF" type="8" table="HIS_GAT_YPCF_ZB" />
|
|
<f name="DDD_ZS" type="8" table="HIS_GAT_YPCF_ZB" />
|
|
<f name="DDD_MZ" type="8" table="HIS_GAT_YPCF_ZB" />
|
|
<f name="DDD_JZ" type="8" table="HIS_GAT_YPCF_ZB" />
|
|
<f name="DDD_ZY" type="8" table="HIS_GAT_YPCF_ZB" />
|
|
<f name="JZLX" type="12" table="HIS_GAT_YPCF_ZB" />
|
|
<f name="CFYPJE" type="8" table="HIS_GAT_YPCF_ZB" />
|
|
<f name="IS_YP" type="12" table="HIS_GAT_YPCF_ZB" />
|
|
<f name="CFJE_KSS" type="8" table="HIS_GAT_YPCF_ZB" />
|
|
</fields>
|
|
<parameter>
|
|
<p>12</p>
|
|
<p>12</p>
|
|
</parameter>
|
|
</dao>
|
|
|
|
|
|
|
|
|
|
|
|
<dao id="cfhz_ypcfmxb_dao" log="true" type="1">
|
|
<sql>
|
|
SELECT
|
|
PKEY,
|
|
ZBPKEY,
|
|
SFX,
|
|
SFXDJ,
|
|
SFXSL,
|
|
SFXZJE,
|
|
JBDWSL,
|
|
YZMXPKEY,
|
|
YZTS,
|
|
YZYF,
|
|
IS_JB,
|
|
GZFL,
|
|
KSS1_BDD,
|
|
KSS1_BDDS,
|
|
KSS1_DDD,
|
|
KSS1_DDDS,
|
|
KSS2_BDD,
|
|
KSS2_BDDS,
|
|
KSS2_DDD,
|
|
KSS2_DDDS,
|
|
KSS3_BDD,
|
|
KSS3_BDDS,
|
|
KSS3_DDD,
|
|
KSS3_DDDS,
|
|
KSS_DDDS,
|
|
SFXMC
|
|
FROM
|
|
HIS_GAT_YPCF_MXB t
|
|
WHERE
|
|
1 = 2
|
|
</sql>
|
|
<tables>
|
|
<table name="HIS_GAT_YPCF_MXB" insert="true" update="true" delete="true">
|
|
<primary>PKEY</primary>
|
|
</table>
|
|
</tables>
|
|
//PKEY,ZBPKEY,SFX,SFXDJ,SFXSL,SFXZJE,JBDWSL,YZMXPKEY,YZTS,YZYF,IS_JB,GZFL,KSS1_BDD,KSS1_BDDS,KSS1_DDD,KSS1_DDDS,KSS2_BDD,KSS2_BDDS,KSS2_DDD,KSS2_DDDS,KSS3_BDD,KSS3_BDDS,KSS3_DDD,KSS3_DDDS
|
|
<fields>
|
|
<f name="PKEY" type="12" table="HIS_GAT_YPCF_MXB" />
|
|
<f name="ZBPKEY" type="12" table="HIS_GAT_YPCF_MXB" />
|
|
<f name="SFX" type="12" table="HIS_GAT_YPCF_MXB" />
|
|
<f name="SFXDJ" type="8" table="HIS_GAT_YPCF_MXB" />
|
|
<f name="SFXSL" type="4" table="HIS_GAT_YPCF_MXB" />
|
|
<f name="SFXZJE" type="8" table="HIS_GAT_YPCF_MXB" />
|
|
<f name="JBDWSL" type="4" table="HIS_GAT_YPCF_MXB" />
|
|
<f name="YZMXPKEY" type="12" table="HIS_GAT_YPCF_MXB" />
|
|
<f name="YZTS" type="4" table="HIS_GAT_YPCF_MXB" />
|
|
<f name="YZYF" type="12" table="HIS_GAT_YPCF_MXB" />
|
|
<f name="IS_JB" type="12" table="HIS_GAT_YPCF_MXB" />
|
|
<f name="GZFL" type="12" table="HIS_GAT_YPCF_MXB" />
|
|
<f name="KSS1_BDD" type="8" table="HIS_GAT_YPCF_MXB" />
|
|
<f name="KSS1_BDDS" type="8" table="HIS_GAT_YPCF_MXB" />
|
|
<f name="KSS1_DDD" type="8" table="HIS_GAT_YPCF_MXB" />
|
|
<f name="KSS1_DDDS" type="8" table="HIS_GAT_YPCF_MXB" />
|
|
<f name="KSS2_BDD" type="8" table="HIS_GAT_YPCF_MXB" />
|
|
<f name="KSS2_BDDS" type="8" table="HIS_GAT_YPCF_MXB" />
|
|
<f name="KSS2_DDD" type="8" table="HIS_GAT_YPCF_MXB" />
|
|
<f name="KSS2_DDDS" type="8" table="HIS_GAT_YPCF_MXB" />
|
|
<f name="KSS3_BDD" type="8" table="HIS_GAT_YPCF_MXB" />
|
|
<f name="KSS3_BDDS" type="8" table="HIS_GAT_YPCF_MXB" />
|
|
<f name="KSS3_DDD" type="8" table="HIS_GAT_YPCF_MXB" />
|
|
<f name="KSS3_DDDS" type="8" table="HIS_GAT_YPCF_MXB" />
|
|
<f name="KSS_DDDS" type="8" table="HIS_GAT_YPCF_MXB" />
|
|
<f name="SFXMC" type="12" table="HIS_GAT_YPCF_MXB" />
|
|
</fields>
|
|
</dao>
|
|
|
|
|
|
<dao id="cfhz_his_ypcf_dao" log="true" type="1">
|
|
<sql><![CDATA[
|
|
|
|
WITH CF AS (
|
|
SELECT
|
|
b.CFH,
|
|
a.JGID
|
|
FROM
|
|
HIS_SFZD_SFXMXB a
|
|
LEFT JOIN HIS_YZ_MXB b ON
|
|
a.JGID = b.JGID
|
|
AND a.YZMX = b.PKEY
|
|
WHERE
|
|
a.JGID = ?
|
|
AND a.JFRQ >= ?
|
|
AND a.JFRQ <= ?
|
|
GROUP BY
|
|
b.CFH,
|
|
a.JGID
|
|
)
|
|
SELECT
|
|
b.CFH,
|
|
d.JZLX,
|
|
d.JJKS,
|
|
b.YZXZYS,
|
|
b.HZPKEY ,
|
|
b.JZPKEY,
|
|
MAX(b.YZTS) AS YZTS ,
|
|
c.GZFL,
|
|
c.JXDL,
|
|
COUNT(c.BM) AS ISYP
|
|
FROM
|
|
HIS_SFZD_SFXMXB a
|
|
LEFT JOIN HIS_YZ_MXB b ON
|
|
a.JGID = b.JGID
|
|
AND a.YZMX = b.PKEY
|
|
LEFT JOIN HIS_YPXX c ON
|
|
b.YZXPKEY = c.BM
|
|
LEFT JOIN HIS_JZ_BASEINFO d ON
|
|
b.JGID = d.JGID
|
|
AND b.JZPKEY = d.PKEY
|
|
WHERE
|
|
a.JGID = ?
|
|
AND EXISTS (
|
|
SELECT
|
|
1
|
|
FROM
|
|
CF
|
|
WHERE
|
|
CF.cfh = b.cfh
|
|
)
|
|
GROUP BY
|
|
b.CFH,
|
|
d.JZLX,
|
|
d.JJKS,
|
|
b.YZXZYS,
|
|
b.HZPKEY ,
|
|
b.JZPKEY,
|
|
c.GZFL,
|
|
c.JXDL
|
|
|
|
]]></sql>
|
|
//CFH,JZLX,JJKS,YZXZYS,HZPKEY,JZPKEY,YZTS,GZFL,JXDL,ISYP
|
|
<fields>
|
|
<f name="CFH" type="12" />
|
|
<f name="JZLX" type="12" />
|
|
<f name="JJKS" type="12" />
|
|
<f name="YZXZYS" type="12" />
|
|
<f name="HZPKEY" type="12" />
|
|
<f name="JZPKEY" type="12" />
|
|
<f name="YZTS" type="12" />
|
|
<f name="GZFL" type="12" />
|
|
<f name="JXDL" type="12" />
|
|
<f name="ISYP" type="4" />
|
|
</fields>
|
|
<parameter>
|
|
<p>12</p>
|
|
<p>93</p>
|
|
<p>93</p>
|
|
<p>12</p>
|
|
</parameter>
|
|
</dao>
|
|
|
|
|
|
|
|
|
|
<dao id="cfhz_his_ypcfmx_dao" log="true" type="1">
|
|
<sql><![CDATA[
|
|
SELECT
|
|
a.PKEY SFPKEY,
|
|
b.PKEY YZPKEY,
|
|
b.CFH,
|
|
b.YZXPKEY,
|
|
b.YZMC,
|
|
c.ISGJJBYW ,
|
|
a.SFXZFY ,
|
|
c.GZFL ,
|
|
b.YZYF,
|
|
y.MC ,
|
|
y.ISJMGY ,
|
|
y.ISZSGY ,
|
|
c.BDD ,
|
|
c.DDD ,
|
|
c.DXSL ,
|
|
c.DXDW ,
|
|
c.JBDW ,
|
|
b.YZDW ,
|
|
a.SFXSL,
|
|
a.SFX ,
|
|
a.SFXDJ,
|
|
a.YZMX,
|
|
NVL(b.YZTS, '0') YZTS,
|
|
c.JXDL,
|
|
d.JZLX,
|
|
nvl(a.JSZT, '0') JSZT,
|
|
c.BM,
|
|
a.JFRQ,
|
|
c.MC AS YPMC
|
|
FROM
|
|
HIS_SFZD_SFXMXB a
|
|
LEFT JOIN HIS_YZ_MXB b ON
|
|
a.JGID = b.JGID
|
|
AND a.YZMX = b.PKEY
|
|
LEFT JOIN HIS_YPXX c ON
|
|
b.YZXPKEY = c.BM
|
|
LEFT JOIN HIS_JZ_BASEINFO d ON
|
|
b.JGID = d.JGID
|
|
AND b.JZPKEY = d.PKEY
|
|
LEFT JOIN HIS_YZ_YPYF y ON
|
|
b.JGID = y.JGID
|
|
AND b.YZYF = y.BM
|
|
WHERE
|
|
a.JGID =?
|
|
AND a.JFRQ >=?
|
|
AND a.JFRQ <=?
|
|
]]></sql>
|
|
//SFPKEY,YZPKEY,CFH,YZXPKEY,YZMC,ISGJJBYW,SFXZFY,GZFL,YZYF,MC,ISJMGY,ISZSGY,BDD,DDD,DXSL,DXDW,JBDW,YZDW,SFXSL,SFX,SFXDJ,YZMX,YZTS,JXDL,JZLX
|
|
<fields>
|
|
<f name="SFPKEY" type="12" />
|
|
<f name="YZPKEY" type="12" />
|
|
<f name="CFH" type="12" />
|
|
<f name="YZXPKEY" type="12" />
|
|
<f name="YZMC" type="12" />
|
|
<f name="ISGJJBYW" type="12" />
|
|
<f name="SFXZFY" type="12" />
|
|
<f name="GZFL" type="12" />
|
|
<f name="YZYF" type="12" />
|
|
<f name="MC" type="12" />
|
|
<f name="ISJMGY" type="12" />
|
|
<f name="ISZSGY" type="12" />
|
|
<f name="BDD" type="8" />
|
|
<f name="DDD" type="8" />
|
|
<f name="DXSL" type="8" />
|
|
<f name="DXDW" type="12" />
|
|
<f name="JBDW" type="12" />
|
|
<f name="YZDW" type="12" />
|
|
<f name="SFXSL" type="12" />
|
|
<f name="SFX" type="12" />
|
|
<f name="SFXDJ" type="12" />
|
|
<f name="YZMX" type="12" />
|
|
<f name="YZTS" type="12" />
|
|
<f name="JXDL" type="12" />
|
|
<f name="JZLX" type="12" />
|
|
<f name="JSZT" type="12" />
|
|
<f name="BM" type="12" />
|
|
<f name="JFRQ" type="93" />
|
|
<f name="YPMC" type="12" />
|
|
</fields>
|
|
<parameter>
|
|
<p>12</p>
|
|
<p>93</p>
|
|
<p>93</p>
|
|
</parameter>
|
|
</dao>
|
|
|
|
|
|
|
|
<dao id="cfhz_mx_delete_dao" log="true" type="1">
|
|
<sql>
|
|
SELECT
|
|
PKEY,
|
|
ZBPKEY,
|
|
SFX,
|
|
SFXDJ,
|
|
SFXSL,
|
|
SFXZJE,
|
|
JBDWSL,
|
|
YZMXPKEY,
|
|
YZTS,
|
|
YZYF,
|
|
IS_JB,
|
|
GZFL,
|
|
KSS1_BDD,
|
|
KSS1_BDDS,
|
|
KSS1_DDD,
|
|
KSS1_DDDS,
|
|
KSS2_BDD,
|
|
KSS2_BDDS,
|
|
KSS2_DDD,
|
|
KSS2_DDDS,
|
|
KSS3_BDD,
|
|
KSS3_BDDS,
|
|
KSS3_DDD,
|
|
KSS3_DDDS,
|
|
KSS_DDDS
|
|
FROM
|
|
HIS_GAT_YPCF_MXB
|
|
WHERE
|
|
ZBPKEY =?
|
|
</sql>
|
|
<tables>
|
|
<table name="HIS_GAT_YPCF_MXB" insert="false" update="false" delete="true">
|
|
<primary>PKEY</primary>
|
|
</table>
|
|
</tables>
|
|
//PKEY,ZBPKEY,SFX,SFXDJ,SFXSL,SFXZJE,JBDWSL,YZMXPKEY,YZTS,YZYF,IS_JB,GZFL,KSS1_BDD,KSS1_BDDS,KSS1_DDD,KSS1_DDDS,KSS2_BDD,KSS2_BDDS,KSS2_DDD,KSS2_DDDS,KSS3_BDD,KSS3_BDDS,KSS3_DDD,KSS3_DDDS,KSS_DDDS
|
|
<fields>
|
|
<f name="PKEY" type="12" table="HIS_GAT_YPCF_MXB" />
|
|
<f name="ZBPKEY" type="12" table="HIS_GAT_YPCF_MXB" />
|
|
<f name="SFX" type="12" table="HIS_GAT_YPCF_MXB" />
|
|
<f name="SFXDJ" type="8" table="HIS_GAT_YPCF_MXB" />
|
|
<f name="SFXSL" type="4" table="HIS_GAT_YPCF_MXB" />
|
|
<f name="SFXZJE" type="8" table="HIS_GAT_YPCF_MXB" />
|
|
<f name="JBDWSL" type="4" table="HIS_GAT_YPCF_MXB" />
|
|
<f name="YZMXPKEY" type="12" table="HIS_GAT_YPCF_MXB" />
|
|
<f name="YZTS" type="4" table="HIS_GAT_YPCF_MXB" />
|
|
<f name="YZYF" type="12" table="HIS_GAT_YPCF_MXB" />
|
|
<f name="IS_JB" type="12" table="HIS_GAT_YPCF_MXB" />
|
|
<f name="GZFL" type="12" table="HIS_GAT_YPCF_MXB" />
|
|
<f name="KSS1_BDD" type="8" table="HIS_GAT_YPCF_MXB" />
|
|
<f name="KSS1_BDDS" type="8" table="HIS_GAT_YPCF_MXB" />
|
|
<f name="KSS1_DDD" type="8" table="HIS_GAT_YPCF_MXB" />
|
|
<f name="KSS1_DDDS" type="8" table="HIS_GAT_YPCF_MXB" />
|
|
<f name="KSS2_BDD" type="8" table="HIS_GAT_YPCF_MXB" />
|
|
<f name="KSS2_BDDS" type="8" table="HIS_GAT_YPCF_MXB" />
|
|
<f name="KSS2_DDD" type="8" table="HIS_GAT_YPCF_MXB" />
|
|
<f name="KSS2_DDDS" type="8" table="HIS_GAT_YPCF_MXB" />
|
|
<f name="KSS3_BDD" type="8" table="HIS_GAT_YPCF_MXB" />
|
|
<f name="KSS3_BDDS" type="8" table="HIS_GAT_YPCF_MXB" />
|
|
<f name="KSS3_DDD" type="8" table="HIS_GAT_YPCF_MXB" />
|
|
<f name="KSS3_DDDS" type="8" table="HIS_GAT_YPCF_MXB" />
|
|
<f name="KSS_DDDS" type="8" table="HIS_GAT_YPCF_MXB" />
|
|
</fields>
|
|
<parameter>
|
|
<p>12</p>
|
|
</parameter>
|
|
</dao>
|
|
|
|
|
|
</datasource> |