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.
 
 
 
 
 
klintersrv/WEB-INF/conf/sysds_jimureport_sfcbb.xml

585 lines
23 KiB

<?xml version="1.0" encoding="UTF-8"?>
<datasource>
<!-- 1 表示 sql语句dao 2表示存储过程dao 默认为sql语句dao-->
<dao id="mzsfjfdMainDataDao" log="true" type="1" memo="收费处-门诊收费缴费单">
<sql>
select '' 医疗机构,'' 缴款统计开始时间,'' 缴款统计结束时间,'' 缴款单号,'' 缴款时间,'' 缴款人,'' 应缴合计,'' 应缴合计大写,'' 票据总数,'' 正常打印,'' 退单回收,'' 重新打印,'' 补打回收,'' 空白回收,'' 报损回收,'' 退单票号,'' 押金票据总数,'' 押金正常打印,'' 押金退单回收,'' 押金重新打印,'' 押金补打回收,'' 押金空白回收,'' 押金报损回收,'' 押金退单票号 from dual where 1=2
</sql>
<fields>
<f name="医疗机构" type="1" />
<f name="缴款统计开始时间" type="1" />
<f name="缴款统计结束时间" type="1" />
<f name="缴款单号" type="1" />
<f name="缴款时间" type="1" />
<f name="缴款人" type="1" />
<f name="应缴合计" type="1" />
<f name="应缴合计大写" type="1" />
<f name="票据总数" type="1" />
<f name="正常打印" type="1" />
<f name="退单回收" type="1" />
<f name="重新打印" type="1" />
<f name="补打回收" type="1" />
<f name="空白回收" type="1" />
<f name="报损回收" type="1" />
<f name="退单票号" type="1" />
<f name="押金票据总数" type="1" />
<f name="押金正常打印" type="1" />
<f name="押金退单回收" type="1" />
<f name="押金重新打印" type="1" />
<f name="押金补打回收" type="1" />
<f name="押金空白回收" type="1" />
<f name="押金报损回收" type="1" />
<f name="押金退单票号" type="1" />
</fields>
</dao>
<dao id="mzsfjfdFpDao" log="true" type="1" memo="收费处-门诊收费缴费单-发票明细">
<sql>
select '' 开始票号,'' 结束票号 from dual where 1=2
</sql>
<fields>
<f name="开始票号" type="1" />
<f name="结束票号" type="1" />
</fields>
</dao>
<dao id="mzsfjfdMxDao" log="true" type="1" memo="收费处-门诊收费缴费单-缴款明细">
<sql>
select '' 业务类别,'' 支付方式,'' 收费,'' 退费,'' 实收,'' 人员类型 from dual where 1=2
</sql>
<fields>
<f name="业务类别" type="1" />
<f name="支付方式" type="1" />
<f name="收费" type="1" />
<f name="退费" type="1" />
<f name="实收" type="1" />
<f name="人员类型" type="1" />
</fields>
</dao>
<dao id="mzsfjfdFylbDao" log="true" type="1" memo="收费处-门诊收费缴费单-费用类别">
<sql>
select '' 费用类别,'' 金额 from dual where 1=2
</sql>
<fields>
<f name="费用类别" type="1" />
<f name="金额" type="1" />
</fields>
</dao>
<dao id="mzsfyjzmaindao" log="true" type="1" memo="预结算结账收费发票主表dao">
<sql><![CDATA[
select count(*) num,sum(fylbje) fylbje,sum(zfje) zfje from (select (select sum(FYLBJE) FYLBJE from HIS_MZJS_MZFPSFLBB where MZFPPKEY=a.pkey and JGID=a.JGID) FYLBJE,(select sum(ZFJE) ZFJE from HIS_MZJS_MZFPZFFSB where MZFPPKEY=a.pkey and JGID=a.JGID) ZFJE,a.LOCKFLAG from HIS_MZJS_MZFPZB a left join HIS_SFZD_ZB b on a.GLZDBPKEY=b.pkey and a.JGID=b.JGID left join HIS_JZ_BASEINFO c on b.jzpkey=c.pkey and b.JGID=c.JGID left join HIS_HZINFO d on b.hzpkey=d.pkey and b.JGID=d.JGID where a.JGID=? and a.JZZT=0 and a.SFZT != '0' and a.SFRY=? and a.PJLX=? and a.SFRQ > ? and a.SFRQ <=? order by a.SFRQ )
]]></sql>
<fields>
<f name="num" type="12" />
<f name="fylbje" type="12" />
<f name="zfje" type="12" />
</fields>
<parameter>
<p>12</p>
<p>12</p>
<p>12</p>
<p>93</p>
<p>93</p>
</parameter>
</dao>
<dao id="pjInuserMxBySfryAndFplxDao" log="true" type="1" memo="收费票据的显示dao">
<sql><![CDATA[
select FPHM,PJLX,SFRY,SFRQ,SFZT,FPLX,FPDRYY,SFDZP,SFJZDY,SFJE from HIS_PJUSE_MX where JGID=? and PJLX=? and SFRY=? and SFRQ > ? and SFRQ <=? order by CJRQ
]]></sql>
<fields>
<f name="FPHM" type="12" />
<f name="PJLX" type="12" />
<f name="SFRY" type="12" />
<f name="SFRQ" type="93" />
<f name="SFZT" type="12" />
<f name="FPLX" type="12" />
<f name="FPDRYY" type="12" />
<f name="SFDZP" type="12" />
<f name="SFJZDY" type="12" />
<f name="SFJE" type="12" />
</fields>
<parameter>
<p>12</p>
<p>12</p>
<p>12</p>
<p>93</p>
<p>93</p>
</parameter>
</dao>
<dao id="sfzffsZsDao" log="true" type="1" memo="收费支付方式正数的合计dao">
<sql><![CDATA[
select zflx,sum(zfje)zfje,insutype from(select distinct a.pkey,b.pkey mzfppkey,a.ZFLX,a.ZFJE,nvl(c.INSUTYPE,'') INSUTYPE
from HIS_MZJS_MZFPZFFSB a
left join HIS_MZJS_MZFPZB b on a.MZFPPKEY=b.pkey and b.JGID=a.JGID
left join HIS_YB_JSB c on c.ZDZBPKEY=b.GLZDBPKEY
where a.JGID=? and b.JZZT=? and b.SFZT != '0' and a.ZFJE >= 0 and b.SFRY=? and b.PJLX=? and b.SFRQ > ? and b.SFRQ <=? and b.pjzt='1' and (c.cxzt=0 or (c.cxzt='1' and c.OLD_SETL_ID is null) or c.cxzt is null)) group by ZFLX,INSUTYPE order by zflx
]]></sql>
<fields>
<f name="ZFLX" type="12" />
<f name="zfje" type="12" />
<f name="INSUTYPE" type="12" />
</fields>
<parameter>
<p>12</p>
<p>12</p>
<p>12</p>
<p>12</p>
<p>93</p>
<p>93</p>
</parameter>
</dao>
<dao id="sfzffsZsMxDao" log="true" type="1" memo="收费支付方式正数的明细dao">
<sql><![CDATA[
select distinct a.pkey,b.pkey mzfppkey,a.ZFLX,a.ZFJE,nvl(c.INSUTYPE,'') INSUTYPE,c.cxzt,c.SETL_ID
from HIS_MZJS_MZFPZFFSB a
left join HIS_MZJS_MZFPZB b on a.MZFPPKEY=b.pkey and b.JGID=a.JGID
left join HIS_YB_JSB c on c.ZDZBPKEY=b.GLZDBPKEY
where a.JGID=? and b.JZZT=? and b.SFZT != '0' and a.ZFJE >= 0 and b.SFRY=? and b.PJLX=? and b.SFRQ > ? and b.SFRQ <=? and b.pjzt='1' and (c.cxzt=0 or (c.cxzt='1' and c.OLD_SETL_ID is null) or c.cxzt is null) order by zflx
]]></sql>
<fields>
<f name="PKEY" type="12" />
<f name="MZFPPKEY" type="12" />
<f name="ZFLX" type="12" />
<f name="ZFJE" type="12" />
<f name="INSUTYPE" type="12" />
<f name="CXZT" type="12" />
<f name="SETL_ID" type="12" />
</fields>
<parameter>
<p>12</p>
<p>12</p>
<p>12</p>
<p>12</p>
<p>93</p>
<p>93</p>
</parameter>
</dao>
<dao id="sfzffsZsTfMxDao" log="true" type="1" memo="收费支付方式正常收费的退费的明细dao">
<sql><![CDATA[
select distinct a.pkey,b.pkey mzfppkey,a.ZFLX,a.ZFJE,nvl(c.INSUTYPE,'') INSUTYPE,c.cxzt,c.SETL_ID
from HIS_MZJS_MZFPZFFSB a
left join HIS_MZJS_MZFPZB b on a.MZFPPKEY=b.pkey and b.JGID=a.JGID
left join HIS_YB_JSB c on c.ZDZBPKEY=b.GLZDBPKEY
where a.JGID=? and b.JZZT=? and b.SFZT != '0' and a.ZFJE < 0 and b.SFRY=? and b.PJLX=? and b.SFRQ > ? and b.SFRQ <=? and b.pjzt='1' and (c.cxzt=0 or (c.cxzt='1' and c.OLD_SETL_ID is null) or c.cxzt is null) order by zflx
]]></sql>
<fields>
<f name="PKEY" type="12" />
<f name="MZFPPKEY" type="12" />
<f name="ZFLX" type="12" />
<f name="ZFJE" type="12" />
<f name="INSUTYPE" type="12" />
<f name="CXZT" type="12" />
<f name="SETL_ID" type="12" />
</fields>
<parameter>
<p>12</p>
<p>12</p>
<p>12</p>
<p>12</p>
<p>93</p>
<p>93</p>
</parameter>
</dao>
<dao id="sfzffsFsDao" log="true" type="1" memo="收费支付方式负数的合计dao">
<sql><![CDATA[
select zflx,sum(zfje)zfje,insutype from( select distinct b.pkey,a.ZFLX,a.ZFJE,c.INSUTYPE from HIS_MZJS_MZFPZFFSB a
left join HIS_MZJS_MZFPZB b on a.MZFPPKEY=b.pkey and b.JGID=a.JGID
left join HIS_MZJS_MZFPZB e on b.CHPKEY=e.pkey and b.JGID=e.JGID
left join HIS_YB_JSB c on c.ZDZBPKEY=e.GLZDBPKEY
where a.JGID=? and b.JZZT=? and b.SFZT != '0' and a.ZFJE < 0 and b.SFRY=? and b.PJLX=? and b.SFRQ > ? and b.SFRQ <=? and b.PJZT = '2' and ((c.cxzt='1' and c.OLD_SETL_ID is not null) or c.cxzt is null)) group by zflx,INSUTYPE order by zflx
]]></sql>
<fields>
<f name="ZFLX" type="12" />
<f name="zfje" type="12" />
<f name="INSUTYPE" type="12" />
</fields>
<parameter>
<p>12</p>
<p>12</p>
<p>12</p>
<p>12</p>
<p>93</p>
<p>93</p>
</parameter>
</dao>
<dao id="sfzffsZsByJzhDao" log="true" type="1" memo="收费支付方式正数的合计dao">
<sql><![CDATA[
select zflx,sum(zfje)zfje,insutype from(select distinct a.pkey,b.pkey mzfppkey,a.ZFLX,a.ZFJE,nvl(c.INSUTYPE,'') INSUTYPE from HIS_MZJS_MZFPZFFSB a left join HIS_MZJS_MZFPZB b on a.MZFPPKEY=b.pkey and b.JGID=a.JGID left join HIS_YB_JSB c on c.ZDZBPKEY=b.GLZDBPKEY where a.JGID=? and b.JZZT=? and b.SFZT != '0' and a.ZFJE >= 0 and b.SFRY=? and b.PJLX=? and b.CLOSEPKEY=? and b.pjzt='1' and (c.cxzt=0 or (c.cxzt='1' and c.OLD_SETL_ID is null) or c.cxzt is null) order by a.zflx ) group by ZFLX,INSUTYPE order by zflx
]]></sql>
<fields>
<f name="ZFLX" type="12" />
<f name="zfje" type="12" />
<f name="INSUTYPE" type="12" />
</fields>
<parameter>
<p>12</p>
<p>12</p>
<p>12</p>
<p>12</p>
<p>12</p>
</parameter>
</dao>
<dao id="sfzffsZsByJzhMxDao" log="true" type="1" memo="收费支付方式正数的明细dao">
<sql><![CDATA[
select distinct a.pkey,b.pkey mzfppkey,a.ZFLX,a.ZFJE,nvl(c.INSUTYPE,'') INSUTYPE,c.cxzt,c.SETL_ID from HIS_MZJS_MZFPZFFSB a left join HIS_MZJS_MZFPZB b on a.MZFPPKEY=b.pkey and b.JGID=a.JGID left join HIS_YB_JSB c on c.ZDZBPKEY=b.GLZDBPKEY where a.JGID=? and b.JZZT=? and b.SFZT != '0' and a.ZFJE >= 0 and b.SFRY=? and b.PJLX=? and b.CLOSEPKEY=? and b.pjzt='1' and (c.cxzt=0 or (c.cxzt='1' and c.OLD_SETL_ID is null) or c.cxzt is null) order by zflx
]]></sql>
<fields>
<f name="PKEY" type="12" />
<f name="MZFPPKEY" type="12" />
<f name="ZFLX" type="12" />
<f name="ZFJE" type="12" />
<f name="INSUTYPE" type="12" />
<f name="CXZT" type="12" />
<f name="SETL_ID" type="12" />
</fields>
<parameter>
<p>12</p>
<p>12</p>
<p>12</p>
<p>12</p>
<p>12</p>
</parameter>
</dao>
<dao id="sfzffsZsTfByJzhMxDao" log="true" type="1" memo="收费支付方式退费的明细dao">
<sql><![CDATA[
select distinct a.pkey,b.pkey mzfppkey,a.ZFLX,a.ZFJE,nvl(c.INSUTYPE,'') INSUTYPE,c.cxzt,c.SETL_ID from HIS_MZJS_MZFPZFFSB a left join HIS_MZJS_MZFPZB b on a.MZFPPKEY=b.pkey and b.JGID=a.JGID left join HIS_YB_JSB c on c.ZDZBPKEY=b.GLZDBPKEY where a.JGID=? and b.JZZT=? and b.SFZT != '0' and a.ZFJE < 0 and b.SFRY=? and b.PJLX=? and b.CLOSEPKEY=? and b.pjzt='1' and (c.cxzt=0 or (c.cxzt='1' and c.OLD_SETL_ID is null) or c.cxzt is null) order by zflx
]]></sql>
<fields>
<f name="PKEY" type="12" />
<f name="MZFPPKEY" type="12" />
<f name="ZFLX" type="12" />
<f name="ZFJE" type="12" />
<f name="INSUTYPE" type="12" />
<f name="CXZT" type="12" />
<f name="SETL_ID" type="12" />
</fields>
<parameter>
<p>12</p>
<p>12</p>
<p>12</p>
<p>12</p>
<p>12</p>
</parameter>
</dao>
<dao id="sfzffsFsByJzhDao" log="true" type="1" memo="收费支付方式负数的合计dao">
<sql><![CDATA[
select zflx,sum(zfje)zfje,insutype from( select distinct b.pkey,a.ZFLX,a.ZFJE,c.INSUTYPE from HIS_MZJS_MZFPZFFSB a left join HIS_MZJS_MZFPZB b on a.MZFPPKEY=b.pkey and b.JGID=a.JGID left join HIS_MZJS_MZFPZB e on b.CHPKEY=e.pkey and b.JGID=e.JGID left join HIS_YB_JSB c on c.ZDZBPKEY=e.GLZDBPKEY where a.JGID=? and b.JZZT=? and b.SFZT != '0' and a.ZFJE < 0 and b.SFRY=? and b.PJLX=? and b.CLOSEPKEY =? and b.PJZT = '2' and ((c.cxzt='1' and c.OLD_SETL_ID is not null) or c.cxzt is null) order by a.zflx ) group by zflx,INSUTYPE order by zflx
]]></sql>
<fields>
<f name="ZFLX" type="12" />
<f name="zfje" type="12" />
<f name="INSUTYPE" type="12" />
</fields>
<parameter>
<p>12</p>
<p>12</p>
<p>12</p>
<p>12</p>
<p>12</p>
</parameter>
</dao>
<dao id="allHcdjmxDao" log="true" type="1">
<sql><![CDATA[
select distinct b.pkey,a.ZFLX,a.ZFJE,c.INSUTYPE,c.cxzt,c.SETL_ID,c.OLD_SETL_ID from HIS_MZJS_MZFPZFFSB a
left join HIS_MZJS_MZFPZB b on a.MZFPPKEY=b.pkey and b.JGID=a.JGID
left join HIS_MZJS_MZFPZB e on b.CHPKEY=e.pkey and b.JGID=e.JGID
left join HIS_YB_JSB c on c.ZDZBPKEY=e.GLZDBPKEY
where a.JGID=? and b.SFZT != '0' and a.ZFJE < 0 and b.PJZT = '2' and b.PJLX=? and c.cxzt='1' and c.OLD_SETL_ID is not null
]]></sql>
<fields>
<f name="PKEY" type="12" />
<f name="ZFLX" type="12" />
<f name="ZFJE" type="12" />
<f name="INSUTYPE" type="12" />
<f name="CXZT" type="12" />
<f name="SETL_ID" type="12" />
<f name="OLD_SETL_ID" type="12" />
</fields>
<parameter>
<p>12</p>
<p>12</p>
</parameter>
</dao>
<dao id="sffllbdao" log="true" type="1" memo="收费费用类别dao">
<sql><![CDATA[
select a.FYLBBM,sum(a.FYLBJE) FYLBJE from HIS_MZJS_MZFPSFLBB a left join HIS_MZJS_MZFPZB b on a.MZFPPKEY=b.pkey and b.JGID=a.JGID where a.JGID=? and b.JZZT=? and b.SFZT != '0' and b.SFRY=? and b.PJLX=? and b.SFRQ > ? and b.SFRQ <=? group by a.FYLBBM order by a.FYLBBM
]]></sql>
<fields>
<f name="FYLBBM" type="12" />
<f name="FYLBJE" type="12" />
</fields>
<parameter>
<p>12</p>
<p>12</p>
<p>12</p>
<p>12</p>
<p>93</p>
<p>93</p>
</parameter>
</dao>
<dao id="jsJzzbDao" log="true" type="1" memo="正式结算结账主表dao">
<sql><![CDATA[select PKEY,JZLX,JZTIME,JZKSSJ,JZJSSJ,JZRY,JZBM,JZZJE,JZYBJE,CJR,CJRQ,JGID from HIS_JS_JZZB where JGID=? and pkey=?]]></sql>
<tables>
<table name="HIS_JS_JZZB" insert="true" update="true" delete="true">
<primary>PKEY</primary>
<primary>JZLX</primary>
<primary>JZRY</primary>
<primary>JGID</primary>
</table>
</tables>
<fields>
<f name="PKEY" type="12" table="HIS_JS_JZZB" />
<f name="JZLX" type="12" table="HIS_JS_JZZB" />
<f name="JZTIME" type="93" table="HIS_JS_JZZB" />
<f name="JZKSSJ" type="93" table="HIS_JS_JZZB" />
<f name="JZJSSJ" type="93" table="HIS_JS_JZZB" />
<f name="JZRY" type="12" table="HIS_JS_JZZB" />
<f name="JZBM" type="12" table="HIS_JS_JZZB" />
<f name="JZZJE" type="12" table="HIS_JS_JZZB" />
<f name="JZYBJE" type="12" table="HIS_JS_JZZB" />
<f name="CJR" type="12" table="HIS_JS_JZZB" />
<f name="CJRQ" type="93" table="HIS_JS_JZZB" />
<f name="JGID" type="12" table="HIS_JS_JZZB" />
</fields>
<parameter>
<p>12</p>
<p>12</p>
</parameter>
</dao>
<dao id="jsJzzbMonthDao" log="true" type="1" memo="正式结算结账主表dao">
<sql><![CDATA[select PKEY,JZLX,JZTIME,JZKSSJ,JZJSSJ,JZRY,JZBM,JZZJE,JZYBJE,CJR,CJRQ,JGID from HIS_JS_JZZB where JGID=? and JZRY=? and JZLX=? and JZTIME >=? and JZTIME <= ?]]></sql>
<tables>
<table name="HIS_JS_JZZB" insert="true" update="true" delete="true">
<primary>PKEY</primary>
<primary>JZLX</primary>
<primary>JZRY</primary>
<primary>JGID</primary>
</table>
</tables>
<fields>
<f name="PKEY" type="12" table="HIS_JS_JZZB" />
<f name="JZLX" type="12" table="HIS_JS_JZZB" />
<f name="JZTIME" type="93" table="HIS_JS_JZZB" />
<f name="JZKSSJ" type="93" table="HIS_JS_JZZB" />
<f name="JZJSSJ" type="93" table="HIS_JS_JZZB" />
<f name="JZRY" type="12" table="HIS_JS_JZZB" />
<f name="JZBM" type="12" table="HIS_JS_JZZB" />
<f name="JZZJE" type="12" table="HIS_JS_JZZB" />
<f name="JZYBJE" type="12" table="HIS_JS_JZZB" />
<f name="CJR" type="12" table="HIS_JS_JZZB" />
<f name="CJRQ" type="93" table="HIS_JS_JZZB" />
<f name="JGID" type="12" table="HIS_JS_JZZB" />
</fields>
<parameter>
<p>12</p>
<p>12</p>
<p>12</p>
<p>93</p>
<p>93</p>
</parameter>
</dao>
<dao id="yjsfpmxdao" log="true" type="1" memo="预结算门诊收费发票明细dao">
<sql><![CDATA[
select fphm,PKEY,CHPKEY,SFZT from HIS_MZJS_MZFPZB a where a.JGID=? and a.JZZT=0 and a.SFZT != '0' and a.SFRY=? and a.PJLX=? and a.SFRQ > ? and a.SFRQ <=? order by a.SFRQ
]]></sql>
<fields>
<f name="FPHM" type="12" />
<f name="PKEY" type="12" />
<f name="CHPKEY" type="12" />
<f name="SFZT" type="12" />
</fields>
<parameter>
<p>12</p>
<p>12</p>
<p>12</p>
<p>93</p>
<p>93</p>
</parameter>
</dao>
<dao id="jzfpmxdao" log="true" type="1" memo="已经结算门诊收费发票明细dao">
<sql><![CDATA[
select fphm,PKEY,CHPKEY,SFZT from HIS_MZJS_MZFPZB where JGID=? and CLOSEPKEY=? order by SFRQ
]]></sql>
<fields>
<f name="FPHM" type="12" />
<f name="PKEY" type="12" />
<f name="CHPKEY" type="12" />
<f name="SFZT" type="12" />
</fields>
<parameter>
<p>12</p>
<p>12</p>
</parameter>
</dao>
<dao id="jzfpmxMonthdao" log="true" type="1" memo="已经结算门诊收费发票明细dao">
<sql><![CDATA[
select fphm,PKEY,CHPKEY,SFZT from HIS_MZJS_MZFPZB a where JGID=? and a.JZZT=1 and a.SFZT != '0' and a.SFRY=? and a.PJLX=? and a.SFRQ > ? and a.SFRQ <=? order by SFRQ
]]></sql>
<fields>
<f name="FPHM" type="12" />
<f name="PKEY" type="12" />
<f name="CHPKEY" type="12" />
<f name="SFZT" type="12" />
</fields>
<parameter>
<p>12</p>
<p>12</p>
<p>12</p>
<p>93</p>
<p>93</p>
</parameter>
</dao>
<dao id="zyfylbshowdao" log="true" type="1" memo="收费处-住院收费费用类别显示dao">
<sql>
select '' 费用类别1,'' 费用金额1,'' 费用类别2,'' 费用金额2,'' 费用类别3,'' 费用金额3 from dual where 1=2
</sql>
<fields>
<f name="费用类别1" type="1" />
<f name="费用金额1" type="1" />
<f name="费用类别2" type="1" />
<f name="费用金额2" type="1" />
<f name="费用类别3" type="1" />
<f name="费用金额3" type="1" />
</fields>
</dao>
<dao id="hzSumCardCostdao" type="1">
<sql><![CDATA[
SELECT count(*) rc,sum(B.KF) kf FROM HIS_HZINFO A left join HIS_CARD_MANAGE B on A.PKEY=B.HZPKEY AND A.JGID=B.JGID WHERE A.JGID=? and A.CJR=? and A.CJRQ > ? and A.CJRQ < ?
]]></sql>
<fields>
<f name="rc" type="12" />
<f name="kf" type="12" />
</fields>
<parameter>
<p>12</p>
<p>12</p>
<p>93</p>
<p>93</p>
</parameter>
</dao>
<dao id="zyyjSumJkDao" log="true" type="1" memo="住院押金缴款汇总dao">
<sql><![CDATA[
select count(*) cs,sum(b.YJJE) yjje,b.ZFFS from HIS_ZY_YJMANAGE a inner join HIS_ZY_YJMX b on a.JZPKEY=b.JZPKEY and a.hzpkey=b.hzpkey and a.YJTYPE=b.YJTYPE AND a.JGID=b.JGID left join HIS_HZINFO c on a.hzpkey=c.pkey and a.JGID=c.JGID where a.JGID=? and b.SKR=? and b.YJSTATE=? and b.SKRQ > ? and b.SKRQ <=? group by b.zffs order by b.zffs
]]></sql>
<fields>
<f name="cs" type="12" />
<f name="yjje" type="12" />
<f name="ZFFS" type="12" />
</fields>
<parameter>
<p>12</p>
<p>12</p>
<p>12</p>
<p>93</p>
<p>93</p>
</parameter>
</dao>
<dao id="zyyjTkdmxDao" log="true" type="1" memo="住院押金退款单明细dao">
<sql><![CDATA[
select b.sjh from HIS_ZY_YJMANAGE a inner join HIS_ZY_YJMX b on a.JZPKEY=b.JZPKEY and a.hzpkey=b.hzpkey and a.YJTYPE=b.YJTYPE AND a.JGID=b.JGID left join HIS_HZINFO c on a.hzpkey=c.pkey and a.JGID=c.JGID where a.JGID=? and b.SKR=? and b.YJSTATE='02' and b.SKRQ > ? and b.SKRQ <=? order by b.SKRQ
]]></sql>
<fields>
<f name="sjh" type="12" />
</fields>
<parameter>
<p>12</p>
<p>12</p>
<p>93</p>
<p>93</p>
</parameter>
</dao>
<dao id="zyyjpjmxDao" log="true" type="1" memo="住院押金单据明细dao">
<sql><![CDATA[
select b.sjh from HIS_ZY_YJMANAGE a inner join HIS_ZY_YJMX b on a.JZPKEY=b.JZPKEY and a.hzpkey=b.hzpkey and a.YJTYPE=b.YJTYPE AND a.JGID=b.JGID left join HIS_HZINFO c on a.hzpkey=c.pkey and a.JGID=c.JGID where a.JGID=? and b.SKR=? and (b.YJSTATE='02' or b.YJSTATE='01') and b.SKRQ > ? and b.SKRQ <=? order by b.SKRQ
]]></sql>
<fields>
<f name="sjh" type="12" />
</fields>
<parameter>
<p>12</p>
<p>12</p>
<p>93</p>
<p>93</p>
</parameter>
</dao>
</datasource>