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,ISGFFJ,YZZCYBZ,SQDTYPE,SQDPKEY,SQDJSPKEY,SQDTFJE,ZYYZFL,YZSHYS,YZSHRQ,ISZPC,YZZPC,YZPCFFSJ,YZXH,PSJG,ZCYGLCZLX,YZZFR,YZZFSJ,YZZFYY,PSJGSJ,PSJGR,ISDPBCL,HZSZKS from HIS_YZ_MXB where JGID=?
and HZPKEY=? and JZPKEY=? and (YZLX='0' or YZLX='1') and (YZLB='01'OR YZLB='02' OR YZLB='03') order by yzxh
PKEY
HZPKEY
JZPKEY
JGID
YZSFZT
YZDJSL
YZSHZT
12
12
12
= ? and fyzb.fyrq <=? group by a.HZPKEY,a.JZPKEY,a.JZH,a.YZSHZT,a.YZSFZT,a.JGID,a.YZLX,b.jjks,
c.xm,zdb.JBMC,fyzb.fyyf,fyzb.FYYF,fyzb.PYR,fyzb.fyr,a.CFH
) order by fysj desc
]]>
12
93
93
select PKEY,YZX,YZMX,YZDJ,YZSL,FYBPKEY,HZBQ,HZKS,FYKS,HZPKEY,YPFL,JZPKEY,TYPE,YZDL,TYSL,CJR,CJRQ,XGR,XGRQ,JGID,KSKCPKEY,KSKCPCPKEY from HIS_YFFY_MZFYMXB where JGID=? and hzpkey=? and jzpkey=? and YZMX=? order by CJRQ
12
12
12
12
select PKEY,YZX,YZMX,YZDJ,TYSL,HZBQ,HZKS,TYKS,HZPKEY,YPFL,JZPKEY,TYBPKEY,TYPE,KSKCPKEY,KSKCPCPKEY,CJR,CJRQ,XGR,XGRQ,JGID,MZFYMXBPKEY,PYBPKEY,TYDH,TYYY,BED,CFH,ZYNO from HIS_YFFY_MZTYMXB where JGID=? and hzpkey=? and jzpkey=? and YZMX=? order by CJRQ
12
12
12
12
=? and g.FYRQ <=? and nvl(a.YZSL,0)>0 group by g.FYR,b.CFH) group by fyr
]]>
12
12
93
93
=? and g.FYRQ <=? and nvl(a.YZSL,0)>0 group by g.FYR,a.YZX,b.yzmc) group by fyr
]]>
12
12
93
93
=? and g.FYRQ <=? and nvl(a.TYSL,0) > 0 group by g.TYRY,b.CFH) group by tyry
]]>
12
12
93
93
=? and g.FYRQ <=? and nvl(a.TYSL,0) > 0 group by g.TYRY,a.YZX,b.yzmc) group by tyry
]]>
12
12
93
93
select '' 发药人,'' 药品品种,'' 发药金额,'' 处方张数,'' 处方剂数,'' 退药品种,'' 退药金额,'' 退药处方张数,'' 退药处方剂数 from dual where 1=2
12
12
12
PKEY
CZR
CZRQ
YZMXPKEY
JGID
12
12
12
PKEY
KZPKEY
JGID
YZMXPKEY
12
12
12
PKEY
KZPKEY
JGID
YZMXPKEY
12
12
12
12
12
12
12
12
12
12
12
12
12
12
PKEY
CZR
CZRQ
YZMXPKEY
JGID
12
12
12
PKEY
KZPKEY
JGID
YZMXPKEY
12
12
12
PKEY
KZPKEY
JGID
YZMXPKEY
12
12
12