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.
klhis/WEB-INF/conf/sysds_cfhz.xml

179 lines
8.5 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
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
<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" />
</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 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" />
</fields>
</dao>
<dao id="his_ypcf_dao" log="true" type="1">
<sql><![CDATA[
SELECT b.CFH,d.JZLX,d.JJKS,b.YZXZYS,b.HZPKEY ,b.JZPKEY ,SUM(a.SFXZFY) SFXZFY ,MAX(b.YZTS) YZTS,a.JSZT
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 a.JFRQ>=?
AND a.JFRQ<=?
AND c.BM IS NOT NULL
GROUP BY b.CFH,d.JZLX,d.JJKS,b.YZXZYS,b.HZPKEY ,b.JZPKEY
]]></sql>
//CFH,JZLX,JJKS,YZXZYS,HZPKEY,JZPKEY,SFXZFY,YZTS
<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="SFXZFY" type="4" />
<f name="YZTS" type="12" />
<f name="JSZT" type="12" />
</fields>
<parameter>
<p>12</p>
<p>93</p>
<p>93</p>
</parameter>
</dao>
<dao id="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,b.YZTS
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<=?
AND c.BM IS NOT NULL
]]></sql>
//SFPKEY,YZPKEY,CFH,YZXPKEY,YZMC,ISGJJBYW,SFXZFY,GZFL,YZYF,MC,ISJMGY,ISZSGY,BDD,DDD,DXSL,DXDW,JBDW,YZDW,SFXSL,SFX,SFXDJ,YZMX,YZTS
<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" />
</fields>
<parameter>
<p>12</p>
<p>93</p>
<p>93</p>
</parameter>
</dao>
</datasource>