develop/hrl_threadSjg
hrl_081 1 month ago
parent 0e81d1b744
commit c9fc7b37a0
  1. 29
      WEB-INF/conf/sysds_openhis_jyjchr.xml

@ -931,10 +931,11 @@ WHERE a.JGID = ? AND (a.YZLX = '0' OR a.YZLX = '1') and a.YZLB IN ('01','02','0
<dao id="his_mzQtmxbDao" type="1" memo="门诊其他处方明细">
<sql><![CDATA[
SELECT a.PKEY,a.CFH,a.JZPKEY,a.HZPKEY,a.JZH,a.YZXZKS,a.YZXZYS,c.XM,c.XB,c.NL,a.yzje,a.YZLB,a.YZZL,a.YZTZH,a.YZSFZT,a.YZCXBZ,a.YZXPKEY,a.YZMC FROM HIS_YZ_MXB a
SELECT a.PKEY,a.CFH,a.JZPKEY,a.HZPKEY,a.JZH,a.YZXZKS,a.YZXZYS,c.XM,c.XB,c.NL,a.yzje,a.YZLB,a.YZZL,a.YZTZH,a.YZSFZT,a.YZCXBZ,a.YZXPKEY,a.YZMC,a.CJRQ FROM HIS_YZ_MXB a
left join HIS_JZ_BASEINFO b on a.jzpkey=b.pkey and a.JGID=b.JGID
left join HIS_HZINFO c on c.JGID = b.JGID AND c.PKEY = b.HZPKEY
WHERE a.JGID = ? AND a.CJRQ >= ? AND a.CJRQ <= ? and a.YZLX = '5' and a.YZSHZT='1' AND a.YZSFZT = '1' AND a.YZCXBZ = '0' and b.JZLX = 'M' group by a.PKEY,a.CFH,a.JZPKEY,a.HZPKEY,a.JZH,a.YZXZKS,a.YZXZYS,c.XM,c.XB,c.NL,a.yzje,a.YZLB,a.YZZL,a.YZTZH,a.YZSFZT,a.YZCXBZ,a.YZXPKEY,a.YZMC
WHERE a.JGID = ? AND a.CJRQ >= ? AND a.CJRQ <= ? and a.YZLX = '5' and a.YZSHZT='1' AND a.YZSFZT = '1' AND a.YZCXBZ = '0' and b.JZLX = 'M' group by a.PKEY,a.CFH,a.JZPKEY,a.HZPKEY,
a.JZH,a.YZXZKS,a.YZXZYS,c.XM,c.XB,c.NL,a.yzje,a.YZLB,a.YZZL,a.YZTZH,a.YZSFZT,a.YZCXBZ,a.YZXPKEY,a.YZMC,a.CJRQ
]]></sql>
<fields>
<f name="PKEY" type="12"/>
@ -955,6 +956,7 @@ WHERE a.JGID = ? AND a.CJRQ >= ? AND a.CJRQ <= ? and a.YZLX = '5' and a.YZSHZT=
<f name="YZCXBZ" type="12"/>
<f name="YZXPKEY" type="12"/>
<f name="YZMC" type="12"/>
<f name="CJRQ" type="93"/>
</fields>
<parameter>
<p>12</p>
@ -1476,12 +1478,12 @@ where a.JGID =? and a.JJRQ >= ? and a.JJRQ <= ? AND a.JZLX = 'Z' AND (a.JZZT = '
<dao id="his_zyCfallDao" type="1" memo="三监管住院处方ALL">
<sql><![CDATA[
SELECT a.CFH,a.JZPKEY,a.HZPKEY,a.YZXZKS,max(a.YZXZYS)YZXZYS,c.XM,c.XB,c.NL,sum((nvl(a.YZSL,0)-nvl(a.YZTFSL,0))*a.YZDJ) yzje,
b.JJKS,b.WARD,a.YZZT,a.YZCL,a.YZSHRQ,b.ZYNO
b.JJKS,b.WARD,a.YZZT,a.YZCL,a.YZSHRQ,b.ZYNO,max(a.CJRQ) CJRQ
FROM HIS_YZ_MXB a
left join HIS_JZ_BASEINFO b on a.jzpkey=b.pkey and a.JGID=b.JGID
left join HIS_HZINFO c on c.JGID = b.JGID AND c.PKEY = b.HZPKEY
LEFT JOIN HIS_JZ_MZZD d on d.JGID = b.JGID AND d.JZPKEY = b.PKEY AND d.HZPKEY = b.HZPKEY
where b.JGID = ? and b.JJRQ >= ? and b.JJRQ <= ?
where b.JGID = ? and b.CJRQ >= ? and b.CJRQ <= ?
AND b.JZLX = 'Z' AND (b.JZZT = 'Z' OR b.JZZT = 'C') AND b.MOTHERJZPKEY is null AND (a.YZZT = 3 or a.YZZT = 6) and a.YZLX IN (0,3,5,6,7,9) group by a.CFH,a.JZPKEY,a.HZPKEY,a.YZXZKS,c.XM,c.XB,c.NL,b.JJKS,b.WARD,a.YZZT,a.YZCL
,a.YZSHRQ,b.ZYNO
]]></sql>
@ -1501,6 +1503,7 @@ AND b.JZLX = 'Z' AND (b.JZZT = 'Z' OR b.JZZT = 'C') AND b.MOTHERJZPKEY is null A
<f name="YZCL" type="12" />
<f name="YZSHRQ" type="93" />
<f name="ZYNO" type="12" />
<f name="CJRQ" type="93" />
</fields>
<parameter>
<p>12</p>
@ -1577,16 +1580,16 @@ AND b.JZLX = 'Z' AND (b.JZZT = 'Z' OR b.JZZT = 'C') AND b.MOTHERJZPKEY is null A
<sql><![CDATA[
SELECT a.CFH,a.JZPKEY,a.HZPKEY,a.YZXZKS,a.YZXZYS,c.XM,c.XB,c.NL,sum((nvl(a.YZSL,0)-nvl(a.YZTFSL,0))*a.YZDJ) yzje,
b.JJKS,b.WARD,a.YZZT,a.YZCL,a.YZSHRQ,b.ZYNO,a.PKEY YZMXPKEY,a.YZBEGINJDHS,a.YZBEGINJDSJ,a.YZTZYS,a.YZTZSJ,a.YZTZSXYS,a.YZZXSJ,a.YZFJSM,a.YZXH,a.YZTZH,a.YZMC,a.YZLB,a.YZZL,a.YZGG,a.YZYF,a.YZPC,
a.YZJLDW,a.YPYZJBDW,a.YZSL,a.YZJL,a.YZTS
a.YZJLDW,a.YPYZJBDW,a.YZSL,a.YZJL,a.YZTS,max(a.CJRQ) CJRQ,a.YZENDJDHS,a.YZENDJDSJ
FROM HIS_YZ_MXB a
left join HIS_JZ_BASEINFO b on a.jzpkey=b.pkey and a.JGID=b.JGID
left join HIS_HZINFO c on c.JGID = b.JGID AND c.PKEY = b.HZPKEY
LEFT JOIN HIS_JZ_MZZD d on d.JGID = b.JGID AND d.JZPKEY = b.PKEY AND d.HZPKEY = b.HZPKEY
where b.JGID = ? and b.JJRQ >= ? and b.JJRQ <= ?
where b.JGID = ? and a.CJRQ >= ? and a.CJRQ <= ?
AND b.JZLX = 'Z' AND (b.JZZT = 'Z' OR b.JZZT = 'C') AND b.MOTHERJZPKEY is null AND (a.YZZT = 3 or a.YZZT = 6 or a.YZZT = 40 or a.YZZT = 41 OR a.YZZT = 6) and a.YZLX IN (0,3,5,6,7,9) AND a.YZLB in ('01','02','03')
group by a.CFH,a.JZPKEY,a.HZPKEY,a.YZXZKS,a.YZXZYS,c.XM,c.XB,c.NL,
b.JJKS,b.WARD,a.YZZT,a.YZCL,a.YZSHRQ,b.ZYNO,a.PKEY,a.YZBEGINJDHS,a.YZBEGINJDSJ,a.YZTZYS,a.YZTZSJ,a.YZTZSXYS,a.YZZXSJ,a.YZFJSM,a.YZXH,a.YZTZH,a.YZMC,a.YZLB,a.YZZL,a.YZGG,a.YZYF,a.YZPC,
a.YZJLDW,a.YPYZJBDW,a.YZSL,a.YZJL,a.YZTS
a.YZJLDW,a.YPYZJBDW,a.YZSL,a.YZJL,a.YZTS,a.YZENDJDHS,a.YZENDJDSJ
]]></sql>
<fields>
<f name="CFH" type="12"/>
@ -1625,6 +1628,9 @@ group by a.CFH,a.JZPKEY,a.HZPKEY,a.YZXZKS,a.YZXZYS,c.XM,c.XB,c.NL,
<f name="YZSL" type="12"/>
<f name="YZJL" type="12"/>
<f name="YZTS" type="12"/>
<f name="CJRQ" type="93"/>
<f name="YZENDJDHS" type="12"/>
<f name="YZENDJDSJ" type="93"/>
</fields>
<parameter>
<p>12</p>
@ -1695,16 +1701,16 @@ group by a.CFH,a.JZPKEY,a.HZPKEY,a.YZXZKS,a.YZXZYS,c.XM,c.XB,c.NL,
<sql><![CDATA[
SELECT a.CFH,a.JZPKEY,a.HZPKEY,a.YZXZKS,a.YZXZYS,c.XM,c.XB,c.NL,sum((nvl(a.YZSL,0)-nvl(a.YZTFSL,0))*a.YZDJ) yzje,
b.JJKS,b.WARD,a.YZZT,a.YZCL,a.YZSHRQ,b.ZYNO,a.PKEY YZMXPKEY,a.YZBEGINJDHS,a.YZBEGINJDSJ,a.YZTZYS,a.YZTZSJ,a.YZTZSXYS,a.YZZXSJ,a.YZFJSM,a.YZXH,a.YZTZH,a.YZMC,a.YZLB,a.YZZL,a.YZGG,a.YZYF,a.YZPC,
a.YZJLDW,a.YPYZJBDW,a.YZSL,a.YZJL,a.YZTS
a.YZJLDW,a.YPYZJBDW,a.YZSL,a.YZJL,a.YZTS,a.CJRQ,a.YZENDJDHS,a.YZENDJDSJ
FROM HIS_YZ_MXB a
left join HIS_JZ_BASEINFO b on a.jzpkey=b.pkey and a.JGID=b.JGID
left join HIS_HZINFO c on c.JGID = b.JGID AND c.PKEY = b.HZPKEY
LEFT JOIN HIS_JZ_MZZD d on d.JGID = b.JGID AND d.JZPKEY = b.PKEY AND d.HZPKEY = b.HZPKEY
where b.JGID = ? and b.JJRQ >= ? and b.JJRQ <= ?
where b.JGID = ? and a.CJRQ >= ? and a.CJRQ <= ?
AND b.JZLX = 'Z' AND (b.JZZT = 'Z' OR b.JZZT = 'C') AND b.MOTHERJZPKEY is null AND (a.YZZT = 3 or a.YZZT = 6 or a.YZZT = 40 or a.YZZT = 41 OR a.YZZT = 6) and a.YZLX IN (0,3,5,6,7,9) AND a.YZLB NOT in ('01','02','03')
group by a.CFH,a.JZPKEY,a.HZPKEY,a.YZXZKS,a.YZXZYS,c.XM,c.XB,c.NL,
b.JJKS,b.WARD,a.YZZT,a.YZCL,a.YZSHRQ,b.ZYNO,a.PKEY,a.YZBEGINJDHS,a.YZBEGINJDSJ,a.YZTZYS,a.YZTZSJ,a.YZTZSXYS,a.YZZXSJ,a.YZFJSM,a.YZXH,a.YZTZH,a.YZMC,a.YZLB,a.YZZL,a.YZGG,a.YZYF,a.YZPC,
a.YZJLDW,a.YPYZJBDW,a.YZSL,a.YZJL,a.YZTS
a.YZJLDW,a.YPYZJBDW,a.YZSL,a.YZJL,a.YZTS,a.CJRQ,a.YZENDJDHS,a.YZENDJDSJ
]]></sql>
<fields>
<f name="CFH" type="12"/>
@ -1743,6 +1749,9 @@ group by a.CFH,a.JZPKEY,a.HZPKEY,a.YZXZKS,a.YZXZYS,c.XM,c.XB,c.NL,
<f name="YZSL" type="12"/>
<f name="YZJL" type="12"/>
<f name="YZTS" type="12"/>
<f name="CJRQ" type="93"/>
<f name="YZENDJDHS" type="12"/>
<f name="YZENDJDSJ" type="93"/>
</fields>
<parameter>
<p>12</p>

Loading…
Cancel
Save