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.
60 lines
3.0 KiB
60 lines
3.0 KiB
<?xml version="1.0" encoding="UTF-8"?>
|
|
<datasource>
|
|
<!-- 1 表示 sql语句dao 2表示存储过程dao 默认为sql语句dao-->
|
|
<dao id="yjsfxmxQueryDao" log="true" type="1">
|
|
<sql><![CDATA[
|
|
|
|
select b.sfx,e.mc,g.xm,g.sfzh,f.jzno,f.jzlx,b.SFXDJ,b.SFXSL,SFXZFY,e.JBDW,d.YZZXKS,d.YZXZKS,d.YZXZYS,d.YZXZSJ,b.jfrq,a.JGID from HIS_MZJS_MZFPZB a left join HIS_SFZD_SFXMXB b on a.GLZDBPKEY=b.ZDZBPKEY and a.JGID=b.JGID left join HIS_YZ_MXB d on b.YZMX=d.pkey and b.JGID=d.JGID left join HIS_SFX e on b.SFX=e.BM and b.JGID=e.JGID left join HIS_JZ_BASEINFO f on d.jzpkey=f.pkey and d.JGID=f.JGID left join HIS_HZINFO g on d.hzpkey=g.pkey and d.JGID=g.JGID where d.yzlb !='01' and d.yzlb !='02' and d.yzlb !='03' and d.gllx is null and a.JGID=? and a.SFZT=1 and f.jzlx like ? #select# and b.JFRQ>=? and b.JFRQ<=? order by d.YZXZSJ,b.sfx
|
|
|
|
]]></sql>
|
|
<fields>
|
|
<f name="SFX" type="12" />
|
|
<f name="MC" type="12" />
|
|
<f name="XM" type="12" />
|
|
<f name="SFZH" type="12" />
|
|
<f name="JZNO" type="12" />
|
|
<f name="JZLX" type="12" />
|
|
<f name="SFXDJ" type="12" />
|
|
<f name="SFXSL" type="12" />
|
|
<f name="SFXZFY" type="12" />
|
|
<f name="JBDW" type="12" />
|
|
<f name="YZZXKS" type="12" />
|
|
<f name="YZXZKS" type="12" />
|
|
<f name="YZXZYS" type="12" />
|
|
<f name="YZXZSJ" type="93" />
|
|
<f name="JFRQ" type="93" />
|
|
<f name="JGID" type="12"/>
|
|
</fields>
|
|
<parameter>
|
|
<p>12</p>
|
|
<p>12</p>
|
|
<p>93</p>
|
|
<p>93</p>
|
|
</parameter>
|
|
</dao>
|
|
<dao id="yjsfxQueryDao" log="true" type="1">
|
|
<sql><![CDATA[
|
|
|
|
select b.sfx,e.mc,f.jzlx,b.SFXDJ,sum(b.SFXSL) sfxsl,sum(SFXZFY) sfxzfy,e.JBDW,d.YZZXKS,d.YZXZKS from HIS_MZJS_MZFPZB a left join HIS_SFZD_SFXMXB b on a.GLZDBPKEY=b.ZDZBPKEY and a.JGID=b.JGID left join HIS_YZ_MXB d on b.YZMX=d.pkey and b.JGID=d.JGID left join HIS_SFX e on b.SFX=e.BM and b.JGID=e.JGID left join HIS_JZ_BASEINFO f on d.jzpkey=f.pkey and d.JGID=f.JGID left join HIS_HZINFO g on d.hzpkey=g.pkey and d.JGID=g.JGID where d.yzlb !='01' and d.yzlb !='02' and d.yzlb !='03' and d.gllx is null and a.JGID=? and a.SFZT=1 and f.jzlx like ? #select# and b.JFRQ>=? and b.JFRQ<=? group by b.sfx,e.mc,f.jzlx,e.JBDW,b.SFXDJ,d.YZZXKS,d.YZXZKS order by b.sfx,d.YZZXKS,d.YZXZKS
|
|
|
|
]]></sql>
|
|
<fields>
|
|
<f name="SFX" type="12" />
|
|
<f name="MC" type="12" />
|
|
<f name="JZLX" type="12" />
|
|
<f name="SFXDJ" type="12" />
|
|
<f name="SFXSL" type="12" />
|
|
<f name="SFXZFY" type="12" />
|
|
<f name="JBDW" type="12" />
|
|
<f name="YZZXKS" type="12" />
|
|
<f name="YZXZKS" type="12" />
|
|
</fields>
|
|
<parameter>
|
|
<p>12</p>
|
|
<p>12</p>
|
|
<p>93</p>
|
|
<p>93</p>
|
|
</parameter>
|
|
</dao>
|
|
|
|
</datasource> |