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_dzfp.xml

509 lines
27 KiB

<?xml version="1.0" encoding="UTF-8"?>
<datasource>
<!-- 1 表示 sql语句dao 2表示存储过程dao 默认为sql语句dao-->
<dao id="dzpSetupDao" log="true" cache="true" type="1">
<sql>
select PKEY,URL,APPID,APPKEY,VERSION,CODE,FACTORY,YLJGTYPE,JGID,LOCKFLAG from HIS_DZP_SETUP where JGID=?
</sql>
<tables>
<table name="HIS_DZP_SETUP" insert="true" update="true" delete="true">
<primary>PKEY</primary>
<primary>JGID</primary>
</table>
</tables>
<fields>
<f name="PKEY" type="12" table="HIS_DZP_SETUP" />
<f name="URL" type="12" table="HIS_DZP_SETUP" />
<f name="APPID" type="12" table="HIS_DZP_SETUP" />
<f name="APPKEY" type="12" table="HIS_DZP_SETUP" />
<f name="VERSION" type="12" table="HIS_DZP_SETUP" />
<f name="CODE" type="12" table="HIS_DZP_SETUP" />
<f name="FACTORY" type="12" table="HIS_DZP_SETUP" />
<f name="YLJGTYPE" type="12" table="HIS_DZP_SETUP" />
<f name="JGID" type="12" table="HIS_DZP_SETUP" />
<f name="LOCKFLAG" type="-5" table="HIS_DZP_SETUP" />
</fields>
<parameter>
<p>12</p>
</parameter>
</dao>
<dao id="dzpDataDao" log="true" type="1">
<sql>
select PKEY,YWLX,YWPJID,SCTIME,PJDM,PJHM,JYM,PJSCTIME,EWMPATH,PJPAGE,PJOUTPAGE,PZDM,PZHM,PZJYM,SFCH,PJOUTPAGEEWM,JGID from HIS_DZP_DATA where JGID=? and YWPJID=?
</sql>
<tables>
<table name="HIS_DZP_DATA" insert="true" update="true" delete="true">
<primary>PKEY</primary>
<primary>JGID</primary>
</table>
</tables>
<fields>
<f name="PKEY" type="12" table="HIS_DZP_DATA" />
<f name="YWLX" type="12" table="HIS_DZP_DATA" />
<f name="YWPJID" type="12" table="HIS_DZP_DATA" />
<f name="SCTIME" type="93" table="HIS_DZP_DATA" />
<f name="PJDM" type="12" table="HIS_DZP_DATA" />
<f name="PJHM" type="12" table="HIS_DZP_DATA" />
<f name="JYM" type="12" table="HIS_DZP_DATA" />
<f name="PJSCTIME" type="12" table="HIS_DZP_DATA" />
<f name="EWMPATH" type="12" table="HIS_DZP_DATA" />
<f name="PJPAGE" type="12" table="HIS_DZP_DATA" />
<f name="PJOUTPAGE" type="12" table="HIS_DZP_DATA" />
<f name="PZDM" type="12" table="HIS_DZP_DATA" />
<f name="PZHM" type="12" table="HIS_DZP_DATA" />
<f name="PZJYM" type="12" table="HIS_DZP_DATA" />
<f name="SFCH" type="12" table="HIS_DZP_DATA" />
<f name="PJOUTPAGEEWM" type="12" table="HIS_DZP_DATA" />
<f name="JGID" type="12" table="HIS_DZP_DATA" />
</fields>
<parameter>
<p>12</p>
<p>12</p>
</parameter>
</dao>
<dao id="mzghSfzdSfxmxbByDzpDao" log="true" type="1" memo="用于博思电子票打印的明细">
<sql>select a.PKEY,a.ZDZBPKEY,a.YZX,a.YZMX,a.SFX,a.SFXDJ,a.SFXSL,a.SFXZKL,a.SFXZFY,a.SFXZKFY,a.HZYBZF,a.HZZFZF,a.JFRQ,a.CJR,a.CJRQ,a.JGID,a.FYDL,a.FYZL,b.YZFJSM,a.LOCKFLAG,a.SFXSJZFY,a.SCZT,a.MDTRT_ID,a.SETL_ID,a.HCDJPKEY,b.cfh,c.mc,b.YZJX,b.yzdw,c.GLLX,c.GLBM,b.YZGG,b.yzlb,c.RKDW from HIS_SFZD_SFXMXB a left join HIS_YZ_MXB b on a.JGID=b.JGID and a.YZMX=b.pkey left join HIS_SFX c on a.sfx=c.bm and a.JGID=c.JGID where a.JGID=? and a.ZDZBPKEY=? </sql>
<tables>
<table name="HIS_SFZD_SFXMXB" insert="true" update="true" delete="true">
<primary>PKEY</primary>
<primary>ZDZBPKEY</primary>
<primary>JGID</primary>
</table>
</tables>
<fields>
<f name="PKEY" type="12" table="HIS_SFZD_SFXMXB" />
<f name="ZDZBPKEY" type="12" table="HIS_SFZD_SFXMXB" />
<f name="YZX" type="12" table="HIS_SFZD_SFXMXB" />
<f name="YZMX" type="12" table="HIS_SFZD_SFXMXB" />
<f name="SFX" type="12" table="HIS_SFZD_SFXMXB" />
<f name="SFXDJ" type="12" table="HIS_SFZD_SFXMXB" />
<f name="SFXSL" type="12" table="HIS_SFZD_SFXMXB" />
<f name="SFXZKL" type="12" table="HIS_SFZD_SFXMXB" />
<f name="SFXZFY" type="12" table="HIS_SFZD_SFXMXB" />
<f name="SFXZKFY" type="12" table="HIS_SFZD_SFXMXB" />
<f name="HZYBZF" type="12" table="HIS_SFZD_SFXMXB" />
<f name="HZZFZF" type="12" table="HIS_SFZD_SFXMXB" />
<f name="JFRQ" type="93" table="HIS_SFZD_SFXMXB" />
<f name="CJR" type="12" table="HIS_SFZD_SFXMXB" />
<f name="CJRQ" type="93" table="HIS_SFZD_SFXMXB" />
<f name="JGID" type="12" table="HIS_SFZD_SFXMXB" />
<f name="FYDL" type="12" table="HIS_SFZD_SFXMXB" />
<f name="FYZL" type="12" table="HIS_SFZD_SFXMXB" />
<f name="YZFJSM" type="12" />
<f name="LOCKFLAG" type="-5" table="HIS_SFZD_SFXMXB" />
<f name="SFXSJZFY" type="12" table="HIS_SFZD_SFXMXB" />
<f name="SCZT" type="12" table="HIS_SFZD_SFXMXB" />
<f name="MDTRT_ID" type="12" table="HIS_SFZD_SFXMXB" />
<f name="SETL_ID" type="12" table="HIS_SFZD_SFXMXB" />
<f name="HCDJPKEY" type="12" table="HIS_SFZD_SFXMXB" />
<f name="CFH" type="12" />
<f name="MC" type="12" />
<f name="YZJX" type="12" />
<f name="YZDW" type="12" />
<f name="GLLX" type="12" />
<f name="GLBM" type="12" />
<f name="YZGG" type="12" />
<f name="YZLB" type="12" />
<f name="RKDW" type="12" />
</fields>
<parameter>
<p>12</p>
<p>12</p>
</parameter>
</dao>
<dao id="dzpDataByPjhmDao" log="true" type="1">
<sql>
select PKEY,YWLX,YWPJID,SCTIME,PJDM,PJHM,JYM,PJSCTIME,EWMPATH,PJPAGE,PJOUTPAGE,PZDM,PZHM,PZJYM,SFCH,PJOUTPAGEEWM,JGID from HIS_DZP_DATA where JGID=? and PJHM=?
</sql>
<tables>
<table name="HIS_DZP_DATA" insert="true" update="true" delete="true">
<primary>PKEY</primary>
<primary>JGID</primary>
</table>
</tables>
<fields>
<f name="PKEY" type="12" table="HIS_DZP_DATA" />
<f name="YWLX" type="12" table="HIS_DZP_DATA" />
<f name="YWPJID" type="12" table="HIS_DZP_DATA" />
<f name="SCTIME" type="93" table="HIS_DZP_DATA" />
<f name="PJDM" type="12" table="HIS_DZP_DATA" />
<f name="PJHM" type="12" table="HIS_DZP_DATA" />
<f name="JYM" type="12" table="HIS_DZP_DATA" />
<f name="PJSCTIME" type="12" table="HIS_DZP_DATA" />
<f name="EWMPATH" type="12" table="HIS_DZP_DATA" />
<f name="PJPAGE" type="12" table="HIS_DZP_DATA" />
<f name="PJOUTPAGE" type="12" table="HIS_DZP_DATA" />
<f name="PZDM" type="12" table="HIS_DZP_DATA" />
<f name="PZHM" type="12" table="HIS_DZP_DATA" />
<f name="PZJYM" type="12" table="HIS_DZP_DATA" />
<f name="SFCH" type="12" table="HIS_DZP_DATA" />
<f name="PJOUTPAGEEWM" type="12" table="HIS_DZP_DATA" />
<f name="JGID" type="12" table="HIS_DZP_DATA" />
</fields>
<parameter>
<p>12</p>
<p>12</p>
</parameter>
</dao>
<dao id="mzsfDzpDao" log="true" type="1" memo="所有门诊收费的按电子票进行打印发票的记录,包括正常和红冲单据">
<sql><![CDATA[
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,f.PJDM,f.PJHM,f.JYM 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 left join HIS_DZP_DATA f on a.fphm=f.PJHM and a.pkey=f.YWPJID and a.JGID=f.JGID where a.PJZT=1 and a.SFZT != 0 and a.PJLX='MS' and a.JGID=? and a.SFDZP=1 and a.SFRQ >=? and a.SFRQ <=? order by a.SFRQ desc
]]>
</sql>
<tables>
<table name="HIS_MZJS_MZFPZB" insert="false" update="false" delete="false">
<primary>PKEY</primary>
<primary>JGID</primary>
<primary>SFZT</primary>
<primary>PJZT</primary>
</table>
</tables>
<fields>
<f name="PKEY" type="12" table="HIS_MZJS_MZFPZB" />
<f name="GLZDBPKEY" type="12" table="HIS_MZJS_MZFPZB" />
<f name="SJPKEY" type="12" table="HIS_MZJS_MZFPZB" />
<f name="CLOSEPKEY" type="12" table="HIS_MZJS_MZFPZB" />
<f name="JZZT" type="12" table="HIS_MZJS_MZFPZB" />
<f name="JZRQ" type="93" table="HIS_MZJS_MZFPZB" />
<f name="CHFPHM" type="12" table="HIS_MZJS_MZFPZB" />
<f name="CHPKEY" type="12" table="HIS_MZJS_MZFPZB" />
<f name="FPHM" type="12" table="HIS_MZJS_MZFPZB" />
<f name="HZPKEY" type="12" table="HIS_MZJS_MZFPZB" />
<f name="PJLX" type="12" table="HIS_MZJS_MZFPZB" />
<f name="SFRY" type="12" table="HIS_MZJS_MZFPZB" />
<f name="SFRQ" type="93" table="HIS_MZJS_MZFPZB" />
<f name="SFZT" type="12" table="HIS_MZJS_MZFPZB" />
<f name="FPLX" type="12" table="HIS_MZJS_MZFPZB" />
<f name="FPDRYY" type="12" table="HIS_MZJS_MZFPZB" />
<f name="YBLX" type="12" table="HIS_MZJS_MZFPZB" />
<f name="YBZFJE" type="12" table="HIS_MZJS_MZFPZB" />
<f name="SFJE" type="12" table="HIS_MZJS_MZFPZB" />
<f name="YBJSB" type="12" table="HIS_MZJS_MZFPZB" />
<f name="CHYY" type="12" table="HIS_MZJS_MZFPZB" />
<f name="JZPKEY" type="12" table="HIS_MZJS_MZFPZB" />
<f name="SFDZP" type="12" table="HIS_MZJS_MZFPZB" />
<f name="CJR" type="12" table="HIS_MZJS_MZFPZB" />
<f name="CJRQ" type="93" table="HIS_MZJS_MZFPZB" />
<f name="JGID" type="12" table="HIS_MZJS_MZFPZB" />
<f name="SFDYFP" type="12" table="HIS_MZJS_MZFPZB" />
<f name="SFJZDY" type="12" table="HIS_MZJS_MZFPZB" />
<f name="PJZT" type="12" table="HIS_MZJS_MZFPZB" />
<f name="XM" type="12" />
<f name="JZKH" type="12" />
<f name="KLX" type="12" />
<f name="SQZT" type="12" />
<f name="SHZT" type="12" />
<f name="SHRY" type="12" />
<f name="SHRQ" type="93" />
<f name="ZXZT" type="12" />
<f name="JZNO" type="12" />
<f name="SHBHBZ" type="12" />
<f name="TFHSF" type="12" table="HIS_MZJS_MZFPZB" />
<f name="LOCKFLAG" type="-5" table="HIS_MZJS_MZFPZB" />
<f name="PJDM" type="12" />
<f name="PJHM" type="12" />
<f name="JYM" type="12" />
</fields>
<parameter>
<p>12</p>
<p>93</p>
<p>93</p>
</parameter>
</dao>
<dao id="mzMzsffpDzpDao" log="true" type="1" memo="专门用于电子发票处理的收费dao,去掉了乐观锁,不影响其他流程的正常进行">
<sql>select PKEY,GLZDBPKEY,SJPKEY,CLOSEPKEY,JZZT,JZRQ,CHFPHM,CHPKEY,FPHM,HZPKEY,PJLX,SFRY,SFRQ,SFZT,FPLX,FPDRYY,YBLX,YBZFJE,SFJE,YBJSB,CHYY,JZPKEY,SFDZP,CJR,CJRQ,JGID,SFDYFP,SFJZDY,PJZT,TFHSF from HIS_MZJS_MZFPZB where JGID=? and GLZDBPKEY=? and JZPKEY=? and HZPKEY=?</sql>
<tables>
<table name="HIS_MZJS_MZFPZB" insert="true" update="true" delete="true">
<primary>PKEY</primary>
<primary>GLZDBPKEY</primary>
<primary>JZPKEY</primary>
<primary>JGID</primary>
<primary>HZPKEY</primary>
<primary>TFHSF</primary>
<primary>JZZT</primary>
<primary>SFZT</primary>
</table>
</tables>
<fields>
<f name="PKEY" type="12" table="HIS_MZJS_MZFPZB" />
<f name="GLZDBPKEY" type="12" table="HIS_MZJS_MZFPZB" />
<f name="SJPKEY" type="12" table="HIS_MZJS_MZFPZB" />
<f name="CLOSEPKEY" type="12" table="HIS_MZJS_MZFPZB" />
<f name="JZZT" type="12" table="HIS_MZJS_MZFPZB" />
<f name="JZRQ" type="93" table="HIS_MZJS_MZFPZB" />
<f name="CHFPHM" type="12" table="HIS_MZJS_MZFPZB" />
<f name="CHPKEY" type="12" table="HIS_MZJS_MZFPZB" />
<f name="FPHM" type="12" table="HIS_MZJS_MZFPZB" />
<f name="HZPKEY" type="12" table="HIS_MZJS_MZFPZB" />
<f name="PJLX" type="12" table="HIS_MZJS_MZFPZB" />
<f name="SFRY" type="12" table="HIS_MZJS_MZFPZB" />
<f name="SFRQ" type="93" table="HIS_MZJS_MZFPZB" />
<f name="SFZT" type="12" table="HIS_MZJS_MZFPZB" />
<f name="FPLX" type="12" table="HIS_MZJS_MZFPZB" />
<f name="FPDRYY" type="12" table="HIS_MZJS_MZFPZB" />
<f name="YBLX" type="12" table="HIS_MZJS_MZFPZB" />
<f name="YBZFJE" type="12" table="HIS_MZJS_MZFPZB" />
<f name="SFJE" type="12" table="HIS_MZJS_MZFPZB" />
<f name="YBJSB" type="12" table="HIS_MZJS_MZFPZB" />
<f name="CHYY" type="12" table="HIS_MZJS_MZFPZB" />
<f name="JZPKEY" type="12" table="HIS_MZJS_MZFPZB" />
<f name="SFDZP" type="12" table="HIS_MZJS_MZFPZB" />
<f name="CJR" type="12" table="HIS_MZJS_MZFPZB" />
<f name="CJRQ" type="93" table="HIS_MZJS_MZFPZB" />
<f name="JGID" type="12" table="HIS_MZJS_MZFPZB" />
<f name="SFDYFP" type="12" table="HIS_MZJS_MZFPZB" />
<f name="SFJZDY" type="12" table="HIS_MZJS_MZFPZB" />
<f name="PJZT" type="12" table="HIS_MZJS_MZFPZB" />
<f name="TFHSF" type="12" table="HIS_MZJS_MZFPZB" />
</fields>
<parameter>
<p>12</p>
<p>12</p>
<p>12</p>
<p>12</p>
</parameter>
</dao>
<dao id="mzMzzffpDzpDao" log="true" type="1" memo="专门用于电子发票处理的作废冲销dao,去掉了乐观锁,不影响其他流程的正常进行">
<sql>select PKEY,GLZDBPKEY,SJPKEY,CLOSEPKEY,JZZT,JZRQ,CHFPHM,CHPKEY,FPHM,HZPKEY,PJLX,SFRY,SFRQ,SFZT,FPLX,FPDRYY,YBLX,YBZFJE,SFJE,YBJSB,CHYY,JZPKEY,SFDZP,CJR,CJRQ,JGID,SFDYFP,SFJZDY,PJZT,TFHSF from HIS_MZJS_MZFPZB where JGID=? and (PKEY=? or CHPKEY=?) and JZPKEY=? and HZPKEY=?</sql>
<tables>
<table name="HIS_MZJS_MZFPZB" insert="true" update="true" delete="true">
<primary>PKEY</primary>
<primary>GLZDBPKEY</primary>
<primary>JZPKEY</primary>
<primary>JGID</primary>
<primary>HZPKEY</primary>
<primary>TFHSF</primary>
<primary>JZZT</primary>
<primary>SFZT</primary>
</table>
</tables>
<fields>
<f name="PKEY" type="12" table="HIS_MZJS_MZFPZB" />
<f name="GLZDBPKEY" type="12" table="HIS_MZJS_MZFPZB" />
<f name="SJPKEY" type="12" table="HIS_MZJS_MZFPZB" />
<f name="CLOSEPKEY" type="12" table="HIS_MZJS_MZFPZB" />
<f name="JZZT" type="12" table="HIS_MZJS_MZFPZB" />
<f name="JZRQ" type="93" table="HIS_MZJS_MZFPZB" />
<f name="CHFPHM" type="12" table="HIS_MZJS_MZFPZB" />
<f name="CHPKEY" type="12" table="HIS_MZJS_MZFPZB" />
<f name="FPHM" type="12" table="HIS_MZJS_MZFPZB" />
<f name="HZPKEY" type="12" table="HIS_MZJS_MZFPZB" />
<f name="PJLX" type="12" table="HIS_MZJS_MZFPZB" />
<f name="SFRY" type="12" table="HIS_MZJS_MZFPZB" />
<f name="SFRQ" type="93" table="HIS_MZJS_MZFPZB" />
<f name="SFZT" type="12" table="HIS_MZJS_MZFPZB" />
<f name="FPLX" type="12" table="HIS_MZJS_MZFPZB" />
<f name="FPDRYY" type="12" table="HIS_MZJS_MZFPZB" />
<f name="YBLX" type="12" table="HIS_MZJS_MZFPZB" />
<f name="YBZFJE" type="12" table="HIS_MZJS_MZFPZB" />
<f name="SFJE" type="12" table="HIS_MZJS_MZFPZB" />
<f name="YBJSB" type="12" table="HIS_MZJS_MZFPZB" />
<f name="CHYY" type="12" table="HIS_MZJS_MZFPZB" />
<f name="JZPKEY" type="12" table="HIS_MZJS_MZFPZB" />
<f name="SFDZP" type="12" table="HIS_MZJS_MZFPZB" />
<f name="CJR" type="12" table="HIS_MZJS_MZFPZB" />
<f name="CJRQ" type="93" table="HIS_MZJS_MZFPZB" />
<f name="JGID" type="12" table="HIS_MZJS_MZFPZB" />
<f name="SFDYFP" type="12" table="HIS_MZJS_MZFPZB" />
<f name="SFJZDY" type="12" table="HIS_MZJS_MZFPZB" />
<f name="PJZT" type="12" table="HIS_MZJS_MZFPZB" />
<f name="TFHSF" type="12" table="HIS_MZJS_MZFPZB" />
</fields>
<parameter>
<p>12</p>
<p>12</p>
<p>12</p>
<p>12</p>
<p>12</p>
</parameter>
</dao>
<dao id="zysfDzpDao" log="true" type="1" memo="所有住院收费的按电子票进行打印发票的记录,包括正常和红冲单据">
<sql><![CDATA[
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,f.PJDM,f.PJHM,f.JYM 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 left join HIS_DZP_DATA f on a.fphm=f.PJHM and a.pkey=f.YWPJID and a.JGID=f.JGID where a.PJZT=1 and a.SFZT != 0 and a.PJLX='ZS' and a.JGID=? and a.SFDZP=1 and a.SFRQ >=? and a.SFRQ <=? order by a.SFRQ desc
]]>
</sql>
<tables>
<table name="HIS_MZJS_MZFPZB" insert="false" update="false" delete="false">
<primary>PKEY</primary>
<primary>JGID</primary>
<primary>SFZT</primary>
<primary>PJZT</primary>
</table>
</tables>
<fields>
<f name="PKEY" type="12" table="HIS_MZJS_MZFPZB" />
<f name="GLZDBPKEY" type="12" table="HIS_MZJS_MZFPZB" />
<f name="SJPKEY" type="12" table="HIS_MZJS_MZFPZB" />
<f name="CLOSEPKEY" type="12" table="HIS_MZJS_MZFPZB" />
<f name="JZZT" type="12" table="HIS_MZJS_MZFPZB" />
<f name="JZRQ" type="93" table="HIS_MZJS_MZFPZB" />
<f name="CHFPHM" type="12" table="HIS_MZJS_MZFPZB" />
<f name="CHPKEY" type="12" table="HIS_MZJS_MZFPZB" />
<f name="FPHM" type="12" table="HIS_MZJS_MZFPZB" />
<f name="HZPKEY" type="12" table="HIS_MZJS_MZFPZB" />
<f name="PJLX" type="12" table="HIS_MZJS_MZFPZB" />
<f name="SFRY" type="12" table="HIS_MZJS_MZFPZB" />
<f name="SFRQ" type="93" table="HIS_MZJS_MZFPZB" />
<f name="SFZT" type="12" table="HIS_MZJS_MZFPZB" />
<f name="FPLX" type="12" table="HIS_MZJS_MZFPZB" />
<f name="FPDRYY" type="12" table="HIS_MZJS_MZFPZB" />
<f name="YBLX" type="12" table="HIS_MZJS_MZFPZB" />
<f name="YBZFJE" type="12" table="HIS_MZJS_MZFPZB" />
<f name="SFJE" type="12" table="HIS_MZJS_MZFPZB" />
<f name="YBJSB" type="12" table="HIS_MZJS_MZFPZB" />
<f name="CHYY" type="12" table="HIS_MZJS_MZFPZB" />
<f name="JZPKEY" type="12" table="HIS_MZJS_MZFPZB" />
<f name="SFDZP" type="12" table="HIS_MZJS_MZFPZB" />
<f name="CJR" type="12" table="HIS_MZJS_MZFPZB" />
<f name="CJRQ" type="93" table="HIS_MZJS_MZFPZB" />
<f name="JGID" type="12" table="HIS_MZJS_MZFPZB" />
<f name="SFDYFP" type="12" table="HIS_MZJS_MZFPZB" />
<f name="SFJZDY" type="12" table="HIS_MZJS_MZFPZB" />
<f name="PJZT" type="12" table="HIS_MZJS_MZFPZB" />
<f name="XM" type="12" />
<f name="JZKH" type="12" />
<f name="KLX" type="12" />
<f name="SQZT" type="12" />
<f name="SHZT" type="12" />
<f name="SHRY" type="12" />
<f name="SHRQ" type="93" />
<f name="ZXZT" type="12" />
<f name="JZNO" type="12" />
<f name="SHBHBZ" type="12" />
<f name="TFHSF" type="12" table="HIS_MZJS_MZFPZB" />
<f name="LOCKFLAG" type="-5" table="HIS_MZJS_MZFPZB" />
<f name="PJDM" type="12" />
<f name="PJHM" type="12" />
<f name="JYM" type="12" />
</fields>
<parameter>
<p>12</p>
<p>93</p>
<p>93</p>
</parameter>
</dao>
<dao id="SfzdSfxmxbByNoZeroFyDao" log="true" type="1" memo="用于在住院收费比对上传明细时没有0费用的明细">
<sql>select a.PKEY,a.ZDZBPKEY,a.YZX,a.YZMX,a.SFX,a.SFXDJ,a.SFXSL,a.SFXZKL,a.SFXZFY,a.SFXZKFY,a.HZYBZF,a.HZZFZF,a.JFRQ,a.CJR,a.CJRQ,a.JGID,a.FYDL,a.FYZL,b.YZFJSM,a.LOCKFLAG,a.SFXSJZFY,a.SCZT,a.MDTRT_ID,a.SETL_ID,a.HCDJPKEY,b.cfh,c.mc,b.YZJX,b.yzdw,c.GLLX,c.GLBM,b.YZGG,b.yzlb,c.RKDW from HIS_SFZD_SFXMXB a left join HIS_YZ_MXB b on a.JGID=b.JGID and a.YZMX=b.pkey left join HIS_SFX c on a.sfx=c.bm and a.JGID=c.JGID where a.JGID=? and a.ZDZBPKEY=? and a.SFXZFY != 0 </sql>
<tables>
<table name="HIS_SFZD_SFXMXB" insert="true" update="true" delete="true">
<primary>PKEY</primary>
<primary>ZDZBPKEY</primary>
<primary>JGID</primary>
</table>
</tables>
<fields>
<f name="PKEY" type="12" table="HIS_SFZD_SFXMXB" />
<f name="ZDZBPKEY" type="12" table="HIS_SFZD_SFXMXB" />
<f name="YZX" type="12" table="HIS_SFZD_SFXMXB" />
<f name="YZMX" type="12" table="HIS_SFZD_SFXMXB" />
<f name="SFX" type="12" table="HIS_SFZD_SFXMXB" />
<f name="SFXDJ" type="12" table="HIS_SFZD_SFXMXB" />
<f name="SFXSL" type="12" table="HIS_SFZD_SFXMXB" />
<f name="SFXZKL" type="12" table="HIS_SFZD_SFXMXB" />
<f name="SFXZFY" type="12" table="HIS_SFZD_SFXMXB" />
<f name="SFXZKFY" type="12" table="HIS_SFZD_SFXMXB" />
<f name="HZYBZF" type="12" table="HIS_SFZD_SFXMXB" />
<f name="HZZFZF" type="12" table="HIS_SFZD_SFXMXB" />
<f name="JFRQ" type="93" table="HIS_SFZD_SFXMXB" />
<f name="CJR" type="12" table="HIS_SFZD_SFXMXB" />
<f name="CJRQ" type="93" table="HIS_SFZD_SFXMXB" />
<f name="JGID" type="12" table="HIS_SFZD_SFXMXB" />
<f name="FYDL" type="12" table="HIS_SFZD_SFXMXB" />
<f name="FYZL" type="12" table="HIS_SFZD_SFXMXB" />
<f name="YZFJSM" type="12" />
<f name="LOCKFLAG" type="-5" table="HIS_SFZD_SFXMXB" />
<f name="SFXSJZFY" type="12" table="HIS_SFZD_SFXMXB" />
<f name="SCZT" type="12" table="HIS_SFZD_SFXMXB" />
<f name="MDTRT_ID" type="12" table="HIS_SFZD_SFXMXB" />
<f name="SETL_ID" type="12" table="HIS_SFZD_SFXMXB" />
<f name="HCDJPKEY" type="12" table="HIS_SFZD_SFXMXB" />
<f name="CFH" type="12" />
<f name="MC" type="12" />
<f name="YZJX" type="12" />
<f name="YZDW" type="12" />
<f name="GLLX" type="12" />
<f name="GLBM" type="12" />
<f name="YZGG" type="12" />
<f name="YZLB" type="12" />
<f name="RKDW" type="12" />
</fields>
<parameter>
<p>12</p>
<p>12</p>
</parameter>
</dao>
<dao id="dzpKpdSetupDao" log="true" type="1" memo="电子票开票点设置dao">
<sql>
select PKEY,CZY,KPD,SFYW,CJR,CJRQ,XGR,XGRQ,JGID,LOCKFLAG from HIS_DZP_SETUP_KPD where JGID=? order by pkey
</sql>
<tables>
<table name="HIS_DZP_SETUP_KPD" insert="true" update="true" delete="true">
<primary>PKEY</primary>
<primary>JGID</primary>
</table>
</tables>
<fields>
<f name="PKEY" type="12" table="HIS_DZP_SETUP_KPD" />
<f name="CZY" type="12" table="HIS_DZP_SETUP_KPD" />
<f name="KPD" type="12" table="HIS_DZP_SETUP_KPD" />
<f name="SFYW" type="12" table="HIS_DZP_SETUP_KPD" />
<f name="CJR" type="12" table="HIS_DZP_SETUP_KPD" />
<f name="CJRQ" type="93" table="HIS_DZP_SETUP_KPD" />
<f name="XGR" type="12" table="HIS_DZP_SETUP_KPD" />
<f name="XGRQ" type="93" table="HIS_DZP_SETUP_KPD" />
<f name="JGID" type="12" table="HIS_DZP_SETUP_KPD" />
<f name="LOCKFLAG" type="-5" table="HIS_DZP_SETUP_KPD" />
</fields>
<parameter>
<p>12</p>
</parameter>
</dao>
<dao id="dzpKpdDic" log="true" cache="true" type="1" memo="电子票开票点设置dao">
<sql>
select PKEY,CZY,KPD,SFYW,CJR,CJRQ,XGR,XGRQ,JGID,LOCKFLAG from HIS_DZP_SETUP_KPD where JGID=? order by pkey
</sql>
<tables>
<table name="HIS_DZP_SETUP_KPD" insert="true" update="true" delete="true">
<primary>PKEY</primary>
<primary>JGID</primary>
</table>
</tables>
<fields>
<f name="PKEY" type="12" table="HIS_DZP_SETUP_KPD" />
<f name="CZY" type="12" table="HIS_DZP_SETUP_KPD" />
<f name="KPD" type="12" table="HIS_DZP_SETUP_KPD" />
<f name="SFYW" type="12" table="HIS_DZP_SETUP_KPD" />
<f name="CJR" type="12" table="HIS_DZP_SETUP_KPD" />
<f name="CJRQ" type="93" table="HIS_DZP_SETUP_KPD" />
<f name="XGR" type="12" table="HIS_DZP_SETUP_KPD" />
<f name="XGRQ" type="93" table="HIS_DZP_SETUP_KPD" />
<f name="JGID" type="12" table="HIS_DZP_SETUP_KPD" />
<f name="LOCKFLAG" type="-5" table="HIS_DZP_SETUP_KPD" />
</fields>
<parameter>
<p>12</p>
</parameter>
</dao>
</datasource>