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

6299 lines
243 KiB

<?xml version="1.0" encoding="UTF-8"?>
<datasource>
<dao id="yqdldao" type="1">
<sql>select BH,MC,BZ,JGID,PKEY from LIS_YQDL order by BH</sql>
<tables>
<table name="LIS_YQDL" insert="true" update="true" delete="true">
<primary>BH</primary>
</table>
</tables>
<fields>
<f name="BH" type="12" table="LIS_YQDL" />
<f name="MC" type="12" table="LIS_YQDL" />
<f name="BZ" type="12" table="LIS_YQDL" />
<f name="JGID" type="12" table="LIS_YQDL" />
<f name="PKEY" type="12" table="LIS_YQDL" />
</fields>
</dao>
<dao id="yblxdao" type="1">
<sql>select BH,MC,YXSJ,JGID,PKEY from LIS_YBLX order by BH</sql>
<tables>
<table name="LIS_YBLX" insert="true" update="true" delete="true">
<primary>BH</primary>
</table>
</tables>
<fields>
<f name="BH" type="12" table="LIS_YBLX" />
<f name="MC" type="12" table="LIS_YBLX" />
<f name="YXSJ" type="-5" table="LIS_YBLX" />
<f name="JGID" type="12" table="LIS_YBLX" />
<f name="PKEY" type="12" table="LIS_YBLX" />
</fields>
</dao>
<dao id="sglxdao" type="1">
<sql>select BH,MC,BZ,JGID,PKEY,QZ,YS,ISKN from LIS_SGLX WHERE JGID = ? order by BH</sql>
<tables>
<table name="LIS_SGLX" insert="true" update="true" delete="true">
<primary>BH</primary>
<primary>JGID</primary>
</table>
</tables>
<fields>
<f name="BH" type="12" table="LIS_SGLX" />
<f name="MC" type="12" table="LIS_SGLX" />
<f name="BZ" type="12" table="LIS_SGLX" />
<f name="JGID" type="12" table="LIS_SGLX" />
<f name="PKEY" type="12" table="LIS_SGLX" />
<f name="QZ" type="12" table="LIS_SGLX" />
<f name="YS" type="12" table="LIS_SGLX" />
<f name="ISKN" type="12" table="LIS_SGLX" />
</fields>
<parameter>
<p>12</p>
</parameter>
</dao>
<dao id="sgysdao" type="1" memo="指定试管">
<sql>select BH,MC,BZ,JGID,PKEY,QZ,YS from LIS_SGLX where JGID =? and BH = ?</sql>
<tables>
<table delete="true" insert="true" name="LIS_SGLX" update="true">
<primary>BH</primary>
<primary>JGID</primary>
</table>
</tables>
<fields>
<f name="BH" type="12" table="LIS_SGLX" />
<f name="MC" type="12" table="LIS_SGLX" />
<f name="BZ" type="12" table="LIS_SGLX" />
<f name="JGID" type="12" table="LIS_SGLX" />
<f name="PKEY" type="12" table="LIS_SGLX" />
<f name="QZ" type="12" table="LIS_SGLX" />
<f name="YS" type="12" table="LIS_SGLX" />
</fields>
<parameter>
<p>12</p>
<p>12</p>
</parameter>
</dao>
<dao id="cjbzdao" type="1">
<sql>select BH,BZMC,BZLX,BZSM,JGID,PKEY from LIS_CJBZ where JGID=? </sql>
<tables>
<table name="LIS_CJBZ" insert="true" update="true" delete="true">
<primary>BH</primary>
</table>
</tables>
<fields>
<f name="BH" type="12" table="LIS_CJBZ" />
<f name="BZMC" type="12" table="LIS_CJBZ" />
<f name="BZLX" type="12" table="LIS_CJBZ" />
<f name="BZSM" type="12" table="LIS_CJBZ" />
<f name="JGID" type="12" table="LIS_CJBZ" />
<f name="PKEY" type="-5" table="LIS_CJBZ" />
</fields>
<parameter>
<p>12</p>
</parameter>
</dao>
<dao id="gwszdao" type="1">
<sql>select BH,MC,BZ,JGID,PKEY from LIS_GWSZ WHERE JGID = ?</sql>
<tables>
<table name="LIS_GWSZ" insert="true" update="true" delete="true">
<primary>BH</primary>
<primary>JGID</primary>
</table>
</tables>
<fields>
<f name="BH" type="12" table="LIS_GWSZ" />
<f name="MC" type="12" table="LIS_GWSZ" />
<f name="BZ" type="12" table="LIS_GWSZ" />
<f name="JGID" type="12" table="LIS_GWSZ" />
<f name="PKEY" type="12" table="LIS_GWSZ" />
</fields>
<parameter>
<p>12</p>
</parameter>
</dao>
<dao id="lisyzxpopdao" type="1" memo="检验医嘱项POP">
<sql>select a.BM,a.MC,a.JGID,j.XMFL from HIS_YZX a
left join HIS_YZX_JCJY j on a.JGID=j.JGID and a.BM=j.YZXPKEY
where j.ISLIS='1' and a.JGID = ? and j.XMFL like ? and (a.BM like ? or a.MC like ? or EXISTS (SELECT 1 FROM HIS_YZX_ZJM b WHERE b.YZX_BM =a.BM and b.JGID=a.JGID and b.PYM like ?))
</sql>
<fields>
<f name="BM" type="12" />
<f name="MC" type="12" />
<f name="JGID" type="12" />
<f name="XMFL" type="12" />
</fields>
<parameter>
<p>12</p>
<p>12</p>
<p>12</p>
<p>12</p>
<p>12</p>
</parameter>
</dao>
<dao id="ybztdao" type="1">
<sql>select BH,MC,PYM,WBM,JGID,PKEY from LIS_YBZT where JGID=? order by BH</sql>
<tables>
<table name="LIS_YBZT" insert="true" update="true" delete="true">
<primary>BH</primary>
<primary>JGID</primary>
</table>
</tables>
<fields>
<f name="BH" type="12" table="LIS_YBZT" />
<f name="MC" type="12" table="LIS_YBZT" />
<f name="PYM" type="12" table="LIS_YBZT" />
<f name="WBM" type="12" table="LIS_YBZT" />
<f name="JGID" type="12" table="LIS_YBZT" />
<f name="PKEY" type="12" table="LIS_YBZT" />
</fields>
<parameter>
<p>12</p>
</parameter>
</dao>
<dao id="cjdao" type="1">
<sql>select BH,CJDW,ZWDW,JGID,PKEY from LIS_CJDW </sql>
<tables>
<table name="LIS_CJDW" insert="true" update="true" delete="true">
<primary>BH</primary>
</table>
</tables>
<fields>
<f name="BH" type="12" table="LIS_CJDW" />
<f name="CJDW" type="12" table="LIS_CJDW" />
<f name="ZWDW" type="12" table="LIS_CJDW" />
<f name="JGID" type="12" table="LIS_CJDW" />
<f name="PKEY" type="-5" table="LIS_CJDW" />
</fields>
</dao>
<dao id="jgcjdao" type="1">
<sql>select BH,CJDW,ZWDW,JGID,PKEY from LIS_CJDW where JGID=? </sql>
<tables>
<table name="LIS_CJDW" insert="true" update="true" delete="true">
<primary>BH</primary>
</table>
</tables>
<fields>
<f name="BH" type="12" table="LIS_CJDW" />
<f name="CJDW" type="12" table="LIS_CJDW" />
<f name="ZWDW" type="12" table="LIS_CJDW" />
<f name="JGID" type="12" table="LIS_CJDW" />
<f name="PKEY" type="-5" table="LIS_CJDW" />
</fields>
<parameter>
<p>12</p>
</parameter>
</dao>
<dao id="yqsbdao" type="1">
<sql>select PKEY,SBH,YQMC,GZZ,QDLX,YQBD,PJFS,SSKS,JGID,YSBH,SFFG from LIS_YQSBDJ where JGID = ? order by SBH asc</sql>
<tables>
<table name="LIS_YQSBDJ" insert="true" update="true" delete="true">
<primary>SBH</primary>
</table>
</tables>
<fields>
<f name="PKEY" table="LIS_YQSBDJ" type="-5" />
<f name="SBH" table="LIS_YQSBDJ" type="12" />
<f name="YQMC" table="LIS_YQSBDJ" type="12" />
<f name="GZZ" table="LIS_YQSBDJ" type="12" />
<f name="QDLX" table="LIS_YQSBDJ" type="12" />
<f name="YQBD" table="LIS_YQSBDJ" type="12" />
<f name="PJFS" table="LIS_YQSBDJ" type="12" />
<f name="SSKS" table="LIS_YQSBDJ" type="12" />
<f name="JGID" table="LIS_YQSBDJ" type="12" />
<f name="YSBH" table="LIS_YQSBDJ" type="12" />
<f name="SFFG" table="LIS_YQSBDJ" type="12" />
</fields>
<parameter>
<p>12</p>
</parameter>
</dao>
<dao id="yqpjdao" type="1">
<sql>select PJFS,JGID from LIS_YQSBDJ where JGID=? and YQMC=?</sql>
<fields>
<f name="PJFS" type="12" />
<f name="JGID" type="12" />
</fields>
<parameter>
<p>12</p>
<p>12</p>
</parameter>
</dao>
<dao id="sbysdao" type="1">
<sql>select PKEY,SBH,YQMC,QDLX,YQBD,PJFS,SSKS,JGID,GZZ,YSBH from LIS_YQSBDJ where JGID=? and YSBH=?</sql>
<tables>
<table delete="false" insert="false" name="LIS_YQSBDJ" update="false">
<primary>JGID</primary>
<primary>SBH</primary>
</table>
</tables>
<fields>
<f name="PKEY" table="LIS_YQSBDJ" type="8"/>
<f name="SBH" table="LIS_YQSBDJ" type="12"/>
<f name="YQMC" table="LIS_YQSBDJ" type="12"/>
<f name="QDLX" table="LIS_YQSBDJ" type="12"/>
<f name="YQBD" table="LIS_YQSBDJ" type="12"/>
<f name="PJFS" table="LIS_YQSBDJ" type="12"/>
<f name="SSKS" table="LIS_YQSBDJ" type="12"/>
<f name="JGID" table="LIS_YQSBDJ" type="12"/>
<f name="GZZ" table="LIS_YQSBDJ" type="12"/>
<f name="YSBH" table="LIS_YQSBDJ" type="12"/>
</fields>
<parameter>
<p>12</p>
<p>12</p>
</parameter>
</dao>
<dao id="lisyqsbzkdao" type="1">
<sql>select a.SBH,a.YQMC,a.JGID from LIS_YQSBDJ a
where a.JGID = ? and exists(select 1 from LIS_ZKXMDY z where z.JGID=a.JGID and z.SBH=a.SBH) order by a.SBH asc
</sql>
<fields>
<f name="SBH" type="12" />
<f name="YQMC" type="12" />
<f name="JGID" type="12" />
</fields>
<parameter>
<p>12</p>
</parameter>
</dao>
<dao id="lisyqsbdao" type="1">
<sql>select SBH,JGID from LIS_YQSBDJ where PJFS ='A' </sql>
<fields>
<f name="SBH" type="12" />
<f name="JGID" type="12" />
</fields>
</dao>
<dao id="lisyqsballdao" type="1">
<sql>select SBH,JGID,PJFS from LIS_YQSBDJ</sql>
<fields>
<f name="SBH" type="12" />
<f name="JGID" type="12" />
<f name="PJFS" type="12" />
</fields>
</dao>
<dao id="lisrjbdao" type="1">
<sql>select PKEY,SBH,RJBH,RJSJ,JGID,RJCZY,to_char(RJSJ,'yyyymmdd') rjsjs from LIS_RJB where SBH = ? and JGID =? order by RJSJ desc</sql>
<tables>
<table name="LIS_RJB" insert="true" update="true" delete="true">
<primary>JGID</primary>
<primary>SBH</primary>
<primary>PKEY</primary>
</table>
</tables>
<fields>
<f name="PKEY" type="12" table="LIS_RJB" />
<f name="SBH" type="12" table="LIS_RJB" />
<f name="RJBH" type="12" table="LIS_RJB" />
<f name="RJSJ" type="93" table="LIS_RJB" />
<f name="JGID" type="12" table="LIS_RJB" />
<f name="RJCZY" type="12" table="LIS_RJB" />
<f name="RJSJS" type="12"/>
</fields>
<parameter>
<p>12</p>
<p>12</p>
</parameter>
</dao>
<dao id="sbrjbdao" type="1">
<sql>SELECT
t.PKEY,t.SBH,t.RJBH,t.RJSJ,t.RJCZY,t.JGID,t.PKEY,to_char(t.RJSJ,'yyyy-mm-dd') rjsjs
FROM LIS_RJB t,LIS_YQBGWH t2
where t.JGID = ? and t.JGID =t2.JGID and t.SBH = t2.SBH and t2.SBH = ?
order by t.RJBH</sql>
<tables>
<table delete="true" insert="true" name="LIS_RJB" update="true">
<primary>SBH</primary>
<primary>PKEY</primary>
</table>
</tables>
<fields>
<f name="PKEY" table="LIS_RJB" type="12"/>
<f name="SBH" table="LIS_RJB" type="12"/>
<f name="RJBH" table="LIS_RJB" type="-5"/>
<f name="RJSJ" table="LIS_RJB" type="93"/>
<f name="RJCZY" table="LIS_RJB" type="12"/>
<f name="JGID" table="LIS_RJB" type="12"/>
<f name="PKEY" table="LIS_RJB" type="12"/>
<f name="rjsjs" type="12"/>
</fields>
<parameter>
<p>12</p>
<p>12</p>
</parameter>
</dao>
<dao id="yblxjgdao" type="1">
<sql>select BH,MC,YXSJ,JGID,PKEY from LIS_YBLX where JGID=? order by BH</sql>
<tables>
<table name="LIS_YBLX" insert="true" update="true" delete="true">
<primary>BH</primary>
</table>
</tables>
<fields>
<f name="BH" type="12" table="LIS_YBLX" />
<f name="MC" type="12" table="LIS_YBLX" />
<f name="YXSJ" type="-5" table="LIS_YBLX" />
<f name="JGID" type="12" table="LIS_YBLX" />
<f name="PKEY" type="12" table="LIS_YBLX" />
</fields>
<parameter>
<p>12</p>
</parameter>
</dao>
<dao id="jianyanQueryDao" type="1">
<sql><![CDATA[select t2.ZHXMMC,t2.ZHXM,t.JYSJ,t.TMH from LIS_BRJYXX t
left join LIS_JYXMSQ t2 on t.JGID =t2.JGID and t.TMH =t2.TMH
where t.JGID = ? and t.TMH = ? and t.JYSJ >=? and t.JYSJ <= ? and t.FBBZ='Y'
union
select t2.ZHXMMC,t2.ZHXM,t.JYSJ,t.TMH from LIS_BRJYXX t
left join LIS_JYXMSQ t2 on t.QTJG =t2.JGID and t.TMH =t2.TMH
where t.QTJG = ? and t.TMH = ? and t.JYSJ >=? and t.JYSJ <= ? and t.FBBZ='Y' order by JYSJ desc]]></sql>
<fields>
<f name="ZHXMMC" type="12" />
<f name="ZHXM" type="12" />
<f name="JYSJ" type="93" />
<f name="TMH" type="12" />
</fields>
<parameter>
<p>12</p>
<p>12</p>
<p>93</p>
<p>93</p>
<p>12</p>
<p>12</p>
<p>93</p>
<p>93</p>
</parameter>
</dao>
<dao id="jianyanQuerymzysDao" type="1">
<sql>select t2.ZHXMMC,t2.ZHXM,t.JYSJ,t.TMH,t.BLH,t.JGID,t.SJYS,t.JYYS from LIS_BRJYXX t
left join LIS_JYXMSQ t2 on t.JGID =t2.JGID and t.TMH =t2.TMH
where t.JGID = ? and t.KLS = ? and t.FBBZ='Y'
union
select t2.ZHXMMC,t2.ZHXM,t.JYSJ,t.TMH,t.BLH,t.JGID,t.SJYS,t.JYYS from LIS_BRJYXX t
left join LIS_JYXMSQ t2 on t.QTJG =t2.JGID and t.TMH =t2.TMH
where t.QTJG = ? and t.KLS = ? and t.FBBZ='Y' order by JYSJ desc</sql>
<fields>
<f name="ZHXMMC" type="12" />
<f name="ZHXM" type="12" />
<f name="JYSJ" type="93" />
<f name="TMH" type="12" />
<f name="BLH" type="12" />
<f name="JGID" type="12" />
<f name="SJYS" type="12" />
<f name="JYYS" type="12" />
</fields>
<parameter>
<p>12</p>
<p>12</p>
<p>12</p>
<p>12</p>
</parameter>
</dao>
<dao id="dxmxquerydao" type="1">
<sql>select j2.XMBH,j2.XMMC,j2.XMDH,j2.XMFL,j2.JYDW,j2.JGLX,y.DYSX,a.MRJG from
LIS_JYXMDZ j
left join LIS_JYXM j2 on j.XXBH = j2.XMBH
left join lisfrxm a on j2.XMBH =a.XMBH and a.JGID =j.JGID
left join LIS_YQXMSZ y on j2.XMBH = y.JYXM and j.JGID = y.JGID
where j.DXBH =? and j.JGID =? order by nvl(y.DYSX,'') asc
</sql>
<fields>
<f name="XMBH" type="12" />
<f name="XMMC" type="12" />
<f name="XMDH" type="12" />
<f name="XMFL" type="12" />
<f name="JYDW" type="12" />
<f name="JGLX" type="12" />
<f name="DYSX" type="12" />
<f name="MRJG" type="12" />
</fields>
<parameter>
<p>12</p>
<p>12</p>
</parameter>
</dao>
<dao id="querydaoTow" type="1">
<sql>select XMBM,XMMC,YQNBM XMDH,JG,CKZ,TSXX,JYDW,DYSX from LIS_JYJG where JGID = ?
and SBH = ? and YBH=? and RJBH = ?
union
select XMBM,XMMC,YQNBM XMDH,JG,CKZ,TSXX,JYDW,DYSX from LIS_JYJG where QTJG = ?
and SBH = ? and YBH=? and RJBH = ? </sql>
<fields>
<fields>
<f name="XMBM" type="12" />
<f name="XMMC" type="12" />
<f name="XMDH" type="12" />
<f name="JG" type="12" />
<f name="CKZ" type="12" />
<f name="TSXX" type="12" />
<f name="JYDW" type="12" />
<f name="DYSX" type="-5" />
</fields>
</fields>
<parameter>
<p>12</p>
<p>12</p>
<p>12</p>`
<p>12</p>
</parameter>
</dao>
<dao id="mzyzzbmzhjyjgdao" type="1">
<sql><![CDATA[select TMH from LIS_BRJYXX where KLS = ? and (JGID= ? or QTJG=?) and JYSJ >= ? and JYSJ <= ? and FBBZ='Y' ]]></sql>
<fields>
<f name="TMH" type="12" />
</fields>
<parameter>
<p>12</p>
<p>12</p>
<p>12</p>
<p>93</p>
<p>93</p>
</parameter>
</dao>
<dao id="htmljyjgdao" type="1">
<sql><![CDATA[select TMH from LIS_BRJYXX where KLS = ? and (JGID= ? or QTJG=?) and BLH like ? and JYSJ >= ? and JYSJ <= ? ]]></sql>
<fields>
<f name="TMH" 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="jianyandao" type="1">
<sql>select to_char(JYSJ, 'YYYY-MM-DD') as JYSJ from LIS_BRJYXX where JGID = ? and KLS = ? and FBBZ='Y'
union
select to_char(JYSJ, 'YYYY-MM-DD') as JYSJ from LIS_BRJYXX where QTJG = ? and KLS = ? and FBBZ='Y' group by to_char(JYSJ, 'YYYY-MM-DD') order by JYSJ desc </sql>
<fields>
<f name="JYSJ" type="12" />
</fields>
<parameter>
<p>12</p>
<p>12</p>
<p>12</p>
<p>12</p>
</parameter>
</dao>
<dao id="htmljianyandao" type="1">
<sql>select to_char(JYSJ, 'YYYY-MM-DD') as JYSJ from LIS_BRJYXX where JGID = ? and KLS = ? and BLH like ?
union
select to_char(JYSJ, 'YYYY-MM-DD') as JYSJ from LIS_BRJYXX where QTJG = ? and KLS = ? and BLH like ? group by to_char(JYSJ, 'YYYY-MM-DD')</sql>
<fields>
<f name="JYSJ" type="12" />
</fields>
<parameter>
<p>12</p>
<p>12</p>
<p>12</p>
<p>12</p>
<p>12</p>
<p>12</p>
</parameter>
</dao>
<dao id="jyjgbrjyxxdao" type="1">
<sql>select XH,BLH,TMH,KBM,KLS,CH,BRLX,XM,XB,CSRQ,NL,NLDW,SJKS,SJYS,SJSJ,JYYQ,SBH,CYSJ,JYSJ,YCBZ,SHBZ,DYBZ,FBBZ,JYYS,SHYS,FHYS,SHSJ,FHSJ,DYSJ,LCZD,SFLB,SFSF,DYCS,JJ,YBLX,YBZT,YBH,RJBH,SJBH,BZ,JGID,JYMD from LIS_BRJYXX where BLH = ? and JGID=?</sql>
<fields>
<f name="XH" type="12" />
<f name="BLH" type="12" />
<f name="TMH" type="12" />
<f name="KBM" type="12" />
<f name="KLS" type="12" />
<f name="CH" type="12" />
<f name="BRLX" type="12" />
<f name="XM" type="12" />
<f name="XB" type="12" />
<f name="CSRQ" type="93" />
<f name="NL" type="12" />
<f name="NLDW" type="12" />
<f name="SJKS" type="12" />
<f name="SJYS" type="12" />
<f name="SJSJ" type="93" />
<f name="JYYQ" type="12" />
<f name="SBH" type="12" />
<f name="CYSJ" type="93" />
<f name="JYSJ" type="93" />
<f name="YCBZ" type="12" />
<f name="SHBZ" type="12" />
<f name="DYBZ" type="12" />
<f name="FBBZ" type="12" />
<f name="JYYS" type="12" />
<f name="SHYS" type="12" />
<f name="FHYS" type="12" />
<f name="SHSJ" type="93" />
<f name="FHSJ" type="93" />
<f name="DYSJ" type="93" />
<f name="LCZD" type="12" />
<f name="SFLB" type="12" />
<f name="SFSF" type="12" />
<f name="DYCS" type="-5" />
<f name="JJ" type="12" />
<f name="YBLX" type="12" />
<f name="YBZT" type="12" />
<f name="YBH" type="12" />
<f name="RJBH" type="-5" />
<f name="SJBH" type="12" />
<f name="BZ" type="12" />
<f name="JGID" type="12" />
<f name="JYMD" type="12" />
</fields>
<parameter>
<p>12</p>
<p>12</p>
</parameter>
</dao>
<dao id="brjyxxforxhdao" type="1">
<sql>select XH,BLH,TMH,KBM,KLS,CH,BRLX,XM,XB,CSRQ,NL,NLDW,SJKS,SJYS,SJSJ,JYYQ,SBH,CYSJ,JYSJ,YCBZ,SHBZ,DYBZ,FBBZ,JYYS,SHYS,FHYS,SHSJ,FHSJ,DYSJ,LCZD,SFLB,SFSF,DYCS,JJ,YBLX,YBZT,YBH,RJBH,SJBH,BZ,JGID,JYMD from LIS_BRJYXX where XH = ?</sql>
<fields>
<f name="XH" type="12" />
<f name="BLH" type="12" />
<f name="TMH" type="12" />
<f name="KBM" type="12" />
<f name="KLS" type="12" />
<f name="CH" type="12" />
<f name="BRLX" type="12" />
<f name="XM" type="12" />
<f name="XB" type="12" />
<f name="CSRQ" type="93" />
<f name="NL" type="12" />
<f name="NLDW" type="12" />
<f name="SJKS" type="12" />
<f name="SJYS" type="12" />
<f name="SJSJ" type="93" />
<f name="JYYQ" type="12" />
<f name="SBH" type="12" />
<f name="CYSJ" type="93" />
<f name="JYSJ" type="93" />
<f name="YCBZ" type="12" />
<f name="SHBZ" type="12" />
<f name="DYBZ" type="12" />
<f name="FBBZ" type="12" />
<f name="JYYS" type="12" />
<f name="SHYS" type="12" />
<f name="FHYS" type="12" />
<f name="SHSJ" type="93" />
<f name="FHSJ" type="93" />
<f name="DYSJ" type="93" />
<f name="LCZD" type="12" />
<f name="SFLB" type="12" />
<f name="SFSF" type="12" />
<f name="DYCS" type="-5" />
<f name="JJ" type="12" />
<f name="YBLX" type="12" />
<f name="YBZT" type="12" />
<f name="YBH" type="12" />
<f name="RJBH" type="-5" />
<f name="SJBH" type="12" />
<f name="BZ" type="12" />
<f name="JGID" type="12" />
<f name="JYMD" type="12" />
</fields>
<parameter>
<p>12</p>
</parameter>
</dao>
<dao id="brjyxxdao" type="1">
<sql>select XH,BLH,TMH,KBM,KLS,CH,BRLX,XM,XB,CSRQ,NL,NLDW,SJKS,SJYS,SJSJ,JYYQ,SBH,CYSJ,JYSJ,YCBZ,SHBZ,nvl(DYBZ, 'N') DYBZ,
FBBZ,JYYS,SHYS,FHYS,SHSJ,FHSJ,DYSJ,LCZD,SFLB,SFSF,DYCS,JJ,YBLX,YBZT,YBH,RJBH,SJBH,BZ,JGID,JYMD,ZJHM,HZPKEY,QTJG,CFBZ,SJKSMC,
HBTM,HJXH,NLY,NLT,JGID as brchos,SBH as brsbh,YBH as brybh,RJBH as brrjbh,0 as bh,PH,WZH,ph||'|'||wzh phwzh,nvl(QTJG,JGID) chos
from LIS_BRJYXX
where JGID = ? and JYYQ like ? and JYSJ between ? and ?
</sql>
<tables>
<table delete="true" insert="true" name="LIS_BRJYXX" update="true">
<primary>SBH</primary>
<primary>YBH</primary>
<primary>RJBH</primary>
<primary>XH</primary>
<primary>JGID</primary>
</table>
</tables>
<fields>
<f name="XH" table="LIS_BRJYXX" type="12"/>
<f name="BLH" table="LIS_BRJYXX" type="12"/>
<f name="TMH" table="LIS_BRJYXX" type="12"/>
<f name="KBM" table="LIS_BRJYXX" type="12"/>
<f name="KLS" table="LIS_BRJYXX" type="12"/>
<f name="CH" table="LIS_BRJYXX" type="12"/>
<f name="BRLX" table="LIS_BRJYXX" type="12"/>
<f name="XM" table="LIS_BRJYXX" type="12"/>
<f name="XB" table="LIS_BRJYXX" type="12"/>
<f name="CSRQ" table="LIS_BRJYXX" type="93"/>
<f name="NL" table="LIS_BRJYXX" type="12"/>
<f name="NLDW" table="LIS_BRJYXX" type="12"/>
<f name="SJKS" table="LIS_BRJYXX" type="12"/>
<f name="SJYS" table="LIS_BRJYXX" type="12"/>
<f name="SJSJ" table="LIS_BRJYXX" type="93"/>
<f name="JYYQ" table="LIS_BRJYXX" type="12"/>
<f name="SBH" table="LIS_BRJYXX" type="12"/>
<f name="CYSJ" table="LIS_BRJYXX" type="93"/>
<f name="JYSJ" table="LIS_BRJYXX" type="93"/>
<f name="YCBZ" table="LIS_BRJYXX" type="12"/>
<f name="SHBZ" table="LIS_BRJYXX" type="12"/>
<f name="DYBZ" table="LIS_BRJYXX" type="12"/>
<f name="FBBZ" table="LIS_BRJYXX" type="12"/>
<f name="JYYS" table="LIS_BRJYXX" type="12"/>
<f name="SHYS" table="LIS_BRJYXX" type="12"/>
<f name="FHYS" table="LIS_BRJYXX" type="12"/>
<f name="SHSJ" table="LIS_BRJYXX" type="93"/>
<f name="FHSJ" table="LIS_BRJYXX" type="93"/>
<f name="DYSJ" table="LIS_BRJYXX" type="93"/>
<f name="LCZD" table="LIS_BRJYXX" type="12"/>
<f name="SFLB" table="LIS_BRJYXX" type="12"/>
<f name="SFSF" table="LIS_BRJYXX" type="12"/>
<f name="DYCS" table="LIS_BRJYXX" type="-5"/>
<f name="JJ" table="LIS_BRJYXX" type="12"/>
<f name="YBLX" table="LIS_BRJYXX" type="12"/>
<f name="YBZT" table="LIS_BRJYXX" type="12"/>
<f name="YBH" table="LIS_BRJYXX" type="12"/>
<f name="RJBH" table="LIS_BRJYXX" type="-5"/>
<f name="SJBH" table="LIS_BRJYXX" type="12"/>
<f name="BZ" table="LIS_BRJYXX" type="12"/>
<f name="JGID" table="LIS_BRJYXX" type="12"/>
<f name="JYMD" table="LIS_BRJYXX" type="12"/>
<f name="ZJHM" table="LIS_BRJYXX" type="12"/>
<f name="HZPKEY" table="LIS_BRJYXX" type="12"/>
<f name="QTJG" table="LIS_BRJYXX" type="12"/>
<f name="CFBZ" table="LIS_BRJYXX" type="12"/>
<f name="SJKSMC" table="LIS_BRJYXX" type="12"/>
<f name="HBTM" table="LIS_BRJYXX" type="12"/>
<f name="HJXH" table="LIS_BRJYXX" type="12"/>
<f name="NLY" table="LIS_BRJYXX" type="12"/>
<f name="NLT" table="LIS_BRJYXX" type="12"/>
<f name="brchos" type="12"/>
<f name="brsbh" type="12"/>
<f name="brybh" type="12"/>
<f name="brrjbh" type="12"/>
<f name="bh" type="8"/>
<f name="PH" table="LIS_BRJYXX" type="12"/>
<f name="WZH" table="LIS_BRJYXX" type="12"/>
<f name="phwzh" type="12"/>
<f name="chos" type="12"/>
</fields>
<parameter>
<p>12</p>
<p>12</p>
<p>93</p>
<p>93</p>
</parameter>
</dao>
<dao id="brjyxxrjbhdao" type="1">
<sql>select XH,BLH,TMH,KBM,KLS,CH,BRLX,XM,XB,CSRQ,NL,NLDW,SJKS,SJYS,SJSJ,JYYQ,SBH,CYSJ,JYSJ,YCBZ,SHBZ,nvl(DYBZ, 'N') DYBZ,
FBBZ,JYYS,SHYS,FHYS,SHSJ,FHSJ,DYSJ,LCZD,SFLB,SFSF,DYCS,JJ,YBLX,YBZT,YBH,RJBH,SJBH,BZ,JGID,JYMD,ZJHM,HZPKEY,QTJG,CFBZ,SJKSMC,
HBTM,HJXH,NLY,NLT,JGID as brchos,SBH as brsbh,YBH as brybh,RJBH as brrjbh,0 as bh,PH,WZH,ph||'|'||wzh phwzh,nvl(QTJG,JGID) chos
from LIS_BRJYXX
where JGID = ? and RJBH=? and JYYQ like ?
</sql>
<tables>
<table delete="true" insert="true" name="LIS_BRJYXX" update="true">
<primary>SBH</primary>
<primary>YBH</primary>
<primary>RJBH</primary>
<primary>XH</primary>
<primary>JGID</primary>
</table>
</tables>
<fields>
<f name="XH" table="LIS_BRJYXX" type="12"/>
<f name="BLH" table="LIS_BRJYXX" type="12"/>
<f name="TMH" table="LIS_BRJYXX" type="12"/>
<f name="KBM" table="LIS_BRJYXX" type="12"/>
<f name="KLS" table="LIS_BRJYXX" type="12"/>
<f name="CH" table="LIS_BRJYXX" type="12"/>
<f name="BRLX" table="LIS_BRJYXX" type="12"/>
<f name="XM" table="LIS_BRJYXX" type="12"/>
<f name="XB" table="LIS_BRJYXX" type="12"/>
<f name="CSRQ" table="LIS_BRJYXX" type="93"/>
<f name="NL" table="LIS_BRJYXX" type="12"/>
<f name="NLDW" table="LIS_BRJYXX" type="12"/>
<f name="SJKS" table="LIS_BRJYXX" type="12"/>
<f name="SJYS" table="LIS_BRJYXX" type="12"/>
<f name="SJSJ" table="LIS_BRJYXX" type="93"/>
<f name="JYYQ" table="LIS_BRJYXX" type="12"/>
<f name="SBH" table="LIS_BRJYXX" type="12"/>
<f name="CYSJ" table="LIS_BRJYXX" type="93"/>
<f name="JYSJ" table="LIS_BRJYXX" type="93"/>
<f name="YCBZ" table="LIS_BRJYXX" type="12"/>
<f name="SHBZ" table="LIS_BRJYXX" type="12"/>
<f name="DYBZ" table="LIS_BRJYXX" type="12"/>
<f name="FBBZ" table="LIS_BRJYXX" type="12"/>
<f name="JYYS" table="LIS_BRJYXX" type="12"/>
<f name="SHYS" table="LIS_BRJYXX" type="12"/>
<f name="FHYS" table="LIS_BRJYXX" type="12"/>
<f name="SHSJ" table="LIS_BRJYXX" type="93"/>
<f name="FHSJ" table="LIS_BRJYXX" type="93"/>
<f name="DYSJ" table="LIS_BRJYXX" type="93"/>
<f name="LCZD" table="LIS_BRJYXX" type="12"/>
<f name="SFLB" table="LIS_BRJYXX" type="12"/>
<f name="SFSF" table="LIS_BRJYXX" type="12"/>
<f name="DYCS" table="LIS_BRJYXX" type="-5"/>
<f name="JJ" table="LIS_BRJYXX" type="12"/>
<f name="YBLX" table="LIS_BRJYXX" type="12"/>
<f name="YBZT" table="LIS_BRJYXX" type="12"/>
<f name="YBH" table="LIS_BRJYXX" type="12"/>
<f name="RJBH" table="LIS_BRJYXX" type="-5"/>
<f name="SJBH" table="LIS_BRJYXX" type="12"/>
<f name="BZ" table="LIS_BRJYXX" type="12"/>
<f name="JGID" table="LIS_BRJYXX" type="12"/>
<f name="JYMD" table="LIS_BRJYXX" type="12"/>
<f name="ZJHM" table="LIS_BRJYXX" type="12"/>
<f name="HZPKEY" table="LIS_BRJYXX" type="12"/>
<f name="QTJG" table="LIS_BRJYXX" type="12"/>
<f name="CFBZ" table="LIS_BRJYXX" type="12"/>
<f name="SJKSMC" table="LIS_BRJYXX" type="12"/>
<f name="HBTM" table="LIS_BRJYXX" type="12"/>
<f name="HJXH" table="LIS_BRJYXX" type="12"/>
<f name="NLY" table="LIS_BRJYXX" type="12"/>
<f name="NLT" table="LIS_BRJYXX" type="12"/>
<f name="brchos" type="12"/>
<f name="brsbh" type="12"/>
<f name="brybh" type="12"/>
<f name="brrjbh" type="12"/>
<f name="bh" type="8"/>
<f name="PH" table="LIS_BRJYXX" type="12"/>
<f name="WZH" table="LIS_BRJYXX" type="12"/>
<f name="phwzh" type="12"/>
<f name="chos" type="12"/>
</fields>
<parameter>
<p>12</p>
<p>12</p>
<p>12</p>
</parameter>
</dao>
<dao id="brjyxxdao2" type="1">
<sql>select a.XH,a.BLH,a.TMH,a.KBM,a.KLS,a.CH,a.BRLX,a.XM,a.XB,a.NL,a.CSRQ,a.NLDW,a.SJKS,a.SJYS,a.SJSJ,a.JYYQ,t.SBH,a.CYSJ,a.JYSJ,a.SHBZ,nvl(a.DYBZ,'N') DYBZ ,a.FBBZ,a.JYYS,a.SHYS,a.FHYS,a.SHSJ,a.FHSJ,a.DYSJ,a.LCZD,a.SFLB,a.SFSF,a.DYCS,a.JJ,a.YBLX,a.YBZT,t.YBH,t.RJBH,a.SJBH,a.BZ,t.JGID
,a.JYMD,a.YCBZ,a.HZPKEY,a.ZJHM,a.QTJG,a.CFBZ,a.JGID as brchos,a.SBH as brsbh,a.YBH as brybh,a.RJBH as brrjbh,0 as bh,a.HBTM,a.NLY,a.NLT,a.PH,a.WZH
from LIS_JYJG t
left join LIS_BRJYXX a on t.JGID=a.JGID and t.SBH = a.SBH and t.YBH = a.YBH and t.RJBH = a.RJBH
where t.JGID = ? and t.SBH=? and t.JYSJ between ? and ?
group by a.XH,a.BLH,a.TMH,a.KBM,a.KLS,a.CH,a.BRLX,a.XM,a.XB,a.NL,a.CSRQ,a.NLDW,a.SJKS,a.SJYS,a.SJSJ,a.JYYQ,t.SBH,a.CYSJ,a.JYSJ,a.SHBZ,a.DYBZ,a.FBBZ,a.JYYS,a.SHYS,a.FHYS,a.SHSJ,a.FHSJ,a.DYSJ,a.LCZD,a.SFLB,a.SFSF,a.DYCS,a.JJ,a.YBLX,a.YBZT,t.YBH,t.RJBH,a.SJBH,a.BZ,t.JGID
,a.JYMD,a.YCBZ,a.HZPKEY,a.ZJHM,a.QTJG,a.CFBZ ,a.JGID,a.SBH,a.YBH,a.RJBH,a.HBTM,a.NLY,a.NLT,a.PH,a.WZH
</sql>
<tables>
<table delete="true" insert="false" name="LIS_BRJYXX" update="true">
<primary>brsbh</primary>
<primary>brybh</primary>
<primary>brrjbh</primary>
<primary>XH</primary>
<primary>brchos</primary>
</table>
</tables>
<fields>
<f name="XH" table="LIS_BRJYXX" type="12"/>
<f name="BLH" table="LIS_BRJYXX" type="12"/>
<f name="TMH" table="LIS_BRJYXX" type="12"/>
<f name="KBM" table="LIS_BRJYXX" type="12"/>
<f name="KLS" table="LIS_BRJYXX" type="12"/>
<f name="CH" table="LIS_BRJYXX" type="12"/>
<f name="BRLX" table="LIS_BRJYXX" type="12"/>
<f name="XM" table="LIS_BRJYXX" type="12"/>
<f name="XB" table="LIS_BRJYXX" type="12"/>
<f name="NL" table="LIS_BRJYXX" type="12"/>
<f name="CSRQ" table="LIS_BRJYXX" type="12"/>
<f name="NLDW" table="LIS_BRJYXX" type="12"/>
<f name="SJKS" table="LIS_BRJYXX" type="12"/>
<f name="SJYS" table="LIS_BRJYXX" type="12"/>
<f name="SJSJ" table="LIS_BRJYXX" type="93"/>
<f name="JYYQ" table="LIS_BRJYXX" type="12"/>
<f name="SBH" type="12"/>
<f name="CYSJ" table="LIS_BRJYXX" type="93"/>
<f name="JYSJ" table="LIS_BRJYXX" type="93"/>
<f name="SHBZ" table="LIS_BRJYXX" type="12"/>
<f name="DYBZ" table="LIS_BRJYXX" type="12"/>
<f name="FBBZ" table="LIS_BRJYXX" type="12"/>
<f name="JYYS" table="LIS_BRJYXX" type="12"/>
<f name="SHYS" table="LIS_BRJYXX" type="12"/>
<f name="FHYS" table="LIS_BRJYXX" type="12"/>
<f name="SHSJ" table="LIS_BRJYXX" type="93"/>
<f name="FHSJ" table="LIS_BRJYXX" type="93"/>
<f name="DYSJ" table="LIS_BRJYXX" type="93"/>
<f name="LCZD" table="LIS_BRJYXX" type="12"/>
<f name="SFLB" table="LIS_BRJYXX" type="12"/>
<f name="SFSF" table="LIS_BRJYXX" type="12"/>
<f name="DYCS" table="LIS_BRJYXX" type="-5"/>
<f name="JJ" table="LIS_BRJYXX" type="12"/>
<f name="YBLX" table="LIS_BRJYXX" type="12"/>
<f name="YBZT" table="LIS_BRJYXX" type="12"/>
<f name="YBH" type="12"/>
<f name="RJBH" type="-5"/>
<f name="SJBH" table="LIS_BRJYXX" type="12"/>
<f name="BZ" table="LIS_BRJYXX" type="12"/>
<f name="JGID" type="12"/>
<f name="JYMD" table="LIS_BRJYXX" type="12"/>
<f name="YCBZ" table="LIS_BRJYXX" type="12"/>
<f name="HZPKEY" table="LIS_BRJYXX" type="12"/>
<f name="ZJHM" table="LIS_BRJYXX" type="12"/>
<f name="QTJG" table="LIS_BRJYXX" type="12"/>
<f name="CFBZ" table="LIS_BRJYXX" type="12"/>
<f name="brchos" schemaname="JGID" table="LIS_BRJYXX" type="12"/>
<f name="brsbh" schemaname="SBH" table="LIS_BRJYXX" type="12"/>
<f name="brybh" schemaname="YBH" table="LIS_BRJYXX" type="12"/>
<f name="brrjbh" schemaname="RJBH" table="LIS_BRJYXX" type="-5"/>
<f name="bh" type="8"/>
<f name="HBTM" table="LIS_BRJYXX" type="12"/>
<f name="NLY" table="LIS_BRJYXX" type="12"/>
<f name="NLT" table="LIS_BRJYXX" type="12"/>
<f name="PH" table="LIS_BRJYXX" type="12"/>
<f name="WZH" table="LIS_BRJYXX" type="12"/>
</fields>
<parameter>
<p>12</p>
<p>12</p>
<p>93</p>
<p>93</p>
</parameter>
</dao>
<dao id="brjyinsertdao" type="1">
<sql>select XH,BLH,TMH,KBM,KLS,CH,BRLX,XM,XB,NL,NLDW,SJKS,SJYS,SJSJ,JYYQ,SBH,CYSJ,JYSJ,SHBZ,nvl(DYBZ,'N') DYBZ ,FBBZ,JYYS,SHYS,FHYS,SHSJ,FHSJ,DYSJ,LCZD,SFLB,SFSF,DYCS,JJ,YBLX,YBZT,YBH,RJBH,SJBH,BZ,JGID
,CSRQ,JYMD,YCBZ,HZPKEY,ZJHM,QTJG,CFBZ,HBTM,NLY,NLT from LIS_BRJYXX where 1=2
</sql>
<tables>
<table delete="true" insert="true" name="LIS_BRJYXX" update="true">
<primary>SBH</primary>
<primary>YBH</primary>
<primary>RJBH</primary>
<primary>XH</primary>
<primary>JGID</primary>
</table>
</tables>
<fields>
<f name="XH" table="LIS_BRJYXX" type="12"/>
<f name="BLH" table="LIS_BRJYXX" type="12"/>
<f name="TMH" table="LIS_BRJYXX" type="12"/>
<f name="KBM" table="LIS_BRJYXX" type="12"/>
<f name="KLS" table="LIS_BRJYXX" type="12"/>
<f name="CH" table="LIS_BRJYXX" type="12"/>
<f name="BRLX" table="LIS_BRJYXX" type="12"/>
<f name="XM" table="LIS_BRJYXX" type="12"/>
<f name="XB" table="LIS_BRJYXX" type="12"/>
<f name="NL" table="LIS_BRJYXX" type="12"/>
<f name="NLDW" table="LIS_BRJYXX" type="12"/>
<f name="SJKS" table="LIS_BRJYXX" type="12"/>
<f name="SJYS" table="LIS_BRJYXX" type="12"/>
<f name="SJSJ" table="LIS_BRJYXX" type="93"/>
<f name="JYYQ" table="LIS_BRJYXX" type="12"/>
<f name="SBH" table="LIS_BRJYXX" type="12"/>
<f name="CYSJ" table="LIS_BRJYXX" type="93"/>
<f name="JYSJ" table="LIS_BRJYXX" type="93"/>
<f name="SHBZ" table="LIS_BRJYXX" type="12"/>
<f name="DYBZ" table="LIS_BRJYXX" type="12"/>
<f name="FBBZ" table="LIS_BRJYXX" type="12"/>
<f name="JYYS" table="LIS_BRJYXX" type="12"/>
<f name="SHYS" table="LIS_BRJYXX" type="12"/>
<f name="FHYS" table="LIS_BRJYXX" type="12"/>
<f name="SHSJ" table="LIS_BRJYXX" type="93"/>
<f name="FHSJ" table="LIS_BRJYXX" type="93"/>
<f name="DYSJ" table="LIS_BRJYXX" type="93"/>
<f name="LCZD" table="LIS_BRJYXX" type="12"/>
<f name="SFLB" table="LIS_BRJYXX" type="12"/>
<f name="SFSF" table="LIS_BRJYXX" type="12"/>
<f name="DYCS" table="LIS_BRJYXX" type="-5"/>
<f name="JJ" table="LIS_BRJYXX" type="12"/>
<f name="YBLX" table="LIS_BRJYXX" type="12"/>
<f name="YBZT" table="LIS_BRJYXX" type="12"/>
<f name="YBH" table="LIS_BRJYXX" type="12"/>
<f name="RJBH" table="LIS_BRJYXX" type="-5"/>
<f name="SJBH" table="LIS_BRJYXX" type="12"/>
<f name="BZ" table="LIS_BRJYXX" type="12"/>
<f name="JGID" table="LIS_BRJYXX" type="12"/>
<f name="CSRQ" table="LIS_BRJYXX" type="93"/>
<f name="JYMD" table="LIS_BRJYXX" type="12"/>
<f name="YCBZ" table="LIS_BRJYXX" type="12"/>
<f name="HZPKEY" table="LIS_BRJYXX" type="12"/>
<f name="ZJHM" table="LIS_BRJYXX" type="12"/>
<f name="QTJG" table="LIS_BRJYXX" type="12"/>
<f name="CFBZ" table="LIS_BRJYXX" type="12"/>
<f name="HBTM" table="LIS_BRJYXX" type="12"/>
<f name="NLY" table="LIS_BRJYXX" type="12"/>
<f name="NLT" table="LIS_BRJYXX" type="12"/>
</fields>
</dao>
<dao id="brjyinsertdao1" type="1">
<sql>select XH,BLH,TMH,KBM,KLS,CH,BRLX,XM,XB,NL,NLDW,SJKS,SJYS,SJSJ,JYYQ,SBH,CYSJ,JYSJ,SHBZ,nvl(DYBZ,'N') DYBZ ,FBBZ,JYYS,SHYS,FHYS,SHSJ,FHSJ,DYSJ,LCZD,SFLB,SFSF,DYCS,JJ,YBLX,YBZT,YBH,RJBH,SJBH,BZ,JGID
,CSRQ,JYMD,YCBZ,HZPKEY,ZJHM,QTJG,CFBZ,HBTM,NLY,NLT from LIS_BRJYXX where SBH=? and YBH=? and RJBH=? and XH=? and JGID=?
</sql>
<tables>
<table delete="true" insert="true" name="LIS_BRJYXX" update="true">
<primary>SBH</primary>
<primary>YBH</primary>
<primary>RJBH</primary>
<primary>XH</primary>
<primary>JGID</primary>
</table>
</tables>
<fields>
<f name="XH" table="LIS_BRJYXX" type="12"/>
<f name="BLH" table="LIS_BRJYXX" type="12"/>
<f name="TMH" table="LIS_BRJYXX" type="12"/>
<f name="KBM" table="LIS_BRJYXX" type="12"/>
<f name="KLS" table="LIS_BRJYXX" type="12"/>
<f name="CH" table="LIS_BRJYXX" type="12"/>
<f name="BRLX" table="LIS_BRJYXX" type="12"/>
<f name="XM" table="LIS_BRJYXX" type="12"/>
<f name="XB" table="LIS_BRJYXX" type="12"/>
<f name="NL" table="LIS_BRJYXX" type="12"/>
<f name="NLDW" table="LIS_BRJYXX" type="12"/>
<f name="SJKS" table="LIS_BRJYXX" type="12"/>
<f name="SJYS" table="LIS_BRJYXX" type="12"/>
<f name="SJSJ" table="LIS_BRJYXX" type="93"/>
<f name="JYYQ" table="LIS_BRJYXX" type="12"/>
<f name="SBH" table="LIS_BRJYXX" type="12"/>
<f name="CYSJ" table="LIS_BRJYXX" type="93"/>
<f name="JYSJ" table="LIS_BRJYXX" type="93"/>
<f name="SHBZ" table="LIS_BRJYXX" type="12"/>
<f name="DYBZ" table="LIS_BRJYXX" type="12"/>
<f name="FBBZ" table="LIS_BRJYXX" type="12"/>
<f name="JYYS" table="LIS_BRJYXX" type="12"/>
<f name="SHYS" table="LIS_BRJYXX" type="12"/>
<f name="FHYS" table="LIS_BRJYXX" type="12"/>
<f name="SHSJ" table="LIS_BRJYXX" type="93"/>
<f name="FHSJ" table="LIS_BRJYXX" type="93"/>
<f name="DYSJ" table="LIS_BRJYXX" type="93"/>
<f name="LCZD" table="LIS_BRJYXX" type="12"/>
<f name="SFLB" table="LIS_BRJYXX" type="12"/>
<f name="SFSF" table="LIS_BRJYXX" type="12"/>
<f name="DYCS" table="LIS_BRJYXX" type="-5"/>
<f name="JJ" table="LIS_BRJYXX" type="12"/>
<f name="YBLX" table="LIS_BRJYXX" type="12"/>
<f name="YBZT" table="LIS_BRJYXX" type="12"/>
<f name="YBH" table="LIS_BRJYXX" type="12"/>
<f name="RJBH" table="LIS_BRJYXX" type="-5"/>
<f name="SJBH" table="LIS_BRJYXX" type="12"/>
<f name="BZ" table="LIS_BRJYXX" type="12"/>
<f name="JGID" table="LIS_BRJYXX" type="12"/>
<f name="CSRQ" table="LIS_BRJYXX" type="93"/>
<f name="JYMD" table="LIS_BRJYXX" type="12"/>
<f name="YCBZ" table="LIS_BRJYXX" type="12"/>
<f name="HZPKEY" table="LIS_BRJYXX" type="12"/>
<f name="ZJHM" table="LIS_BRJYXX" type="12"/>
<f name="QTJG" table="LIS_BRJYXX" type="12"/>
<f name="CFBZ" table="LIS_BRJYXX" type="12"/>
<f name="HBTM" table="LIS_BRJYXX" type="12"/>
<f name="NLY" table="LIS_BRJYXX" type="12"/>
<f name="NLT" table="LIS_BRJYXX" type="12"/>
</fields>
<parameter>
<p>12</p>
<p>12</p>
<p>12</p>
<p>12</p>
<p>12</p>
</parameter>
</dao>
<dao id="brjyxxsdao" type="1">
<sql>select XH,BLH,TMH,KBM,KLS,CH,BRLX,XM,XB,NL,NLDW,SJKS,SJYS,SJSJ,JYYQ,SBH,CYSJ,JYSJ,SHBZ,DYBZ,FBBZ,JYYS,SHYS,FHYS,SHSJ,FHSJ,DYSJ,LCZD,SFLB,SFSF,DYCS,JJ,YBLX,YBZT,YBH,RJBH,SJBH,BZ,JGID
,CSRQ,JYMD,YCBZ,HZPKEY,ZJHM,QTJG,CFBZ,HBTM,NLY,NLT from LIS_BRJYXX where JGID = ? and TMH= ? and JYYQ = ?</sql>
<tables>
<table delete="true" insert="true" name="LIS_BRJYXX" update="true">
<primary>SBH</primary>
<primary>YBH</primary>
<primary>RJBH</primary>
<primary>XH</primary>
<primary>JGID</primary>
</table>
</tables>
<fields>
<f name="XH" table="LIS_BRJYXX" type="12"/>
<f name="BLH" table="LIS_BRJYXX" type="12"/>
<f name="TMH" table="LIS_BRJYXX" type="12"/>
<f name="KBM" table="LIS_BRJYXX" type="12"/>
<f name="KLS" table="LIS_BRJYXX" type="12"/>
<f name="CH" table="LIS_BRJYXX" type="12"/>
<f name="BRLX" table="LIS_BRJYXX" type="12"/>
<f name="XM" table="LIS_BRJYXX" type="12"/>
<f name="XB" table="LIS_BRJYXX" type="12"/>
<f name="NL" table="LIS_BRJYXX" type="12"/>
<f name="NLDW" table="LIS_BRJYXX" type="12"/>
<f name="SJKS" table="LIS_BRJYXX" type="12"/>
<f name="SJYS" table="LIS_BRJYXX" type="12"/>
<f name="SJSJ" table="LIS_BRJYXX" type="93"/>
<f name="JYYQ" table="LIS_BRJYXX" type="12"/>
<f name="SBH" table="LIS_BRJYXX" type="12"/>
<f name="CYSJ" table="LIS_BRJYXX" type="93"/>
<f name="JYSJ" table="LIS_BRJYXX" type="93"/>
<f name="SHBZ" table="LIS_BRJYXX" type="12"/>
<f name="DYBZ" table="LIS_BRJYXX" type="12"/>
<f name="FBBZ" table="LIS_BRJYXX" type="12"/>
<f name="JYYS" table="LIS_BRJYXX" type="12"/>
<f name="SHYS" table="LIS_BRJYXX" type="12"/>
<f name="FHYS" table="LIS_BRJYXX" type="12"/>
<f name="SHSJ" table="LIS_BRJYXX" type="93"/>
<f name="FHSJ" table="LIS_BRJYXX" type="93"/>
<f name="DYSJ" table="LIS_BRJYXX" type="93"/>
<f name="LCZD" table="LIS_BRJYXX" type="12"/>
<f name="SFLB" table="LIS_BRJYXX" type="12"/>
<f name="SFSF" table="LIS_BRJYXX" type="12"/>
<f name="DYCS" table="LIS_BRJYXX" type="-5"/>
<f name="JJ" table="LIS_BRJYXX" type="12"/>
<f name="YBLX" table="LIS_BRJYXX" type="12"/>
<f name="YBZT" table="LIS_BRJYXX" type="12"/>
<f name="YBH" table="LIS_BRJYXX" type="12"/>
<f name="RJBH" table="LIS_BRJYXX" type="-5"/>
<f name="SJBH" table="LIS_BRJYXX" type="12"/>
<f name="BZ" table="LIS_BRJYXX" type="12"/>
<f name="JGID" table="LIS_BRJYXX" type="12"/>
<f name="CSRQ" table="LIS_BRJYXX" type="93"/>
<f name="JYMD" table="LIS_BRJYXX" type="12"/>
<f name="YCBZ" table="LIS_BRJYXX" type="12"/>
<f name="HZPKEY" table="LIS_BRJYXX" type="12"/>
<f name="ZJHM" table="LIS_BRJYXX" type="12"/>
<f name="QTJG" table="LIS_BRJYXX" type="12"/>
<f name="CFBZ" table="LIS_BRJYXX" type="12"/>
<f name="HBTM" table="LIS_BRJYXX" type="12"/>
<f name="NLY" table="LIS_BRJYXX" type="12"/>
<f name="NLT" table="LIS_BRJYXX" type="12"/>
</fields>
<parameter>
<p>12</p>
<p>12</p>
<p>12</p>
</parameter>
</dao>
<dao id="brjyxxywdao" type="1">
<sql>select XH,BLH,TMH,KBM,KLS,CH,BRLX,XM,XB,NL,NLDW,SJKS,SJYS,SJSJ,JYYQ,SBH,CYSJ,JYSJ,SHBZ,DYBZ,FBBZ,JYYS,SHYS,FHYS,SHSJ,FHSJ,DYSJ,LCZD,SFLB,SFSF,DYCS,JJ,YBLX,YBZT,YBH,RJBH,SJBH,BZ,JGID
,CSRQ,JYMD,YCBZ,HZPKEY,ZJHM,QTJG,CFBZ,HBTM,NLY,NLT from LIS_BRJYXX where QTJG = ? and TMH= ? and JYYQ = ?</sql>
<tables>
<table delete="true" insert="true" name="LIS_BRJYXX" update="true">
<primary>SBH</primary>
<primary>YBH</primary>
<primary>RJBH</primary>
<primary>XH</primary>
<primary>JGID</primary>
</table>
</tables>
<fields>
<f name="XH" table="LIS_BRJYXX" type="12"/>
<f name="BLH" table="LIS_BRJYXX" type="12"/>
<f name="TMH" table="LIS_BRJYXX" type="12"/>
<f name="KBM" table="LIS_BRJYXX" type="12"/>
<f name="KLS" table="LIS_BRJYXX" type="12"/>
<f name="CH" table="LIS_BRJYXX" type="12"/>
<f name="BRLX" table="LIS_BRJYXX" type="12"/>
<f name="XM" table="LIS_BRJYXX" type="12"/>
<f name="XB" table="LIS_BRJYXX" type="12"/>
<f name="NL" table="LIS_BRJYXX" type="12"/>
<f name="NLDW" table="LIS_BRJYXX" type="12"/>
<f name="SJKS" table="LIS_BRJYXX" type="12"/>
<f name="SJYS" table="LIS_BRJYXX" type="12"/>
<f name="SJSJ" table="LIS_BRJYXX" type="93"/>
<f name="JYYQ" table="LIS_BRJYXX" type="12"/>
<f name="SBH" table="LIS_BRJYXX" type="12"/>
<f name="CYSJ" table="LIS_BRJYXX" type="93"/>
<f name="JYSJ" table="LIS_BRJYXX" type="93"/>
<f name="SHBZ" table="LIS_BRJYXX" type="12"/>
<f name="DYBZ" table="LIS_BRJYXX" type="12"/>
<f name="FBBZ" table="LIS_BRJYXX" type="12"/>
<f name="JYYS" table="LIS_BRJYXX" type="12"/>
<f name="SHYS" table="LIS_BRJYXX" type="12"/>
<f name="FHYS" table="LIS_BRJYXX" type="12"/>
<f name="SHSJ" table="LIS_BRJYXX" type="93"/>
<f name="FHSJ" table="LIS_BRJYXX" type="93"/>
<f name="DYSJ" table="LIS_BRJYXX" type="93"/>
<f name="LCZD" table="LIS_BRJYXX" type="12"/>
<f name="SFLB" table="LIS_BRJYXX" type="12"/>
<f name="SFSF" table="LIS_BRJYXX" type="12"/>
<f name="DYCS" table="LIS_BRJYXX" type="-5"/>
<f name="JJ" table="LIS_BRJYXX" type="12"/>
<f name="YBLX" table="LIS_BRJYXX" type="12"/>
<f name="YBZT" table="LIS_BRJYXX" type="12"/>
<f name="YBH" table="LIS_BRJYXX" type="12"/>
<f name="RJBH" table="LIS_BRJYXX" type="-5"/>
<f name="SJBH" table="LIS_BRJYXX" type="12"/>
<f name="BZ" table="LIS_BRJYXX" type="12"/>
<f name="JGID" table="LIS_BRJYXX" type="12"/>
<f name="CSRQ" table="LIS_BRJYXX" type="93"/>
<f name="JYMD" table="LIS_BRJYXX" type="12"/>
<f name="YCBZ" table="LIS_BRJYXX" type="12"/>
<f name="HZPKEY" table="LIS_BRJYXX" type="12"/>
<f name="ZJHM" table="LIS_BRJYXX" type="12"/>
<f name="QTJG" table="LIS_BRJYXX" type="12"/>
<f name="CFBZ" table="LIS_BRJYXX" type="12"/>
<f name="HBTM" table="LIS_BRJYXX" type="12"/>
<f name="NLY" table="LIS_BRJYXX" type="12"/>
<f name="NLT" table="LIS_BRJYXX" type="12"/>
</fields>
<parameter>
<p>12</p>
<p>12</p>
<p>12</p>
</parameter>
</dao>
<dao id="yqsbxmquerydao" type="1">
<sql>select QDLX from LIS_YQSBDJ where JGID = ? and SBH = ?</sql>
<tables>
<table name="LIS_YQSBDJ" insert="false" update="false" delete="false">
</table>
</tables>
<fields>
<f name="QDLX" type="12" />
</fields>
<parameter>
<p>12</p>
<p>12</p>
</parameter>
</dao>
<dao id="lisxmbhdao" type="1">
<sql>select c.XMBH,c.XMMC,c.XMDH from LIS_YQSBDJ a
left join LIS_QDCSPZ b on b.YQDM=a.QDLX and a.JGID = b.JGID
left join LIS_JYXM c on b.YQDL = c.XMFL
where a.JGID = ? and a.SBH=?</sql>
<fields>
<f name="XMBH" type="12"/>
<f name="XMMC" type="12"/>
<f name="XMDH" type="12"/>
</fields>
<parameter>
<p>12</p>
<p>12</p>
</parameter>
</dao>
<dao cache="true" id="alljyxmbdao" type="1">
<sql>select XMBH,XMMC,XMDH,XMFL,YWMC,JYDW,JGLX,PYM,JGID from LIS_JYXM</sql>
<fields>
<f name="XMBH" type="12"/>
<f name="XMMC" type="12"/>
<f name="XMDH" type="12"/>
<f name="XMFL" type="12"/>
<f name="YWMC" type="12"/>
<f name="JYDW" type="12"/>
<f name="JGLX" type="12"/>
<f name="PYM" type="12"/>
<f name="JGID" type="12"/>
</fields>
</dao>
<dao id="jyxmbdao" type="1">
<sql>select
t.XMBH,t.XMMC,t.XMDH,t.XMFL,t.YWMC,t.JYDW,t.JGLX,a.MRJG,t.PYM,t.JGID,a.frbz,a.jyff
from LIS_JYXM t
left join lisfrxm a on t.XMBH =a.xmbh and a.JGID =?
where t.XMBH = ?</sql>
<tables>
<table delete="true" insert="true" name="LIS_JYXM" update="true">
<primary>XMBH</primary>
</table>
</tables>
<fields>
<f name="XMBH" table="LIS_JYXM" type="12"/>
<f name="XMMC" table="LIS_JYXM" type="12"/>
<f name="XMDH" table="LIS_JYXM" type="12"/>
<f name="XMFL" table="LIS_JYXM" type="12"/>
<f name="YWMC" table="LIS_JYXM" type="12"/>
<f name="JYDW" table="LIS_JYXM" type="12"/>
<f name="JGLX" table="LIS_JYXM" type="12"/>
<f name="MRJG" type="12"/>
<f name="PYM" table="LIS_JYXM" type="12"/>
<f name="JGID" table="LIS_JYXM" type="12"/>
<f name="frbz" type="12"/>
<f name="jyff" type="12"/>
</fields>
<parameter>
<p>12</p>
<p>12</p>
</parameter>
</dao>
<dao id="getjyxmbdao" type="1">
<sql>select t.XMBH,t.XMMC,t.XMDH,t.XMFL,t.YWMC,t.JYDW,t.JGLX,t.PYM,t.JGID,a.MRJG from LIS_JYXM t
left join lisfrxm a on t.XMBH =a.xmbh and a.JGID =?</sql>
<fields>
<f name="XMBH" type="12"/>
<f name="XMMC" type="12"/>
<f name="XMDH" type="12"/>
<f name="XMFL" type="12"/>
<f name="YWMC" type="12"/>
<f name="JYDW" type="12"/>
<f name="JGLX" type="12"/>
<f name="PYM" type="12"/>
<f name="JGID" type="12"/>
<f name="MRJG" type="12"/>
</fields>
<parameter>
<p>12</p>
</parameter>
</dao>
<dao id="allckzdao" type="1">
<sql>select PKEY,XH,XMBH,YBLX,XB,NL,SBLX,CKSX,CKXX,SXTS,XXTS,CKZ,JGSX,JGXX,JGSXTS,JGXXTS,JGID from LIS_CKZ where JGID =?</sql>
<tables>
<table delete="false" insert="false" name="LIS_CKZ" update="false">
<primary>PKEY</primary>
</table>
</tables>
<fields>
<f name="PKEY" table="LIS_CKZ" type="-5"/>
<f name="XH" table="LIS_CKZ" type="-5"/>
<f name="XMBH" table="LIS_CKZ" type="12"/>
<f name="YBLX" table="LIS_CKZ" type="12"/>
<f name="XB" table="LIS_CKZ" type="12"/>
<f name="NL" table="LIS_CKZ" type="12"/>
<f name="SBLX" table="LIS_CKZ" type="12"/>
<f name="CKSX" table="LIS_CKZ" type="12"/>
<f name="CKXX" table="LIS_CKZ" type="12"/>
<f name="SXTS" table="LIS_CKZ" type="12"/>
<f name="XXTS" table="LIS_CKZ" type="12"/>
<f name="CKZ" table="LIS_CKZ" type="12"/>
<f name="JGSX" table="LIS_CKZ" type="12"/>
<f name="JGXX" table="LIS_CKZ" type="12"/>
<f name="JGSXTS" table="LIS_CKZ" type="12"/>
<f name="JGXXTS" table="LIS_CKZ" type="12"/>
<f name="JGID" table="LIS_CKZ" type="12"/>
</fields>
<parameter>
<p>12</p>
</parameter>
</dao>
<dao cache="true" id="allnlddao" type="1">
<sql>select BH,MC,KSNL,KSNLDW,JSNL,JSNLDW,PYM,WBM,JGID,PKEY from LIS_NLD </sql>
<tables>
<table delete="true" insert="true" name="LIS_NLD" update="true">
<primary>PKEY</primary>
</table>
</tables>
<fields>
<f name="BH" type="12" table="LIS_NLD" />
<f name="MC" type="12" table="LIS_NLD" />
<f name="KSNL" type="5" table="LIS_NLD" />
<f name="KSNLDW" type="12" table="LIS_NLD" />
<f name="JSNL" type="5" table="LIS_NLD" />
<f name="JSNLDW" type="12" table="LIS_NLD" />
<f name="PYM" type="12" table="LIS_NLD" />
<f name="WBM" type="12" table="LIS_NLD" />
<f name="JGID" type="12" table="LIS_NLD" />
<f name="PKEY" type="12" table="LIS_NLD" />
</fields>
</dao>
<dao id="liskfdao" type="1">
<sql>select PKEY,XMMC,YSXM,KF,CHBXS,CHYXS,CHLXS,CHSXS,JGID from LIS_HBXMSZ where YSXM=? </sql>
<fields>
<f name="PKEY" type="-5"/>
<f name="XMMC" type="12"/>
<f name="YSXM" type="12"/>
<f name="KF" type="12"/>
<f name="CHBXS" type="12"/>
<f name="CHYXS" type="12"/>
<f name="CHLXS" type="12"/>
<f name="CHSXS" type="12"/>
<f name="JGID" type="12"/>
</fields>
<parameter>
<p>12</p>
</parameter>
</dao>
<dao id="hbxmgxdao" type="1">
<sql>select YBH,XMBM,RJBH,SBH,JGID,XMDH,XMMC,JYDW,CKZ,TSXX from LIS_JYJG
where YBH=? and XMBM=? and RJBH=? and SBH=? and JGID=?</sql>
<tables>
<table delete="true" insert="true" name="LIS_JYJG" update="true">
<primary>YBH</primary>
<primary>XMBM</primary>
<primary>RJBH</primary>
<primary>SBH</primary>
<primary>JGID</primary>
</table>
</tables>
<fields>
<f name="YBH" table="LIS_JYJG" type="12"/>
<f name="XMBM" table="LIS_JYJG" type="12"/>
<f name="RJBH" table="LIS_JYJG" type="-5"/>
<f name="SBH" table="LIS_JYJG" type="12"/>
<f name="JGID" table="LIS_JYJG" type="12"/>
<f name="XMDH" table="LIS_JYJG" type="12"/>
<f name="XMMC" table="LIS_JYJG" type="12"/>
<f name="JYDW" table="LIS_JYJG" type="12"/>
<f name="CKZ" table="LIS_JYJG" type="12"/>
<f name="TSXX" table="LIS_JYJG" type="12"/>
</fields>
<parameter>
<p>12</p>
<p>12</p>
<p>12</p>
<p>12</p>
<p>12</p>
</parameter>
</dao>
<dao id="hbxmcfdao" type="1">
<sql>select a.RKEY,a.YXMBH,a.XXMBH,a.YTMH,a.XTMH,a.CFBZ,a.JGID,a.YYBH,a.XYBH,a.BLH,b.MC
from LIS_XMCF a
left join HIS_YZX b on a.JGID =b.JGID and a.XXMBH =b.BM where a.JGID=? and a.rkey=?</sql>
<tables>
<table name="LIS_XMCF" insert="true" update="true" delete="true">
<primary>XXMBH</primary>
<primary>JGID</primary>
<primary>YXMBH</primary>
<primary>RKEY</primary>
</table>
</tables>
<fields>
<f name="RKEY" type="12" table="LIS_XMCF" />
<f name="YXMBH" type="12" table="LIS_XMCF" />
<f name="XXMBH" type="12" table="LIS_XMCF" />
<f name="YTMH" type="12" table="LIS_XMCF" />
<f name="XTMH" type="12" table="LIS_XMCF" />
<f name="CFBZ" type="12" table="LIS_XMCF" />
<f name="JGID" type="12" table="LIS_XMCF" />
<f name="YYBH" type="12" table="LIS_XMCF" />
<f name="XYBH" type="12" table="LIS_XMCF" />
<f name="BLH" type="12" table="LIS_XMCF" />
<f name="MC" type="12" />
</fields>
<parameter>
<p>12</p>
<p>12</p>
</parameter>
</dao>
<dao id="ysxmdao" type="1">
<sql> select YSXM,PKEY from LIS_HBXMSZ where XMMC=? </sql>
<fields>
<f name="YSXM" type="12"/>
<f name="PKEY" type="-5"/>
</fields>
<parameter>
<p>12</p>
</parameter>
</dao>
<dao id="xmcfquerydao" type="1">
<sql>select RKEY,YXMBH,XXMBH,YTMH,XTMH,CFBZ,JGID,YYBH,XYBH,BLH from LIS_XMCF where JGID=? and XTMH=? order by XTMH asc</sql>
<tables>
<table name="LIS_XMCF" insert="false" update="false" delete="false">
<primary>XXMBH</primary>
<primary>JGID</primary>
<primary>YXMBH</primary>
<primary>RKEY</primary>
</table>
</tables>
<fields>
<f name="RKEY" type="12" table="LIS_XMCF" />
<f name="YXMBH" type="12" table="LIS_XMCF" />
<f name="XXMBH" type="12" table="LIS_XMCF" />
<f name="YTMH" type="12" table="LIS_XMCF" />
<f name="XTMH" type="12" table="LIS_XMCF" />
<f name="CFBZ" type="12" table="LIS_XMCF" />
<f name="JGID" type="12" table="LIS_XMCF" />
<f name="YYBH" type="12" table="LIS_XMCF" />
<f name="XYBH" type="12" table="LIS_XMCF" />
<f name="BLH" type="12" table="LIS_XMCF" />
</fields>
<parameter>
<p>12</p>
<p>12</p>
</parameter>
</dao>
<dao id="yqbgwhdao" type="1">
<sql>select PKEY,BH,MC,SBH,MYDYHS,BT,FBT,JGID,BGDGS,TS,YBLX,XSSX,MRXM,MRBT from LIS_YQBGWH
where JGID = ? and BH like ?</sql>
<tables>
<table delete="true" insert="true" name="LIS_YQBGWH" update="true">
<primary>PKEY</primary>
<primary>BH</primary>
<primary>JGID</primary>
</table>
</tables>
<fields>
<f name="PKEY" table="LIS_YQBGWH" type="-5" />
<f name="BH" table="LIS_YQBGWH" type="12" />
<f name="MC" table="LIS_YQBGWH" type="12" />
<f name="SBH" table="LIS_YQBGWH" type="12" />
<f name="MYDYHS" table="LIS_YQBGWH" type="12" />
<f name="BT" table="LIS_YQBGWH" type="12" />
<f name="FBT" table="LIS_YQBGWH" type="12" />
<f name="JGID" table="LIS_YQBGWH" type="12" />
<f name="BGDGS" table="LIS_YQBGWH" type="12" />
<f name="TS" table="LIS_YQBGWH" type="-5" />
<f name="YBLX" table="LIS_YQBGWH" type="12" />
<f name="XSSX" table="LIS_YQBGWH" type="-5" />
<f name="MRXM" table="LIS_YQBGWH" type="12" />
<f name="MRBT" table="LIS_YQBGWH" type="12" />
</fields>
<parameter>
<p>12</p>
<p>12</p>
</parameter>
</dao>
<dao id="bgdsddao" type="1">
<sql>select BH,MC,MBPATH,GS from LIS_BGD where BH = ?</sql>
<tables>
<table name="LIS_BGD" insert="true" update="true" delete="true">
<primary>BH</primary>
</table>
</tables>
<fields>
<f name="BH" type="12" table="LIS_BGD" />
<f name="MC" type="12" table="LIS_BGD" />
<f name="MBPATH" type="12" table="LIS_BGD" />
<f name="GS" type="12" table="LIS_BGD" />
</fields>
<parameter>
<p>12</p>
</parameter>
</dao>
<dao id="bgdsddic" type="1">
<sql>select BH,MC,MBPATH,GS from LIS_BGD order by MC</sql>
<tables>
<table delete="true" insert="true" name="LIS_BGD" update="true">
<primary>BH</primary>
</table>
</tables>
<fields>
<f name="BH" table="LIS_BGD" type="12" />
<f name="MC" table="LIS_BGD" type="12" />
<f name="MBPATH" table="LIS_BGD" type="12" />
<f name="GS" table="LIS_BGD" type="12" />
</fields>
</dao>
<dao id="jyjgdzlxmdao" type="1">
<sql>select distinct t2.DXMBM,t2.DXMMC from LIS_BRJYXX t left join LIS_JYJG t2 on t.SBH = t2.SBH and t.YBH = t2.YBH and t.JGID = t2.JGID and t.RJBH = t2.RJBH where t.JGID = ? and t.XH = ? and t2.DXMMC !='null'</sql>
<fields>
<f name="DXMBM" type="12"/>
<f name="DXMMC" type="12"/>
</fields>
<parameter>
<p>12</p>
<p>12</p>
</parameter>
</dao>
<dao id="jyxmsjqueryDao" type="1">
<sql>select t2.ZHXMMC,t2.ZHXM,t.JYSJ,t.TMH,t.BLH,t.JGID,t.SJYS,t.JYYS,t.KLS from LIS_BRJYXX t
left join LIS_JYXMSQ t2 on t.JGID =t2.JGID and t.TMH =t2.TMH
where t.JGID = ? and t.KLS = ? and t.JYSJ BETWEEN ? and ? and t.FBBZ='Y'
union
select t2.ZHXMMC,t2.ZHXM,t.JYSJ,t.TMH,t.BLH,t.JGID,t.SJYS,t.JYYS,t.KLS from LIS_BRJYXX t
left join LIS_JYXMSQ t2 on t.QTJG =t2.JGID and t.TMH =t2.TMH
where t.QTJG = ? and t.KLS = ? and t.JYSJ BETWEEN ? and ? and t.FBBZ='Y' order by JYSJ desc</sql>
<fields>
<f name="ZHXMMC" type="12" />
<f name="ZHXM" type="12" />
<f name="JYSJ" type="93" />
<f name="TMH" type="12" />
<f name="BLH" type="12" />
<f name="JGID" type="12" />
<f name="SJYS" type="12" />
<f name="JYYS" type="12" />
<f name="KLS" type="12" />
</fields>
<parameter>
<p>12</p>
<p>12</p>
<p>93</p>
<p>93</p>
<p>12</p>
<p>12</p>
<p>93</p>
<p>93</p>
</parameter>
</dao>
<dao id="yqbgAlldao" type="1">
<sql>select PKEY,BH,MC,SBH,MYDYHS,BT,FBT,JGID,BGDGS,TS,YBLX,XSSX,MRXM,MRBT from LIS_YQBGWH where JGID=? order by nvl(XSSX, 999) asc,BH asc</sql>
<fields>
<f name="PKEY" type="-5" />
<f name="BH" type="12" />
<f name="MC" type="12" />
<f name="SBH" type="12" />
<f name="MYDYHS" type="12" />
<f name="BT" type="12" />
<f name="FBT" type="12" />
<f name="JGID" type="12" />
<f name="BGDGS" type="12" />
<f name="TS" type="-5" />
<f name="YBLX" type="12" />
<f name="XSSX" type="-5" />
<f name="MRXM" type="12" />
<f name="MRBT" type="12" />
</fields>
<parameter>
<p>12</p>
</parameter>
</dao>
<dao id="yqbggsdao" type="1">
<sql>select PKEY,BH,MC,SBH,MYDYHS,BT,FBT,JGID,BGDGS,TS,YBLX,XSSX,MRXM,MRBT from LIS_YQBGWH where JGID=? and SBH=?</sql>
<fields>
<f name="PKEY" type="-5" />
<f name="BH" type="12" />
<f name="MC" type="12" />
<f name="SBH" type="12" />
<f name="MYDYHS" type="12" />
<f name="BT" type="12" />
<f name="FBT" type="12" />
<f name="JGID" type="12" />
<f name="BGDGS" type="12" />
<f name="TS" type="-5" />
<f name="YBLX" type="12" />
<f name="XSSX" type="-5" />
<f name="MRXM" type="12" />
<f name="MRBT" type="12" />
</fields>
<parameter>
<p>12</p>
<p>12</p>
</parameter>
</dao>
<dao id="lissbdjdao" type="1">
<sql>select PKEY,SBH,YQMC,QDLX,YQBD,PJFS,SSKS,JGID,GZZ,YSBH,SFFG from LIS_YQSBDJ where JGID=? order by SBH asc</sql>
<tables>
<table name="LIS_YQSBDJ" insert="true" update="true" delete="true">
<primary>PKEY</primary>
<primary>JGID</primary>
</table>
</tables>
<fields>
<f name="PKEY" type="8" table="LIS_YQSBDJ" />
<f name="SBH" type="12" table="LIS_YQSBDJ" />
<f name="YQMC" type="12" table="LIS_YQSBDJ" />
<f name="QDLX" type="12" table="LIS_YQSBDJ" />
<f name="YQBD" type="12" table="LIS_YQSBDJ" />
<f name="PJFS" type="12" table="LIS_YQSBDJ" />
<f name="SSKS" type="12" table="LIS_YQSBDJ" />
<f name="JGID" type="12" table="LIS_YQSBDJ" />
<f name="GZZ" type="12" table="LIS_YQSBDJ" />
<f name="YSBH" type="12" table="LIS_YQSBDJ" />
<f name="SFFG" type="12" table="LIS_YQSBDJ" />
</fields>
<parameter>
<p>12</p>
</parameter>
</dao>
<dao id="sysuser" cache="true" type="1">
<sql>select a.EMPID,b.YBUSERNAME,b.USERACCOUNT,b.NAME,b.SEX,b.PYM,a.YBID,a.YBNAME,a.JGID from MAIN_JGYH a left join MAIN_YHXX b on a.EMPID=b.EMPID where nvl(b.USERACCOUNT,' ') !=' ' </sql>
<fields>
<f name="EMPID" type="12" />
<f name="YBUSERNAME" type="12" />
<f name="USERACCOUNT" type="12" />
<f name="NAME" type="12" />
<f name="SEX" type="12" />
<f name="PYM" type="12" />
<f name="YBID" type="12" />
<f name="YBNAME" type="12" />
<f name="JGID" type="12" />
</fields>
</dao>
<dao id="cydwdao" cache="true" type="1">
<sql>select PKEY,BH,CJDW,JGID,ZWDW from LIS_CJDW</sql>
<tables>
<table name="LIS_CJDW" insert="false" update="false" delete="false">
<primary>PKEY</primary>
</table>
</tables>
<fields>
<f name="PKEY" type="-5" table="LIS_CJDW" />
<f name="BH" type="12" table="LIS_CJDW" />
<f name="CJDW" type="12" table="LIS_CJDW" />
<f name="JGID" type="12" table="LIS_CJDW" />
<f name="ZWDW" type="12" table="LIS_CJDW" />
</fields>
</dao>
<dao id="brlydao" type="1" memo="病人来源">
<sql>SELECT BM, MC,VALUE1 FROM LIS_ZDB where LBBM='brly'</sql>
<fields>
<f name="BM" type="12"/>
<f name="MC" type="12"/>
<f name="VALUE1" type="12"/>
</fields>
</dao>
<dao id="getsbyqdldao" type="1" memo="获取设备仪器大类">
<sql>select b.YQDL from LIS_YQSBDJ a
left join LIS_QDCSPZ b on b.YQDM=a.QDLX and a.JGID = b.JGID
where a.JGID=? AND a.SBH=?
</sql>
<fields>
<f name="YQDL" type="12"/>
</fields>
<parameter>
<p>12</p>
<p>12</p>
</parameter>
</dao>
<dao id="yqcspzdao" type="1">
<sql>select t2.YQDL,t.SBH,t2.YQDM,t.YQBD,t.PJFS from LIS_YQSBDJ t,LIS_QDCSPZ t2
where t.JGID =t2.JGID and t.QDLX = t2.YQDM and t.JGID = ? and t.SBH = ?
</sql>
<tables>
<table delete="true" insert="true" name="LIS_QDCSPZ" update="true">
<primary>YQDL</primary>
</table>
</tables>
<fields>
<f name="YQDL" table="LIS_QDCSPZ" type="12"/>
<f name="SBH" type="12"/>
<f name="YQDM" table="LIS_QDCSPZ" type="12"/>
<f name="YQBD" table="LIS_QDCSPZ" type="12"/>
<f name="PJFS" type="12"/>
</fields>
<parameter>
<p>12</p>
<p>12</p>
</parameter>
</dao>
<dao id="yqcspzdao2" type="1">
<sql>select t2.YQDL,t.SBH,t2.YQDM,t.YQBD,t.PJFS from LIS_YQSBDJ t,LIS_QDCSPZ t2
where t.JGID =t2.JGID and t.QDLX = t2.YQDM and t.JGID = ? and t.SBH = ?
</sql>
<fields>
<f name="YQDL" type="12"/>
<f name="SBH" type="12"/>
<f name="YQDM" type="12"/>
<f name="YQBD" type="12"/>
<f name="PJFS" type="12"/>
</fields>
<parameter>
<p>12</p>
<p>12</p>
</parameter>
</dao>
<dao id="yqjsxmdao" type="1" memo="计算项目dao">
<sql>select t3.JSGS,t3.XMBM,t3.XMDH,t.JGID,t.SBH from LIS_YQSBDJ t left join LIS_QDCSPZ t2 on t.JGID = t2.JGID and t.QDLX = t2.YQDM left join LIS_CALC t3 on t2.JGID = t3.JGID and t2.YQDM = t3.YQDM where t.JGID = ? and t.SBH = ? </sql>
<tables>
<table delete="false" insert="false" name="LIS_YQSBDJ" update="false">
</table>
</tables>
<fields>
<f name="JSGS" type="12" />
<f name="XMBM" type="12" />
<f name="XMDH" type="12" />
<f name="JGID" type="12" />
<f name="SBH" type="12" />
</fields>
<parameter>
<p>12</p>
<p>12</p>
</parameter>
</dao>
<dao id="zjdjdao" type="1">
<sql>select ZJMC,IPDZ,SSKS,BZ,JGID,PKEY from LIS_COMPUTER where JGID = ?</sql>
<tables>
<table name="LIS_COMPUTER" insert="true" update="true" delete="true">
<primary>Pkey</primary>
<primary>ZJMC</primary>
<primary>JGID</primary>
</table>
</tables>
<fields>
<f name="ZJMC" type="12" table="LIS_COMPUTER" />
<f name="IPDZ" type="12" table="LIS_COMPUTER" />
<f name="SSKS" type="12" table="LIS_COMPUTER" />
<f name="BZ" type="12" table="LIS_COMPUTER" />
<f name="JGID" type="12" table="LIS_COMPUTER" />
<f name="PKEY" type="-5" table="LIS_COMPUTER" />
</fields>
<parameter>
<p>12</p>
</parameter>
</dao>
<dao id="lisipdao" type="1">
<sql>select IPDZ,JGID from LIS_COMPUTER where JGID=? and ZJMC=?</sql>
<fields>
<f name="IPDZ" type="12"/>
<f name="JGID" type="12"/>
</fields>
<parameter>
<p>12</p>
<p>12</p>
</parameter>
</dao>
<dao id="yqmxdao" type="1">
<sql>select a.YQDM,a.QDKMC ,b.YQMC,a.JKFS,a.TXZC,a.SFSG,a.WJLJ,a.KSHH,a.JSHH,a.CSSL,a.SRHC,a.SCCD,a.SJW,a.TZW,a.JYW,a.HHXY,a.SJCSFS from LIS_QDCSPZ a,LIS_YQSBDJ b where a.YQDM=b.QDLX and a.JGID=b.JGID and a.JGID =? and b.SBH=? </sql>
<fields>
<f name="YQDM" type="12"/>
<f name="QDKMC" type="12"/>
<f name="YQMC" type="12"/>
<f name="JKFS" type="12"/>
<f name="TXZC" type="12"/>
<f name="SFSG" type="12"/>
<f name="WJLJ" type="12"/>
<f name="KSHH" type="12"/>
<f name="JSHH" type="12"/>
<f name="CSSL" type="12"/>
<f name="SRHC" type="12"/>
<f name="SCCD" type="12"/>
<f name="SJW" type="12"/>
<f name="TZW" type="12"/>
<f name="JYW" type="12"/>
<f name="HHXY" type="12"/>
<f name="SJCSFS" type="12"/>
</fields>
<parameter>
<p>12</p>
<p>12</p>
</parameter>
</dao>
<dao id="lisjkfsdao" type="1" memo="接口方式">
<sql>SELECT BM, MC FROM LIS_ZDB where LBBM='jkfs'</sql>
<fields>
<f name="BM" type="12"/>
<f name="MC" type="12"/>
</fields>
</dao>
<dao id="noyesdao" type="1" memo="NOYES不支持和支持">
<sql>SELECT BM, MC FROM LIS_ZDB where LBBM='noyes'</sql>
<fields>
<f name="BM" type="12"/>
<f name="MC" type="12"/>
</fields>
</dao>
<dao id="hhdao" type="1" memo="会话">
<sql>SELECT BM, MC FROM LIS_ZDB where LBBM='hh' order by VALUE4</sql>
<fields>
<f name="BM" type="12"/>
<f name="MC" type="12"/>
</fields>
</dao>
<dao id="sddao" type="1" memo="传输速率">
<sql>SELECT BM, MC FROM LIS_ZDB where LBBM='cssd' order by VALUE4</sql>
<fields>
<f name="BM" type="12"/>
<f name="MC" type="12"/>
</fields>
</dao>
<dao id="srdao" type="1" memo="数据缓冲">
<sql>SELECT BM, MC FROM LIS_ZDB where LBBM='sjhc' order by VALUE4</sql>
<fields>
<f name="BM" type="12"/>
<f name="MC" type="12"/>
</fields>
</dao>
<dao id="sjdao" type="1" memo="数据位">
<sql>SELECT BM, MC FROM LIS_ZDB where LBBM='sjws'</sql>
<fields>
<f name="BM" type="12"/>
<f name="MC" type="12"/>
</fields>
</dao>
<dao id="tzdao" type="1" memo="停止位">
<sql>SELECT BM, MC FROM LIS_ZDB where LBBM='tzw'</sql>
<fields>
<f name="BM" type="12"/>
<f name="MC" type="12"/>
</fields>
</dao>
<dao id="jydao" type="1" memo="校验位">
<sql>SELECT BM, MC FROM LIS_ZDB where LBBM='jyw'</sql>
<fields>
<f name="BM" type="12"/>
<f name="MC" type="12"/>
</fields>
</dao>
<dao id="xydao" type="1" memo="会话协议">
<sql>SELECT BM, MC FROM LIS_ZDB where LBBM='hhxy'</sql>
<fields>
<f name="BM" type="12"/>
<f name="MC" type="12"/>
</fields>
</dao>
<dao id="lissjcsfsdao" type="1" memo="数据传送方式">
<sql>SELECT BM, MC FROM LIS_ZDB where LBBM='sjcsfs'</sql>
<fields>
<f name="BM" type="12"/>
<f name="MC" type="12"/>
</fields>
</dao>
<dao id="dkdao" type="1" memo="端口号">
<sql>SELECT BM, MC FROM LIS_ZDB where LBBM='dkh' order by VALUE4</sql>
<fields>
<f name="BM" type="12"/>
<f name="MC" type="12"/>
</fields>
</dao>
<dao id="xsbldao" type="1" memo="小数保留位数">
<sql>SELECT BM, MC FROM LIS_ZDB where LBBM='xsws' order by VALUE4</sql>
<fields>
<f name="BM" type="12"/>
<f name="MC" type="12"/>
</fields>
</dao>
<dao id="lisjglxdao" type="1" memo="结果类型">
<sql>SELECT BM, MC FROM LIS_ZDB where LBBM='jglx' </sql>
<fields>
<f name="BM" type="12"/>
<f name="MC" type="12"/>
</fields>
</dao>
<dao id="lisydgzdao" type="1" memo="应答规则">
<sql>SELECT BM, MC FROM LIS_ZDB where LBBM='ydgz' </sql>
<fields>
<f name="BM" type="12"/>
<f name="MC" type="12"/>
</fields>
</dao>
<dao id="pjfsdao" type="1" memo="批结方式">
<sql>SELECT BM, MC FROM LIS_ZDB where LBBM='pjfs' </sql>
<fields>
<f name="BM" type="12"/>
<f name="MC" type="12"/>
</fields>
</dao>
<dao id="bzlxdao" type="1" memo="备注类型">
<sql>SELECT BM, MC FROM LIS_ZDB where LBBM='bzlx' </sql>
<fields>
<f name="BM" type="12"/>
<f name="MC" type="12"/>
</fields>
</dao>
<dao id="tsfhxdic" type="1" memo="提示符号L">
<sql>SELECT BM, MC FROM LIS_ZDB where LBBM='tsfh' and VALUE1='0' </sql>
<fields>
<f name="BM" type="12"/>
<f name="MC" type="12"/>
</fields>
</dao>
<dao id="tsfhsdic" type="1" memo="提示符号H">
<sql>SELECT BM, MC FROM LIS_ZDB where LBBM='tsfh' and VALUE1='1' </sql>
<fields>
<f name="BM" type="12"/>
<f name="MC" type="12"/>
</fields>
</dao>
<dao id="jyztdic" type="1" memo="检验状态">
<sql>SELECT BM, MC FROM LIS_ZDB where LBBM='jyzt' and ZT='1' </sql>
<fields>
<f name="BM" type="12"/>
<f name="MC" type="12"/>
</fields>
</dao>
<dao id="jjztdic" type="1" memo="加急标志">
<sql>SELECT BM, MC FROM LIS_ZDB where LBBM='jjzt' and ZT='1' </sql>
<fields>
<f name="BM" type="12"/>
<f name="MC" type="12"/>
</fields>
</dao>
<dao id="jgbsdic" type="1" memo="结果标识">
<sql>SELECT BM, MC FROM LIS_ZDB where LBBM='jgbs' and ZT='1' </sql>
<fields>
<f name="BM" type="12"/>
<f name="MC" type="12"/>
</fields>
</dao>
<dao id="lczddao" type="1">
<sql>select 编号,名称,PYM,WBM,JGID from 临床诊断 WHERE JGID = ? order by 编号</sql>
<tables>
<table name="临床诊断" insert="true" update="true" delete="true">
<primary>编号</primary>
<primary>JGID</primary>
</table>
</tables>
<fields>
<f name="编号" type="12" table="临床诊断" />
<f name="名称" type="12" table="临床诊断" />
<f name="PYM" type="12" table="临床诊断" />
<f name="WBM" type="12" table="临床诊断" />
<f name="JGID" type="12" table="临床诊断" />
</fields>
<parameter>
<p>12</p>
</parameter>
</dao>
<dao id="zlkdao" log="true" type="1">
<sql>
select YQDM,YQMC,JKGXSJ,QDKMC,YQDL,JKFS,TXZC,SFSG,WJLJ,KSHH,JSHH,CSSL,SRHC,SCCD,SJW,TZW,JYW,HHXY,SJCSFS,CJMC,CJDZ,YQZWM from LIS_YQZLK
</sql>
<tables>
<table name="LIS_YQZLK" insert="true" update="true" delete="true">
<primary>YQDM</primary>
</table>
</tables>
<fields>
<f name="YQDM" type="12" table="LIS_YQZLK" />
<f name="YQMC" type="12" table="LIS_YQZLK" />
<f name="JKGXSJ" type="93" table="LIS_YQZLK" />
<f name="QDKMC" type="12" table="LIS_YQZLK" />
<f name="YQDL" type="12" table="LIS_YQZLK" />
<f name="JKFS" type="12" table="LIS_YQZLK" />
<f name="TXZC" type="12" table="LIS_YQZLK" />
<f name="SFSG" type="12" table="LIS_YQZLK" />
<f name="WJLJ" type="12" table="LIS_YQZLK" />
<f name="KSHH" type="12" table="LIS_YQZLK" />
<f name="JSHH" type="12" table="LIS_YQZLK" />
<f name="CSSL" type="12" table="LIS_YQZLK" />
<f name="SRHC" type="12" table="LIS_YQZLK" />
<f name="SCCD" type="12" table="LIS_YQZLK" />
<f name="SJW" type="12" table="LIS_YQZLK" />
<f name="TZW" type="12" table="LIS_YQZLK" />
<f name="JYW" type="12" table="LIS_YQZLK" />
<f name="HHXY" type="12" table="LIS_YQZLK" />
<f name="SJCSFS" type="12" table="LIS_YQZLK" />
<f name="CJMC" type="12" table="LIS_YQZLK" />
<f name="CJDZ" type="12" table="LIS_YQZLK" />
<f name="YQZWM" type="12" table="LIS_YQZLK" />
</fields>
</dao>
<dao id="xyqdldao" log="true" type="1">
<sql>
select YQDM,YQMC,JKGXSJ,QDKMC,YQDL,JKFS,TXZC,SFSG,WJLJ,KSHH,JSHH,CSSL,SRHC,SCCD,SJW,TZW,JYW,HHXY,SJCSFS,CJMC,CJDZ,YQZWM from LIS_YQZLK where YQDL like ?
</sql>
<fields>
<f name="YQDM" type="12" />
<f name="YQMC" type="12" />
<f name="JKGXSJ" type="93" />
<f name="QDKMC" type="12" />
<f name="YQDL" type="12" />
<f name="JKFS" type="12" />
<f name="TXZC" type="12" />
<f name="SFSG" type="12" />
<f name="WJLJ" type="12" />
<f name="KSHH" type="12" />
<f name="JSHH" type="12" />
<f name="CSSL" type="12" />
<f name="SRHC" type="12" />
<f name="SCCD" type="12" />
<f name="SJW" type="12" />
<f name="TZW" type="12" />
<f name="JYW" type="12" />
<f name="HHXY" type="12" />
<f name="SJCSFS" type="12" />
<f name="CJMC" type="12" />
<f name="CJDZ" type="12" />
<f name="YQZWM" type="12" />
</fields>
<parameter>
<p>12</p>
</parameter>
</dao>
<dao id="cspzdao" type="1">
<sql>select YQDM,YQMC,JKGXSJ,QDKMC,YQDL,JKFS,TXZC,SFSG,WJLJ,KSHH,JSHH,CSSL,SRHC,SCCD,SJW,TZW,JYW,HHXY,SJCSFS,CJMC,CJDZ,YQZWM,JGID,PKEY from LIS_QDCSPZ where JGID=?</sql>
<tables>
<table delete="true" insert="true" name="LIS_QDCSPZ" update="true">
<primary>YQDM</primary>
<primary>JGID</primary>
</table>
</tables>
<fields>
<f name="YQDM" type="12" table="LIS_QDCSPZ" />
<f name="YQMC" type="12" table="LIS_QDCSPZ" />
<f name="JKGXSJ" type="93" table="LIS_QDCSPZ" />
<f name="QDKMC" type="12" table="LIS_QDCSPZ" />
<f name="YQDL" type="12" table="LIS_QDCSPZ" />
<f name="JKFS" type="12" table="LIS_QDCSPZ" />
<f name="TXZC" type="12" table="LIS_QDCSPZ" />
<f name="SFSG" type="12" table="LIS_QDCSPZ" />
<f name="WJLJ" type="12" table="LIS_QDCSPZ" />
<f name="KSHH" type="12" table="LIS_QDCSPZ" />
<f name="JSHH" type="12" table="LIS_QDCSPZ" />
<f name="CSSL" type="12" table="LIS_QDCSPZ" />
<f name="SRHC" type="12" table="LIS_QDCSPZ" />
<f name="SCCD" type="12" table="LIS_QDCSPZ" />
<f name="SJW" type="12" table="LIS_QDCSPZ" />
<f name="TZW" type="12" table="LIS_QDCSPZ" />
<f name="JYW" type="12" table="LIS_QDCSPZ" />
<f name="HHXY" type="12" table="LIS_QDCSPZ" />
<f name="SJCSFS" type="12" table="LIS_QDCSPZ" />
<f name="CJMC" type="12" table="LIS_QDCSPZ" />
<f name="CJDZ" type="12" table="LIS_QDCSPZ" />
<f name="YQZWM" type="12" table="LIS_QDCSPZ" />
<f name="JGID" type="12" table="LIS_QDCSPZ"/>
<f name="PKEY" type="12" table="LIS_QDCSPZ"/>
</fields>
<parameter>
<p>12</p>
</parameter>
</dao>
<dao id="whzdao" type="1">
<sql>select PKEY,BH,MC,SSKS,JGID from LIS_GZZ where JGID=?</sql>
<fields>
<f name="PKEY" type="-5" />
<f name="BH" type="12" />
<f name="MC" type="12" />
<f name="SSKS" type="12" />
<f name="JGID" type="12" />
</fields>
<parameter>
<p>12</p>
</parameter>
</dao>
<dao id="dnyqljszdao" type="1">
<sql>select ZJMC,DKH,IPDZ,SBH,SFQY,CJSJ,YQDM,YQMC,QDKMC,JKFS,TXZC,SFSG,WJLJ,KSHH,JSHH,CSSL,SRHC,SCCD,SJW,TZW,JYW,HHXY,SJCSFS,JGID,PKEY from LIS_DNYQSZ where JGID=?</sql>
<tables>
<table delete="true" insert="true" name="LIS_DNYQSZ" update="true">
<primary>ZJMC</primary>
<primary>DKH</primary>
<primary>JGID</primary>
</table>
</tables>
<fields>
<f name="ZJMC" table="LIS_DNYQSZ" type="12"/>
<f name="DKH" table="LIS_DNYQSZ" type="12"/>
<f name="IPDZ" table="LIS_DNYQSZ" type="12"/>
<f name="SBH" table="LIS_DNYQSZ" type="12"/>
<f name="SFQY" table="LIS_DNYQSZ" type="12"/>
<f name="CJSJ" table="LIS_DNYQSZ" type="12"/>
<f name="YQDM" table="LIS_DNYQSZ" type="12"/>
<f name="YQMC" table="LIS_DNYQSZ" type="12"/>
<f name="QDKMC" table="LIS_DNYQSZ" type="12"/>
<f name="JKFS" table="LIS_DNYQSZ" type="12"/>
<f name="TXZC" table="LIS_DNYQSZ" type="12"/>
<f name="SFSG" table="LIS_DNYQSZ" type="12"/>
<f name="WJLJ" table="LIS_DNYQSZ" type="12"/>
<f name="KSHH" table="LIS_DNYQSZ" type="12"/>
<f name="JSHH" table="LIS_DNYQSZ" type="12"/>
<f name="CSSL" table="LIS_DNYQSZ" type="12"/>
<f name="SRHC" table="LIS_DNYQSZ" type="12"/>
<f name="SCCD" table="LIS_DNYQSZ" type="12"/>
<f name="SJW" table="LIS_DNYQSZ" type="12"/>
<f name="TZW" table="LIS_DNYQSZ" type="12"/>
<f name="JYW" table="LIS_DNYQSZ" type="12"/>
<f name="HHXY" table="LIS_DNYQSZ" type="12"/>
<f name="SJCSFS" table="LIS_DNYQSZ" type="12"/>
<f name="JGID" table="LIS_DNYQSZ" type="12"/>
<f name="PKEY" table="LIS_DNYQSZ" type="8"/>
</fields>
<parameter>
<p>12</p>
</parameter>
</dao>
<dao id="xmbmdao" type="1">
<sql>select b.XMBH,b.XMDH,b.XMMC from LIS_YQDL a,LIS_JYXM b where a.BH=b.XMFL and b.XMDH like ? and a.BH = ? </sql>
<fields>
<f name="XMBH" type="12"/>
<f name="XMDH" type="12"/>
<f name="XMMC" type="12"/>
</fields>
<parameter>
<p>12</p>
<p>12</p>
</parameter>
</dao>
<dao id="xmbmdicdao" type="1">
<sql>select b.XMBH,b.XMDH,b.XMMC from LIS_YQDL a,LIS_JYXM b where a.BH=b.XMFL </sql>
<fields>
<f name="XMBH" type="12"/>
<f name="XMDH" type="12"/>
<f name="XMMC" type="12"/>
</fields>
</dao>
<dao id="xtxmpzdao" type="1">
<sql>
select YQDM,YQNBM,JYXM,XMMC,JGTZXS,XSBLWS,JGLX,DYSX,TY,JGID from LIS_YQXMSZ where JGID=? and YQDM=?
</sql>
<tables>
<table delete="true" insert="true" name="LIS_YQXMSZ" update="true">
<primary>JGID</primary>
<primary>YQNBM</primary>
<primary>YQDM</primary>
</table>
</tables>
<fields>
<f name="YQDM" table="LIS_YQXMSZ" type="12"/>
<f name="YQNBM" table="LIS_YQXMSZ" type="12"/>
<f name="JYXM" table="LIS_YQXMSZ" type="12"/>
<f name="XMMC" table="LIS_YQXMSZ" type="12"/>
<f name="JGTZXS" table="LIS_YQXMSZ" type="8"/>
<f name="XSBLWS" table="LIS_YQXMSZ" type="12"/>
<f name="JGLX" table="LIS_YQXMSZ" type="12"/>
<f name="DYSX" table="LIS_YQXMSZ" type="-5"/>
<f name="TY" table="LIS_YQXMSZ" type="12"/>
<f name="JGID" table="LIS_YQXMSZ" type="12"/>
</fields>
<parameter>
<p>12</p>
<p>12</p>
</parameter>
</dao>
<dao id="xmmcdao" type="1">
<sql>select XMMC,JGID,XMDH,XMBH from LIS_JYXM where XMMC=?</sql>
<fields>
<f name="XMMC" type="12"/>
<f name="JGID" type="12"/>
<f name="XMDH" type="12"/>
<f name="XMBH" type="12"/>
</fields>
<parameter>
<p>12</p>
</parameter>
</dao>
<dao id="jgzhdao" type="1">
<sql>select ID,YQDM,YQNBM,YSJG,FYHJG,JGID from LIS_JGZH where JGID=? and YQDM=?</sql>
<tables>
<table delete="true" insert="true" name="LIS_JGZH" update="true">
<primary>ID</primary>
<primary>JGID</primary>
</table>
</tables>
<fields>
<f name="ID" table="LIS_JGZH" type="-5"/>
<f name="YQDM" table="LIS_JGZH" type="12"/>
<f name="YQNBM" table="LIS_JGZH" type="12"/>
<f name="YSJG" table="LIS_JGZH" type="12"/>
<f name="FYHJG" table="LIS_JGZH" type="12"/>
<f name="JGID" table="LIS_JGZH" type="12"/>
</fields>
<parameter>
<p>12</p>
<p>12</p>
</parameter>
</dao>
<dao id="jsxmdao" type="1">
<sql>select YQDM,XMBM,XMDH,XMMC,JSGS,JGID,PKEY from LIS_CALC where JGID=? and YQDM=?</sql>
<tables>
<table delete="true" insert="true" name="LIS_CALC" update="true">
<primary>JGID</primary>
<primary>PKEY</primary>
<primary>YQDM</primary>
<primary>XMBM</primary>
</table>
</tables>
<fields>
<f name="YQDM" table="LIS_CALC" type="12"/>
<f name="XMBM" table="LIS_CALC" type="12"/>
<f name="XMDH" table="LIS_CALC" type="12"/>
<f name="XMMC" table="LIS_CALC" type="12"/>
<f name="JSGS" table="LIS_CALC" type="12"/>
<f name="JGID" table="LIS_CALC" type="12"/>
<f name="PKEY" table="LIS_CALC" type="8"/>
</fields>
<parameter>
<p>12</p>
<p>12</p>
</parameter>
</dao>
<dao id="sgxmdao" type="1">
<sql>select YQDM,YQNBM,XMBM,JGID,PKEY from LIS_SGXMDZ where JGID=? and YQDM=?</sql>
<tables>
<table delete="true" insert="true" name="LIS_SGXMDZ" update="true">
<primary>JGID</primary>
<primary>PKEY</primary>
<primary>YQDM</primary>
<primary>YQNBM</primary>
<primary>XMBM</primary>
</table>
</tables>
<fields>
<f name="YQDM" table="LIS_SGXMDZ" type="12"/>
<f name="YQNBM" table="LIS_SGXMDZ" type="12"/>
<f name="XMBM" table="LIS_SGXMDZ" type="12"/>
<f name="JGID" table="LIS_SGXMDZ" type="12"/>
<f name="PKEY" table="LIS_SGXMDZ" type="8"/>
</fields>
<parameter>
<p>12</p>
<p>12</p>
</parameter>
</dao>
<dao id="lisyqtxdao" type="1">
<sql>select BH,YQDM,SFQY,YDGZ,FSCLDZ,YDTJCS,JGID from LIS_YQTXGZ where JGID=? and YQDM=?</sql>
<tables>
<table delete="true" insert="true" name="LIS_YQTXGZ " update="true">
<primary>JGID</primary>
<primary>BH</primary>
<primary>YQDM</primary>
</table>
</tables>
<fields>
<f name="BH" table="LIS_YQTXGZ " type="-5"/>
<f name="YQDM" table="LIS_YQTXGZ " type="12"/>
<f name="SFQY" table="LIS_YQTXGZ " type="12"/>
<f name="YDGZ" table="LIS_YQTXGZ " type="12"/>
<f name="FSCLDZ" table="LIS_YQTXGZ " type="12"/>
<f name="YDTJCS" table="LIS_YQTXGZ " type="12"/>
<f name="JGID" table="LIS_YQTXGZ " type="12"/>
</fields>
<parameter>
<p>12</p>
<p>12</p>
</parameter>
</dao>
<dao id="zdppdao" type="1">
<sql>select b.XMMC,b.XMDH,b.XMBH,b.JGLX from LIS_JYXM b where upper(b.XMDH)=? and b.XMFL=?</sql>
<fields>
<f name="XMMC" type="12"/>
<f name="XMDH" type="12"/>
<f name="XMBH" type="12"/>
<f name="JGLX" type="12"/>
</fields>
<parameter>
<p>12</p>
<p>12</p>
</parameter>
</dao>
<dao id="getyqnbmdao" type="1">
<sql>select YQNBM from LIS_YQXMSZ where JGID =? and YQDM=?</sql>
<fields>
<f name="YQNBM" type="12"/>
</fields>
<parameter>
<p>12</p>
<p>12</p>
</parameter>
</dao>
<dao id="jsyydao" type="1">
<sql>select PKEY,YY,PYM,JGID from LIS_BBJSYY where JGID=?</sql>
<tables>
<table delete="true" insert="true" name="LIS_BBJSYY" update="true">
<primary>PKEY</primary>
<primary>JGID</primary>
</table>
</tables>
<fields>
<f name="PKEY" table="LIS_BBJSYY" type="-5"/>
<f name="YY" table="LIS_BBJSYY" type="12"/>
<f name="PYM" table="LIS_BBJSYY" type="12"/>
<f name="JGID" table="LIS_BBJSYY" type="12"/>
</fields>
<parameter>
<p>12</p>
</parameter>
</dao>
<dao id="jsyypop" type="1">
<sql>select PKEY,YY,PYM,JGID from LIS_BBJSYY where JGID=? and YY like ?</sql>
<fields>
<f name="PKEY" type="12"/>
<f name="YY" type="12"/>
<f name="PYM" type="12"/>
<f name="JGID" type="12"/>
</fields>
<parameter>
<p>12</p>
<p>12</p>
</parameter>
</dao>
<dao id="liscydao" type="1">
<sql>select t.XH,t.XMBH,t.QUZ,t.PYM,t.JGBS,t.JGID,t3.MC
from LIS_CYQZ t
left join LIS_ZDB t3 on t3.LBBM='jgbs' and t.JGBS = t3.BM
where t.XMBH = ? and t.JGID = ?</sql>
<tables>
<table delete="true" insert="true" name="LIS_CYQZ" update="true">
<primary>XH</primary>
</table>
</tables>
<fields>
<f name="XH" table="LIS_CYQZ" type="-5"/>
<f name="XMBH" table="LIS_CYQZ" type="12"/>
<f name="QUZ" table="LIS_CYQZ" type="12"/>
<f name="PYM" table="LIS_CYQZ" type="12"/>
<f name="JGBS" table="LIS_CYQZ" type="12"/>
<f name="JGID" table="LIS_CYQZ" type="12"/>
<f name="MC" table="LIS_CYQZ" type="12"/>
</fields>
<parameter>
<p>12</p>
<p>12</p>
</parameter>
</dao>
<dao id="cyqzdao" type="1">
<sql>select XH,XMBH,QUZ,PYM,JGBS,JGID from LIS_CYQZ where JGID = ? and XMBH = ? and (PYM like ? or QUZ like ?)</sql>
<tables>
<table delete="true" insert="true" name="LIS_CYQZ" update="true">
<primary>XH</primary>
<primary>JGID</primary>
</table>
</tables>
<fields>
<f name="XH" table="LIS_CYQZ" type="-5"/>
<f name="XMBH" table="LIS_CYQZ" type="12"/>
<f name="QUZ" table="LIS_CYQZ" type="12"/>
<f name="PYM" table="LIS_CYQZ" type="12"/>
<f name="JGBS" table="LIS_CYQZ" type="12"/>
<f name="JGID" table="LIS_CYQZ" type="12"/>
</fields>
<parameter>
<p>12</p>
<p>12</p>
<p>12</p>
<p>12</p>
</parameter>
</dao>
<dao id="lisckdao" type="1">
<sql>select
t.PKEY,t.XH,t.XMBH,t.YBLX,t.XB,t.NL,t.SBLX,t.CKSX,t.CKXX,t.SXTS,t.XXTS,t.CKZ,t.JGSX,t.JGXX,t.JGSXTS,t.JGXXTS,t.JGID
from LIS_CKZ t where t.XMBH = ? and t.JGID = ?</sql>
<tables>
<table delete="true" insert="true" name="LIS_CKZ" update="true">
<primary>XH</primary>
</table>
</tables>
<fields>
<f name="PKEY" table="LIS_CKZ" type="-5"/>
<f name="XH" table="LIS_CKZ" type="-5"/>
<f name="XMBH" table="LIS_CKZ" type="12"/>
<f name="YBLX" table="LIS_CKZ" type="12"/>
<f name="XB" table="LIS_CKZ" type="12"/>
<f name="NL" table="LIS_CKZ" type="12"/>
<f name="SBLX" table="LIS_CKZ" type="12"/>
<f name="CKSX" table="LIS_CKZ" type="12"/>
<f name="CKXX" table="LIS_CKZ" type="12"/>
<f name="SXTS" table="LIS_CKZ" type="12"/>
<f name="XXTS" table="LIS_CKZ" type="12"/>
<f name="CKZ" table="LIS_CKZ" type="12"/>
<f name="JGSX" table="LIS_CKZ" type="12"/>
<f name="JGXX" table="LIS_CKZ" type="12"/>
<f name="JGSXTS" table="LIS_CKZ" type="12"/>
<f name="JGXXTS" table="LIS_CKZ" type="12"/>
<f name="JGID" table="LIS_CKZ" type="12"/>
</fields>
<parameter>
<p>12</p>
<p>12</p>
</parameter>
</dao>
<dao id="cjwzdao" type="1">
<sql>select CJJG,PYM,JGID,PKEY from LIS_CJWZJG where JGID = ?</sql>
<tables>
<table delete="true" insert="true" name="LIS_CJWZJG" update="true">
<primary>CJJG</primary>
<primary>JGID</primary>
</table>
</tables>
<fields>
<f name="CJJG" table="LIS_CJWZJG" type="12"/>
<f name="PYM" table="LIS_CJWZJG" type="12"/>
<f name="JGID" table="LIS_CJWZJG" type="12"/>
<f name="PKEY" table="LIS_CJWZJG" type="-5" />
</fields>
<parameter>
<p>12</p>
</parameter>
</dao>
<dao id="lisxmdao" type="1">
<sql>select
t.JGID,t.XMFL,t.XMBH,t.XMDH,t.XMMC,t.JYDW,t.JGLX,t.YWMC,t.PYM,t.CKZ
,t.SFCZ,a.JGID as chos,a.xmbh frxmbh,a.frbz,a.jyff,a.MRJG,a.FRXMBM,a.FRXMMC
from LIS_JYXM t
left join lisfrxm a on t.XMBH =a.xmbh and a.JGID =?
order by t.XMFL,t.XMBH</sql>
<tables>
<table delete="true" insert="true" name="LIS_JYXM" update="true">
<primary>XMBH</primary>
</table>
<table delete="true" insert="true" name="lisfrxm" update="true">
<primary>chos</primary>
<primary>frxmbh</primary>
</table>
</tables>
<fields>
<f name="JGID" table="LIS_JYXM" type="12"/>
<f name="XMFL" table="LIS_JYXM" type="12"/>
<f name="XMBH" table="LIS_JYXM" type="12"/>
<f name="XMDH" table="LIS_JYXM" type="12"/>
<f name="XMMC" table="LIS_JYXM" type="12"/>
<f name="JYDW" table="LIS_JYXM" type="12"/>
<f name="JGLX" table="LIS_JYXM" type="12"/>
<f name="YWMC" table="LIS_JYXM" type="12"/>
<f name="PYM" table="LIS_JYXM" type="12"/>
<f name="CKZ" table="LIS_JYXM" type="12"/>
<f name="SFCZ" table="LIS_JYXM" type="12"/>
<f name="chos" schemaname="JGID" table="lisfrxm" type="12"/>
<f name="frxmbh" schemaname="xmbh" table="lisfrxm" type="12"/>
<f name="frbz" table="lisfrxm" type="12"/>
<f name="jyff" table="lisfrxm" type="12"/>
<f name="MRJG" table="lisfrxm" type="12"/>
<f name="FRXMBM" table="lisfrxm" type="12"/>
<f name="FRXMMC" table="lisfrxm" type="12"/>
</fields>
<parameter>
<p>12</p>
</parameter>
</dao>
<dao id="jcffdao" type="1">
<sql>select XMBH,JGID,JCFF,MRBZ,PKEY from LISJCFF where xmbh = ? and JGID= ?
</sql>
<tables>
<table delete="true" insert="true" name="LISJCFF" update="true">
<primary>XMBH</primary>
<primary>JGID</primary>
<primary>PKEY</primary>
</table>
</tables>
<fields>
<f name="XMBH" table="LISJCFF" type="12"/>
<f name="JGID" table="LISJCFF" type="12"/>
<f name="JCFF" table="LISJCFF" type="12"/>
<f name="MRBZ" table="LISJCFF" type="12"/>
<f name="PKEY" table="LISJCFF" type="12"/>
</fields>
<parameter>
<p>12</p>
<p>12</p>
</parameter>
</dao>
<dao id="jyffdao" type="1">
<sql>select XMBH,JGID,JCFF,MRBZ,PKEY from LISJCFF where JGID = ? and XMBH = ? and JCFF like ? </sql>
<tables>
<table delete="true" insert="true" name="LISJCFF" update="true">
<primary>XMBH</primary>
<primary>JGID</primary>
<primary>PKEY</primary>
</table>
</tables>
<fields>
<f name="XMBH" table="LISJCFF" type="12"/>
<f name="JGID" table="LISJCFF" type="12"/>
<f name="JCFF" table="LISJCFF" type="12"/>
<f name="MRBZ" table="LISJCFF" type="12"/>
<f name="PKEY" table="LISJCFF" type="12"/>
</fields>
<parameter>
<p>12</p>
<p>12</p>
<p>12</p>
</parameter>
</dao>
<dao id="xmyqdao" type="1">
<sql>select XMBH,JGID,DYSBH from LIS_XMDYYQ where XMBH=? and JGID = ?</sql>
<tables>
<table delete="true" insert="true" name="LIS_XMDYYQ" update="true">
<primary>XMBH</primary>
<primary>JGID</primary>
<primary>DYSBH</primary>
</table>
</tables>
<fields>
<f name="XMBH" table="LIS_XMDYYQ" type="12"/>
<f name="JGID" table="LIS_XMDYYQ" type="12"/>
<f name="DYSBH" table="LIS_XMDYYQ" type="12"/>
</fields>
<parameter>
<p>12</p>
<p>12</p>
</parameter>
</dao>
<dao id="xiangmudao" type="1">
<sql>select XMBH,XMMC,XMDH,XMFL,YWMC,JYDW,JGLX,MRJG,PYM,JGID
from LIS_JYXM a where XMFL = ? and not exists(select 1 from LIS_JYXMDZ where DXBH=? and XXBH =a.XMBH and JGID = ?)</sql>
<fields>
<f name="XMBH" type="12"/>
<f name="XMMC" type="12"/>
<f name="XMDH" type="12"/>
<f name="XMFL" type="12"/>
<f name="YWMC" type="12"/>
<f name="JYDW" type="12"/>
<f name="JGLX" type="12"/>
<f name="MRJG" type="12"/>
<f name="PYM" type="12"/>
<f name="JGID" type="12"/>
</fields>
<parameter>
<p>12</p>
<p>12</p>
<p>12</p>
</parameter>
</dao>
<dao id="dzlxmmxdao" type="1">
<sql>select
t.XXBH,t.JGID,t.DXBH,t3.XMBH,t3.XMDH,t3.JYDW,t3.JGLX,t3.MRJG,t3.XMMC
from LIS_JYXMDZ t
left join LIS_JYXM t3 on t.XXBH = t3.XMBH
where t.DXBH = ? and t.JGID = ? </sql>
<tables>
<table delete="true" insert="true" name="LIS_JYXMDZ" update="true">
<primary>XXBH</primary>
<primary>DXBH</primary>
<primary>JGID</primary>
</table>
</tables>
<fields>
<f name="XXBH" table="LIS_JYXMDZ" type="12"/>
<f name="JGID" table="LIS_JYXMDZ" type="12"/>
<f name="DXBH" table="LIS_JYXMDZ" type="12"/>
<f name="XMBH" type="12"/>
<f name="XMDH" type="12"/>
<f name="JYDW" type="12"/>
<f name="JGLX" type="12"/>
<f name="MRJG" type="12"/>
<f name="XMMC" type="12"/>
</fields>
<parameter>
<p>12</p>
<p>12</p>
</parameter>
</dao>
<dao id="yqxmdao" type="1">
<sql>select b.XMBH,a.YQDM,a.JYXM,a.XMMC,b.XMDH,c.SBH,a.DYSX,a.JGLX,b.JYDW from LIS_YQSBDJ c
left join LIS_YQXMSZ a on c.QDLX=a.YQDM and a.JGID=c.JGID
left join LIS_JYXM b on a.JYXM=b.XMBH where c.SBH=? and a.JGID=?
</sql>
<fields>
<f name="XMBH" type="12" />
<f name="YQDM" type="12" />
<f name="JYXM" type="12" />
<f name="XMMC" type="12" />
<f name="XMDH" type="12" />
<f name="SBH" type="12" />
<f name="DYSX" type="-5"/>
<f name="JGLX" type="12"/>
<f name="JYDW" type="12"/>
</fields>
<parameter>
<p>12</p>
<p>12</p>
</parameter>
</dao>
<dao id="yqxmzkhtdao" type="1">
<sql>select b.XMBH,a.YQDM,a.JYXM,a.XMMC,b.XMDH,c.SBH,a.DYSX,a.JGLX,b.JYDW from LIS_YQSBDJ c
left join LIS_YQXMSZ a on c.QDLX=a.YQDM and a.JGID=c.JGID
left join LIS_JYXM b on a.JYXM=b.XMBH
where c.SBH=? and a.JGID=? and exists(select 1 from LIS_ZKXMDY z where z.JGID=a.JGID and z.XMBH=a.JYXM and z.SBH=c.SBH)
</sql>
<fields>
<f name="XMBH" type="12" />
<f name="YQDM" type="12" />
<f name="JYXM" type="12" />
<f name="XMMC" type="12" />
<f name="XMDH" type="12" />
<f name="SBH" type="12" />
<f name="DYSX" type="-5"/>
<f name="JGLX" type="12"/>
<f name="JYDW" type="12"/>
</fields>
<parameter>
<p>12</p>
<p>12</p>
</parameter>
</dao>
<dao id="liszkgzdao" type="1" cache="true">
<sql>select BH,MC,LX,BZ from LIS_ZKGZ</sql>
<tables>
<table delete="false" insert="false" name="LIS_ZKGZ" update="false">
<primary>BH</primary>
</table>
</tables>
<fields>
<f name="BH" table="LIS_ZKGZ" type="12" />
<f name="MC" table="LIS_ZKGZ" type="12" />
<f name="LX" table="LIS_ZKGZ" type="12" />
<f name="BZ" table="LIS_ZKGZ" type="12" />
</fields>
</dao>
<dao id="zkpdydao" type="1">
<sql>select BH,MC,PH,ND,YXJZRQ,JG,BZ,JGID,ZKPFL,'0' CHK from LIS_ZKP where JGID=? order by BH asc</sql>
<tables>
<table delete="true" insert="true" name="LIS_ZKP" update="true">
<primary>BH</primary>
</table>
</tables>
<fields>
<f name="BH" table="LIS_ZKP" type="12"/>
<f name="MC" table="LIS_ZKP" type="12"/>
<f name="PH" table="LIS_ZKP" type="12"/>
<f name="ND" table="LIS_ZKP" type="12"/>
<f name="YXJZRQ" table="LIS_ZKP" type="93"/>
<f name="JG" table="LIS_ZKP" type="8"/>
<f name="BZ" table="LIS_ZKP" type="12"/>
<f name="JGID" table="LIS_ZKP" type="12"/>
<f name="ZKPFL" table="LIS_ZKP" type="12"/>
<f name="CHK" type="12" />
</fields>
<parameter>
<p>12</p>
</parameter>
</dao>
<dao id="zkpdao" type="1">
<sql><![CDATA[ SELECT distinct a.ZKBH,b.MC FROM LIS_ZKXMDY a,LIS_ZKP b WHERE a.ZKBH = b.BH and a.JGID=b.JGID and nvl(b.YXJZRQ,SYSDATE) >= SYSDATE and a.SBH =? AND a.JGID=? ]]>
</sql>
<fields>
<f name="ZKBH" type="12"/>
<f name="MC" type="12"/>
</fields>
<parameter>
<p>12</p>
<p>12</p>
</parameter>
</dao>
<dao id="zkpdao1" type="1">
<sql><![CDATA[ SELECT distinct a.ZKBH,b.MC FROM LIS_ZKXMDY a,LIS_ZKP b WHERE a.ZKBH = b.BH and a.JGID=b.JGID and nvl(b.YXJZRQ,SYSDATE) >= SYSDATE and a.SBH =? AND a.JGID=? ]]>
</sql>
<fields>
<f name="ZKBH" type="12"/>
<f name="MC" type="12"/>
</fields>
<parameter>
<p>12</p>
<p>12</p>
</parameter>
</dao>
<dao id="zkpdao2" type="1">
<sql><![CDATA[ SELECT distinct a.ZKBH,b.MC FROM LIS_ZKXMDY a,LIS_ZKP b WHERE a.ZKBH = b.BH and a.JGID=b.JGID and nvl(b.YXJZRQ,SYSDATE) >= SYSDATE and a.SBH =? AND a.JGID=? ]]>
</sql>
<fields>
<f name="ZKBH" type="12"/>
<f name="MC" type="12"/>
</fields>
<parameter>
<p>12</p>
<p>12</p>
</parameter>
</dao>
<dao id="sbzkpdao" type="1">
<sql> SELECT distinct a.ZKBH, b.MC FROM LIS_ZKXMDY a,LIS_ZKP b WHERE a.ZKBH = b.BH and a.JGID=b.JGID and a.SBH =? AND a.JGID=?
</sql>
<fields>
<f name="ZKBH" type="12" />
<f name="MC" type="12" />
</fields>
<parameter>
<p>12</p>
<p>12</p>
</parameter>
</dao>
<dao id="zkjyjgdao" type="1">
<sql><![CDATA[SELECT a.XMBH,a.BAZ,a.FC,b.JG,b.DLJG,a.ZKBH,a.DW,b.JYSJ,b.RJBH,b.SBH,b.YBH,d.DYSX,d.JGLX
FROM LIS_ZKXMDY a
left join LIS_YQSBDJ c on a.JGID=c.JGID and c.SBH = a.SBH
left join LIS_YQXMSZ d on a.JGID=d.JGID and a.XMBH = d.JYXM and c.QDLX=d.YQDM
left join LIS_JYJG b on b.XMBM = a.XMBH and b.SBH = a.SBH and a.JGID=b.JGID
left join LIS_ZKP e on a.JGID = e.JGID and a.ZKBH = e.BH
WHERE a.JGID =? and b.SBH = ? AND nvl(a.ZKBH,' ') like ? AND b.YBH =? and b.JYSJ >=? and b.JYSJ <=? and to_char(substr(b.RJBH,9,2))=? order by d.DYSX asc]]>
</sql>
<tables>
<table delete="false" insert="false" name="LIS_ZKXMDY" update="false">
<primary>XMBH</primary>
</table>
</tables>
<fields>
<f name="XMBH" table="LIS_ZKXMDY" type="12"/>
<f name="BAZ" table="LIS_ZKXMDY" type="12"/>
<f name="FC" table="LIS_ZKXMDY" type="12"/>
<f name="JG" type="12"/>
<f name="DLJG" type="12"/>
<f name="ZKBH" table="LIS_ZKXMDY" type="12"/>
<f name="DW" table="LIS_ZKXMDY" type="12"/>
<f name="JYSJ" type="93"/>
<f name="RJBH" type="-5"/>
<f name="SBH" type="12"/>
<f name="YBH" type="12"/>
<f name="DYSX" type="12"/>
<f name="JGLX" type="12"/>
</fields>
<parameter>
<p>12</p>
<p>12</p>
<p>12</p>
<p>12</p>
<p>93</p>
<p>93</p>
<p>12</p>
</parameter>
</dao>
<dao id="zkxmdao" type="1">
<sql>select
PKEY,ZKBH,SBH,XMBH,BAZ,FC,KSSJ,JSSJ,SYFF,CLBC,DW,DSJGHT,JGID,'' 显 from
LIS_ZKXMDY where SBH=? and XMBH=? and JGID=?</sql>
<tables>
<table delete="true" insert="true" name="LIS_ZKXMDY" update="true">
<primary>PKEY</primary>
<primary>ZKBH</primary>
<primary>SBH</primary>
<primary>XMBH</primary>
</table>
</tables>
<fields>
<f name="PKEY" table="LIS_ZKXMDY" type="-5" />
<f name="ZKBH" table="LIS_ZKXMDY" type="12" />
<f name="SBH" table="LIS_ZKXMDY" type="12" />
<f name="XMBH" table="LIS_ZKXMDY" type="12" />
<f name="BAZ" table="LIS_ZKXMDY" type="12" />
<f name="FC" table="LIS_ZKXMDY" type="12" />
<f name="KSSJ" table="LIS_ZKXMDY" type="93" />
<f name="JSSJ" table="LIS_ZKXMDY" type="93" />
<f name="SYFF" table="LIS_ZKXMDY" type="12" />
<f name="CLBC" table="LIS_ZKXMDY" type="12" />
<f name="DW" table="LIS_ZKXMDY" type="12" />
<f name="DSJGHT" table="LIS_ZKXMDY" type="12" />
<f name="JGID" table="LIS_ZKXMDY" type="12" />
<f name="显" type="12"/>
</fields>
<parameter>
<p>12</p>
<p>12</p>
<p>12</p>
</parameter>
</dao>
<dao id="allzkxmdao" type="1">
<sql>select distinct a.ZKBH,b.MC,a.XMBH,c.XMDH,c.XMMC
from LIS_ZKXMDY a,LIS_ZKP b,LIS_JYXM c
where a.ZKBH = b.BH and a.JGID=b.JGID and a.XMBH = c.XMBH
and a.JGID=? </sql>
<fields>
<f name="ZKBH" type="12" />
<f name="MC" type="12" />
<f name="XMBH" type="12" />
<f name="XMDH" type="12" />
<f name="XMMC" type="12" />
</fields>
<parameter>
<p>12</p>
</parameter>
</dao>
<dao id="sbzkxmdao" type="1">
<sql>select
a.PKEY,a.ZKBH,a.SBH,a.XMBH,a.BAZ,a.FC,a.KSSJ,a.JSSJ,a.SYFF,a.CLBC,a.DW,a.DSJGHT,a.JGID,b.MC,c.XMDH
from LIS_ZKXMDY a,LIS_ZKP b,LIS_JYXM c
where a.ZKBH = b.BH and a.JGID=b.JGID and a.XMBH = c.XMBH
and a.SBH=? and a.ZKBH=? and a.JGID=?</sql>
<tables>
<table delete="true" insert="true" name="LIS_ZKXMDY" update="true">
<primary>PKEY</primary>
<primary>ZKBH</primary>
<primary>SBH</primary>
<primary>XMBH</primary>
</table>
</tables>
<fields>
<f name="PKEY" table="LIS_ZKXMDY" type="-5" />
<f name="ZKBH" table="LIS_ZKXMDY" type="12" />
<f name="SBH" table="LIS_ZKXMDY" type="12" />
<f name="XMBH" table="LIS_ZKXMDY" type="12" />
<f name="BAZ" table="LIS_ZKXMDY" type="12" />
<f name="FC" table="LIS_ZKXMDY" type="12" />
<f name="KSSJ" table="LIS_ZKXMDY" type="93" />
<f name="JSSJ" table="LIS_ZKXMDY" type="93" />
<f name="SYFF" table="LIS_ZKXMDY" type="12" />
<f name="CLBC" table="LIS_ZKXMDY" type="12" />
<f name="DW" table="LIS_ZKXMDY" type="12" />
<f name="DSJGHT" table="LIS_ZKXMDY" type="12" />
<f name="JGID" table="LIS_ZKXMDY" type="12" />
<f name="MC" type="12" />
<f name="XMDH" type="12" />
</fields>
<parameter>
<p>12</p>
<p>12</p>
<p>12</p>
</parameter>
</dao>
<dao id="zkxmcxdao" type="1">
<sql>select PKEY,BAZ,FC,DW from LIS_ZKXMDY where JGID=? and ZKBH=? and SBH=? and XMBH=?</sql>
<fields>
<f name="PKEY" type="-5"/>
<f name="BAZ" type="12"/>
<f name="FC" type="12"/>
<f name="DW" type="12"/>
</fields>
<parameter>
<p>12</p>
<p>12</p>
<p>12</p>
<p>12</p>
</parameter>
</dao>
<dao id="xmzkgzdao" type="1">
<sql>select PKEY,ZKBH,SBH,XMBH,ZKGZ,JGID,BZ from LIS_ZKXMGZ
where ZKBH=? and SBH=? and XMBH=? and JGID=?</sql>
<tables>
<table delete="true" insert="true" name="LIS_ZKXMGZ" update="true">
<primary>PKEY</primary>
<primary>ZKBH</primary>
<primary>SBH</primary>
<primary>XMBH</primary>
<primary>ZKGZ</primary>
</table>
</tables>
<fields>
<f name="PKEY" table="LIS_ZKXMGZ" type="-5" />
<f name="ZKBH" table="LIS_ZKXMGZ" type="12" />
<f name="SBH" table="LIS_ZKXMGZ" type="12" />
<f name="XMBH" table="LIS_ZKXMGZ" type="12" />
<f name="ZKGZ" table="LIS_ZKXMGZ" type="12" />
<f name="JGID" table="LIS_ZKXMGZ" type="12" />
<f name="BZ" table="LIS_ZKXMGZ" type="12" />
</fields>
<parameter>
<p>12</p>
<p>12</p>
<p>12</p>
<p>12</p>
</parameter>
</dao>
<dao id="getzkpdydao" type="1">
<sql><![CDATA[select BH,MC from LIS_ZKP where nvl(YXJZRQ,SYSDATE) >= SYSDATE and JGID=?]]></sql>
<tables>
<table delete="false" insert="false" name="LIS_ZKP" update="false">
<primary>BH</primary>
</table>
</tables>
<fields>
<f name="BH" table="LIS_ZKP" type="12" />
<f name="MC" table="LIS_ZKP" type="12" />
</fields>
<parameter>
<p>12</p>
</parameter>
</dao>
<dao id="zkjysbdao" type="1">
<sql>select distinct a.SBH,b.YQMC from LIS_ZKXMDY a left join
LIS_YQSBDJ b on a.JGID=b.JGID and a.SBH=b.SBH where a.JGID=?
</sql>
<fields>
<f name="SBH" type="12"/>
<f name="YQMC" type="12"/>
</fields>
<parameter>
<p>12</p>
</parameter>
</dao>
<dao id="sbxmdao" type="1">
<sql>select a.PKEY,a.ZKBH,a.SBH,a.XMBH,a.BAZ,a.FC,a.KSSJ,a.JSSJ,a.SYFF,a.CLBC,a.DW,a.DSJGHT,a.JGID,b.MC,c.XMDH
from LIS_ZKXMDY a,LIS_ZKP b,LIS_JYXM c
where a.ZKBH = b.BH and a.JGID=b.JGID and a.XMBH = c.XMBH and a.SBH=? and a.JGID=?</sql>
<tables>
<table delete="true" insert="true" name="LIS_ZKXMDY" update="true">
<primary>PKEY</primary>
<primary>ZKBH</primary>
<primary>SBH</primary>
<primary>XMBH</primary>
</table>
</tables>
<fields>
<f name="PKEY" table="LIS_ZKXMDY" type="-5" />
<f name="ZKBH" table="LIS_ZKXMDY" type="12" />
<f name="SBH" table="LIS_ZKXMDY" type="12" />
<f name="XMBH" table="LIS_ZKXMDY" type="12" />
<f name="BAZ" table="LIS_ZKXMDY" type="12" />
<f name="FC" table="LIS_ZKXMDY" type="12" />
<f name="KSSJ" table="LIS_ZKXMDY" type="93" />
<f name="JSSJ" table="LIS_ZKXMDY" type="93" />
<f name="SYFF" table="LIS_ZKXMDY" type="12" />
<f name="CLBC" table="LIS_ZKXMDY" type="12" />
<f name="DW" table="LIS_ZKXMDY" type="12" />
<f name="DSJGHT" table="LIS_ZKXMDY" type="12" />
<f name="JGID" table="LIS_ZKXMDY" type="12" />
<f name="MC" type="12" />
<f name="XMDH" type="12" />
</fields>
<parameter>
<p>12</p>
<p>12</p>
</parameter>
</dao>
<dao id="zkpxxdao" type="1">
<sql>select BH,MC,PH,ND,YXJZRQ,JG,BZ,JGID from LIS_ZKP where JGID=? and BH=?</sql>
<fields>
<f name="BH" type="12"/>
<f name="MC" type="12" />
<f name="PH" type="12"/>
<f name="ND" type="12"/>
<f name="YXJZRQ" type="93"/>
<f name="JG" type="8"/>
<f name="BZ" type="12" />
<f name="JGID" type="12"/>
</fields>
<parameter>
<p>12</p>
<p>12</p>
</parameter>
</dao>
<dao id="zkjyxmdao" type="1">
<sql> select b.XMBH,b.XMMC,b.XMDH from LIS_ZKXMDY a,LIS_JYXM b
where a.XMBH=b.XMBH and a.JGID=? and a.SBH=? and a.ZKBH=?</sql>
<fields>
<f name="XMBH" type="12"/>
<f name="XMMC" type="12"/>
<f name="XMDH" type="12"/>
</fields>
<parameter>
<p>12</p>
<p>12</p>
<p>12</p>
</parameter>
</dao>
<dao id="zkjgdao" type="1">
<sql><![CDATA[select a.PKEY,a.ZKBH,a.SBH,a.XMBH,a.JYSJ,a.YBH,a.RJBH,a.JG,a.XH,a.CZR,a.CZSJ,a.BZ,a.JGID,b.BAZ,b.FC,b.DW,to_char(a.JYSJ,'yyyy-mm-dd') sjysj
from LIS_ZKJG a
left join LIS_ZKXMDY b on a.ZKBH =b.ZKBH and a.SBH =b.SBH and a.XMBH=b.XMBH and a.JGID=b.JGID
where a.ZKBH=? and a.SBH=? and a.JYSJ>=? and a.JYSJ<=? and a.YBH=? and a.XH=? and a.JGID=?
]]></sql>
<tables>
<table delete="true" insert="true" name="LIS_ZKJG" update="true">
<primary>SBH</primary>
<primary>JYSJ</primary>
<primary>RJBH</primary>
<primary>ZKBH</primary>
<primary>XMBH</primary>
<primary>YBH</primary>
<primary>PKEY</primary>
</table>
</tables>
<fields>
<f name="PKEY" table="LIS_ZKJG" type="-5"/>
<f name="ZKBH" table="LIS_ZKJG" type="12"/>
<f name="SBH" table="LIS_ZKJG" type="12"/>
<f name="XMBH" table="LIS_ZKJG" type="12"/>
<f name="JYSJ" table="LIS_ZKJG" type="93"/>
<f name="YBH" table="LIS_ZKJG" type="12"/>
<f name="RJBH" table="LIS_ZKJG" type="-5"/>
<f name="JG" table="LIS_ZKJG" type="12"/>
<f name="XH" table="LIS_ZKJG" type="12"/>
<f name="CZR" table="LIS_ZKJG" type="12"/>
<f name="CZSJ" table="LIS_ZKJG" type="93"/>
<f name="BZ" table="LIS_ZKJG" type="12"/>
<f name="JGID" table="LIS_ZKJG" type="12"/>
<f name="BAZ" type="12"/>
<f name="FC" type="12"/>
<f name="DW" type="12"/>
<f name="SJYSJ" type="12"/>
</fields>
<parameter>
<p>12</p>
<p>12</p>
<p>93</p>
<p>93</p>
<p>12</p>
<p>12</p>
<p>12</p>
</parameter>
</dao>
<dao id="zkjgdao2" type="1">
<sql><![CDATA[select a.PKEY,a.ZKBH,a.SBH,a.XMBH,a.JYSJ,a.YBH,a.RJBH,a.JG,a.XH,a.CZR,a.CZSJ,a.BZ,a.JGID,b.BAZ,b.FC,b.DW,to_char(a.JYSJ,'yyyy-mm-dd') sjysj
from LIS_ZKJG a
left join LIS_ZKXMDY b on a.ZKBH =b.ZKBH and a.SBH =b.SBH and a.XMBH=b.XMBH and a.JGID=b.JGID
where a.ZKBH=? and a.SBH=? and a.JYSJ>=? and a.JYSJ<=? and a.YBH=? and a.XH=? and a.JGID=? and a.RJBH=?
]]></sql>
<tables>
<table delete="true" insert="true" name="LIS_ZKJG" update="true">
<primary>SBH</primary>
<primary>JYSJ</primary>
<primary>RJBH</primary>
<primary>ZKBH</primary>
<primary>XMBH</primary>
<primary>YBH</primary>
<primary>PKEY</primary>
</table>
</tables>
<fields>
<f name="PKEY" table="LIS_ZKJG" type="-5"/>
<f name="ZKBH" table="LIS_ZKJG" type="12"/>
<f name="SBH" table="LIS_ZKJG" type="12"/>
<f name="XMBH" table="LIS_ZKJG" type="12"/>
<f name="JYSJ" table="LIS_ZKJG" type="93"/>
<f name="YBH" table="LIS_ZKJG" type="12"/>
<f name="RJBH" table="LIS_ZKJG" type="-5"/>
<f name="JG" table="LIS_ZKJG" type="12"/>
<f name="XH" table="LIS_ZKJG" type="12"/>
<f name="CZR" table="LIS_ZKJG" type="12"/>
<f name="CZSJ" table="LIS_ZKJG" type="93"/>
<f name="BZ" table="LIS_ZKJG" type="12"/>
<f name="JGID" table="LIS_ZKJG" type="12"/>
<f name="BAZ" type="12"/>
<f name="FC" type="12"/>
<f name="DW" type="12"/>
<f name="SJYSJ" type="12"/>
</fields>
<parameter>
<p>12</p>
<p>12</p>
<p>93</p>
<p>93</p>
<p>12</p>
<p>12</p>
<p>12</p>
<p>4</p>
</parameter>
</dao>
<dao id="zksjdao" type="1">
<sql><![CDATA[select distinct a.ZKBH,a.SBH,to_char(b.JYSJ,'yyyy-mm-dd') JYSJ,b.YBH,b.RJBH,b.XH from LIS_ZKXMDY a,LIS_ZKJG b
where a.SBH=b.SBH and a.ZKBH =b.ZKBH and a.XMBH=b.XMBH and a.JGID=b.JGID and a.SBH=? and a.ZKBH=? and b.JYSJ >=? and b.JYSJ <=? and a.JGID=? order by to_char(b.JYSJ,'yyyy-mm-dd') asc,b.XH asc,b.YBH asc
]]></sql>
<fields>
<f name="ZKBH" type="12"/>
<f name="SBH" type="12"/>
<f name="JYSJ" type="93"/>
<f name="YBH" type="12"/>
<f name="RJBH" type="-5"/>
<f name="XH" type="12"/>
</fields>
<parameter>
<p>12</p>
<p>12</p>
<p>93</p>
<p>93</p>
<p>12</p>
</parameter>
</dao>
<dao id="minzkjgdao" type="1">
<sql><![CDATA[select a.ZKBH,a.SBH,a.XMBH,a.JYSJ,a.JGID,a.JG,a.XH,a.YBH,a.BZ,b.BAZ,b.FC,b.DW,b.SYFF,b.CLBC,b.DSJGHT,to_char(a.JYSJ,'YYYY-MM-DD') jysjs from LIS_ZKJG a left join LIS_ZKXMDY b on a.ZKBH =b.ZKBH and a.SBH =b.SBH and a.XMBH=b.XMBH and a.JGID=b.JGID where a.ZKBH=? and a.SBH=? and a.XMBH=? and a.JYSJ>=? and a.JYSJ<=? and a.JGID=? and (a.XH = (select min(XH) FROM LIS_ZKJG c WHERE c.ZKBH =a.ZKBH AND c.SBH= a.SBH AND c.JYSJ=a.JYSJ AND c.XMBH=a.XMBH and c.JGID=a.JGID )) order by a.JYSJ asc ]]></sql>
<tables>
<table delete="false" insert="false" name="LIS_ZKJG" update="false">
<primary>ZKBH</primary>
</table>
</tables>
<fields>
<f name="ZKBH" table="LIS_ZKJG" type="12"/>
<f name="SBH" table="LIS_ZKJG" type="12"/>
<f name="XMBH" table="LIS_ZKJG" type="12"/>
<f name="JYSJ" table="LIS_ZKJG" type="93"/>
<f name="JGID" table="LIS_ZKJG" type="12"/>
<f name="JG" table="LIS_ZKJG" type="12"/>
<f name="XH" table="LIS_ZKJG" type="12"/>
<f name="YBH" table="LIS_ZKJG" type="12"/>
<f name="BZ" table="LIS_ZKJG" type="12"/>
<f name="BAZ" type="12"/>
<f name="FC" type="12"/>
<f name="DW" type="12"/>
<f name="SYFF" type="12"/>
<f name="CLBC" type="12"/>
<f name="DSJGHT" type="12"/>
<f name="jysjs" type="12"/>
</fields>
<parameter>
<p>12</p>
<p>12</p>
<p>12</p>
<p>93</p>
<p>93</p>
<p>12</p>
</parameter>
</dao>
<dao id="maxzkjgdao" type="1">
<sql><![CDATA[select a.ZKBH,a.SBH,a.XMBH,a.JYSJ,a.JGID,a.JG,a.XH,a.YBH,a.BZ,b.BAZ,b.FC,b.DW,b.SYFF,b.CLBC,b.DSJGHT,to_char(a.JYSJ,'YYYY-MM-DD') jysjs from LIS_ZKJG a left join LIS_ZKXMDY b on a.ZKBH =b.ZKBH and a.SBH =b.SBH and a.XMBH=b.XMBH and a.JGID=b.JGID where a.ZKBH=? and a.SBH=? and a.XMBH=? and a.JYSJ>=? and a.JYSJ<=? and a.JGID=? and (a.XH = (select max(XH) FROM LIS_ZKJG c WHERE c.ZKBH =a.ZKBH AND c.SBH= a.SBH AND c.JYSJ=a.JYSJ AND c.XMBH=a.XMBH and c.JGID=a.JGID )) order by a.JYSJ asc ]]></sql>
<tables>
<table delete="false" insert="false" name="LIS_ZKJG" update="false">
<primary>ZKBH</primary>
</table>
</tables>
<fields>
<f name="ZKBH" table="LIS_ZKJG" type="12"/>
<f name="SBH" table="LIS_ZKJG" type="12"/>
<f name="XMBH" table="LIS_ZKJG" type="12"/>
<f name="JYSJ" table="LIS_ZKJG" type="93"/>
<f name="JGID" table="LIS_ZKJG" type="12"/>
<f name="JG" table="LIS_ZKJG" type="12"/>
<f name="XH" table="LIS_ZKJG" type="12"/>
<f name="YBH" table="LIS_ZKJG" type="12"/>
<f name="BZ" table="LIS_ZKJG" type="12"/>
<f name="BAZ" type="12"/>
<f name="FC" type="12"/>
<f name="DW" type="12"/>
<f name="SYFF" type="12"/>
<f name="CLBC" type="12"/>
<f name="DSJGHT" type="12"/>
<f name="jysjs" type="12"/>
</fields>
<parameter>
<p>12</p>
<p>12</p>
<p>12</p>
<p>93</p>
<p>93</p>
<p>12</p>
</parameter>
</dao>
<dao id="avgzkjgdao" type="1">
<sql><![CDATA[select a.ZKBH,a.SBH,a.XMBH,a.JYSJ,a.JGID,avg(a.JG) JG,'1' XH,'' YBH,a.BZ,b.BAZ,b.FC,b.DW,b.SYFF,b.CLBC,b.DSJGHT,to_char(a.JYSJ,'YYYY-MM-DD') jysjs from LIS_ZKJG a left join LIS_ZKXMDY b on a.ZKBH =b.ZKBH and a.SBH =b.SBH and a.XMBH=b.XMBH and a.JGID=b.JGID
where a.ZKBH=? and a.SBH=? and a.XMBH=? and a.JYSJ>=? and a.JYSJ<=? and a.JGID=?
group by a.ZKBH,a.SBH,a.XMBH,a.JYSJ,a.JGID,a.BZ,b.BAZ,b.FC,b.DW,b.SYFF,b.CLBC,b.DSJGHT order by a.JYSJ asc ]]></sql>
<tables>
<table delete="false" insert="false" name="LIS_ZKJG" update="false">
<primary>ZKBH</primary>
</table>
</tables>
<fields>
<f name="ZKBH" table="LIS_ZKJG" type="12"/>
<f name="SBH" table="LIS_ZKJG" type="12"/>
<f name="XMBH" table="LIS_ZKJG" type="12"/>
<f name="JYSJ" table="LIS_ZKJG" type="93"/>
<f name="JGID" table="LIS_ZKJG" type="12"/>
<f name="JG" table="LIS_ZKJG" type="12"/>
<f name="XH" table="LIS_ZKJG" type="12"/>
<f name="YBH" table="LIS_ZKJG" type="12"/>
<f name="BZ" table="LIS_ZKJG" type="12"/>
<f name="BAZ" type="12"/>
<f name="FC" type="12"/>
<f name="DW" type="12"/>
<f name="SYFF" type="12"/>
<f name="CLBC" type="12"/>
<f name="DSJGHT" type="12"/>
<f name="jysjs" type="12"/>
</fields>
<parameter>
<p>12</p>
<p>12</p>
<p>12</p>
<p>93</p>
<p>93</p>
<p>12</p>
</parameter>
</dao>
<dao id="allzkjgdao" type="1">
<sql><![CDATA[select a.ZKBH,a.SBH,a.XMBH,a.JYSJ,a.JGID,a.JG,a.XH,a.YBH,a.RJBH,a.BZ,b.BAZ,b.FC,b.DW,b.SYFF,b.CLBC,b.DSJGHT,to_char(a.JYSJ,'YYYY-MM-DD') jysjs from LIS_ZKJG a left join LIS_ZKXMDY b on a.ZKBH =b.ZKBH and a.SBH =b.SBH and a.XMBH=b.XMBH and a.JGID=b.JGID where a.ZKBH=? and a.SBH=? and a.XMBH=? and a.JYSJ>=? and a.JYSJ<=? and a.JGID=? order by a.JYSJ asc ]]></sql>
<tables>
<table delete="false" insert="false" name="LIS_ZKJG" update="false">
<primary>ZKBH</primary>
</table>
</tables>
<fields>
<f name="ZKBH" table="LIS_ZKJG" type="12"/>
<f name="SBH" table="LIS_ZKJG" type="12"/>
<f name="XMBH" table="LIS_ZKJG" type="12"/>
<f name="JYSJ" table="LIS_ZKJG" type="93"/>
<f name="JGID" table="LIS_ZKJG" type="12"/>
<f name="JG" table="LIS_ZKJG" type="12"/>
<f name="XH" table="LIS_ZKJG" type="12"/>
<f name="YBH" table="LIS_ZKJG" type="12"/>
<f name="RJBH" table="LIS_ZKJG" type="-5"/>
<f name="BZ" table="LIS_ZKJG" type="12"/>
<f name="BAZ" type="12"/>
<f name="FC" type="12"/>
<f name="DW" type="12"/>
<f name="SYFF" type="12"/>
<f name="CLBC" type="12"/>
<f name="DSJGHT" type="12"/>
<f name="jysjs" type="12"/>
</fields>
<parameter>
<p>12</p>
<p>12</p>
<p>12</p>
<p>93</p>
<p>93</p>
<p>12</p>
</parameter>
</dao>
<dao id="zkbzfcdao" type="1">
<sql>select
ID,ZKBH,SBH,XMBH,KSSJ,JSSJ,BAZ,FC,CZR,CZSJ,XGR,XGSJ,JGID from
LIS_ZKBZFC where SBH=? and XMBH=? and to_char(KSSJ,'YYYYMMDD')=? and
to_char(JSSJ,'YYYYMMDD')=? and JGID=? </sql>
<tables>
<table name="LIS_ZKBZFC" insert="true" update="true" delete="true">
<primary>ID</primary>
</table>
</tables>
<fields>
<f name="ID" type="-5" table="LIS_ZKBZFC" />
<f name="ZKBH" type="12" table="LIS_ZKBZFC" />
<f name="SBH" type="12" table="LIS_ZKBZFC" />
<f name="XMBH" type="12" table="LIS_ZKBZFC" />
<f name="KSSJ" type="93" table="LIS_ZKBZFC" />
<f name="JSSJ" type="93" table="LIS_ZKBZFC" />
<f name="BAZ" type="12" table="LIS_ZKBZFC" />
<f name="FC" type="12" table="LIS_ZKBZFC" />
<f name="CZR" type="12" table="LIS_ZKBZFC" />
<f name="CZSJ" type="93" table="LIS_ZKBZFC" />
<f name="XGR" type="12" table="LIS_ZKBZFC" />
<f name="XGSJ" type="93" table="LIS_ZKBZFC" />
<f name="JGID" type="12" table="LIS_ZKBZFC" />
</fields>
<parameter>
<p>12</p>
<p>12</p>
<p>12</p>
<p>12</p>
<p>12</p>
</parameter>
</dao>
<dao id="jyxmsqdaoOne" type="1">
<sql>select a.pkey,a.LSH,a.TMH,a.ZHXM,a.DJYS,a.DJSJ,a.CYYS,a.CYSJ,a.QSYS,a.QSSJ,a.JYZT,a.JGID,a.DYSJ,j.SGLX,j.YBLX,j.GW,b.MC XMMC,c.QZ,b.BM
,j.QTJG,j.QTJGBM,j.ISYW,a.WSQRBZ,a.WSQRYS,a.WSQRSJ,a.YSBZ,a.YSRY,a.YSSJ,a.BTMH
from LIS_JYXMSQ a
left join HIS_YZX_JCJY j on a.JGID=j.JGID and a.ZHXM=j.YZXPKEY
left join HIS_YZX b on b.JGID=j.JGID and b.BM=j.YZXPKEY
left join LIS_SGLX c on c.JGID =j.JGID and c.BH =j.SGLX
where a.JGID =? and a.LSH=? and a.TMH=?</sql>
<tables>
<table delete="true" insert="true" name="LIS_JYXMSQ" update="true">
<primary>LSH</primary>
<primary>ZHXM</primary>
<primary>PKEY</primary>
</table>
</tables>
<fields>
<f name="PKEY" table="LIS_JYXMSQ" type="-5"/>
<f name="LSH" table="LIS_JYXMSQ" type="12"/>
<f name="TMH" table="LIS_JYXMSQ" type="12"/>
<f name="ZHXM" table="LIS_JYXMSQ" type="12"/>
<f name="DJYS" table="LIS_JYXMSQ" type="12"/>
<f name="DJSJ" table="LIS_JYXMSQ" type="93"/>
<f name="CYYS" table="LIS_JYXMSQ" type="12"/>
<f name="CYSJ" table="LIS_JYXMSQ" type="93"/>
<f name="QSYS" table="LIS_JYXMSQ" type="12"/>
<f name="QSSJ" table="LIS_JYXMSQ" type="93"/>
<f name="JYZT" table="LIS_JYXMSQ" type="12"/>
<f name="JGID" table="LIS_JYXMSQ" type="12"/>
<f name="DYSJ" table="LIS_JYXMSQ" type="93"/>
<f name="SGLX" type="12"/>
<f name="YBLX" type="12"/>
<f name="GW" type="12"/>
<f name="XMMC" type="12"/>
<f name="QZ" type="12"/>
<f name="BM" type="12"/>
<f name="QTJG" type="12"/>
<f name="QTJGBM" type="12"/>
<f name="ISYW" type="12"/>
<f name="WSQRBZ" table="LIS_JYXMSQ" type="12"/>
<f name="WSQRYS" table="LIS_JYXMSQ" type="12"/>
<f name="WSQRSJ" table="LIS_JYXMSQ" type="93"/>
<f name="YSBZ" table="LIS_JYXMSQ" type="12"/>
<f name="YSRY" table="LIS_JYXMSQ" type="12"/>
<f name="YSSJ" table="LIS_JYXMSQ" type="93"/>
<f name="BTMH" table="LIS_JYXMSQ" type="12"/>
</fields>
<parameter>
<p>12</p>
<p>12</p>
<p>12</p>
</parameter>
</dao>
<dao id="jyxmsqdaoTwo" type="1" memo="院外项目">
<sql>select a.pkey,a.LSH,a.TMH,a.ZHXM,a.DJYS,a.DJSJ,a.CYYS,a.CYSJ,a.QSYS,a.QSSJ,a.JYZT,a.JGID,a.DYSJ,j.SGLX,j.YBLX,j.GW,b.MC XMMC,c.QZ,b.BM
,j.QTJG,j.QTJGBM,j.ISYW,a.WSQRBZ,a.WSQRYS,a.WSQRSJ,a.YSBZ,a.YSRY,a.YSSJ,a.BTMH
from LIS_JYXMSQ a
left join HIS_YZX_JCJY j on a.JGID=j.JGID and a.ZHXM=j.YZXPKEY
left join HIS_YZX b on b.JGID=j.JGID and b.BM=j.YZXPKEY
left join LIS_SGLX c on c.JGID =j.JGID and c.BH =j.SGLX
where a.QTJG =? and a.LSH=? and a.TMH=?</sql>
<tables>
<table delete="true" insert="true" name="LIS_JYXMSQ" update="true">
<primary>LSH</primary>
<primary>ZHXM</primary>
<primary>PKEY</primary>
</table>
</tables>
<fields>
<f name="PKEY" type="-5" table="LIS_JYXMSQ" />
<f name="LSH" type="12" table="LIS_JYXMSQ" />
<f name="TMH" type="12" table="LIS_JYXMSQ" />
<f name="ZHXM" type="12" table="LIS_JYXMSQ" />
<f name="DJYS" type="12" table="LIS_JYXMSQ" />
<f name="DJSJ" type="93" table="LIS_JYXMSQ" />
<f name="CYYS" type="12" table="LIS_JYXMSQ" />
<f name="CYSJ" type="93" table="LIS_JYXMSQ" />
<f name="QSYS" type="12" table="LIS_JYXMSQ" />
<f name="QSSJ" type="93" table="LIS_JYXMSQ" />
<f name="JYZT" type="12" table="LIS_JYXMSQ" />
<f name="JGID" type="12" table="LIS_JYXMSQ" />
<f name="DYSJ" type="93" table="LIS_JYXMSQ" />
<f name="SGLX" type="12" />
<f name="YBLX" type="12" />
<f name="GW" type="12" />
<f name="XMMC" type="12" />
<f name="QZ" type="12" />
<f name="BM" type="12" />
<f name="QTJG" type="12" table="LIS_JYXMSQ" />
<f name="QTJGBM" type="12" table="LIS_JYXMSQ" />
<f name="ISYW" type="12" />
<f name="WSQRBZ" type="12" table="LIS_JYXMSQ" />
<f name="WSQRYS" type="12" table="LIS_JYXMSQ" />
<f name="WSQRSJ" type="93" table="LIS_JYXMSQ" />
<f name="YSBZ" type="12" table="LIS_JYXMSQ" />
<f name="YSRY" type="12" table="LIS_JYXMSQ" />
<f name="YSSJ" type="93" table="LIS_JYXMSQ" />
<f name="BTMH" type="12" table="LIS_JYXMSQ" />
</fields>
<parameter>
<p>12</p>
<p>12</p>
<p>12</p>
</parameter>
</dao>
<dao id="jyxmsqdao" type="1">
<sql>select
a.pkey,a.LSH,a.TMH,a.ZHXM,a.DJYS,a.DJSJ,a.CYYS,a.CYSJ,a.QSYS,a.QSSJ,a.JYZT,a.JGID,a.DYSJ,j.SGLX,j.YBLX,j.GW,b.MC XMMC,c.QZ,b.BM
,j.QTJG,j.QTJGBM,j.ISYW
from LIS_JYXMSQ a
left join HIS_YZX_JCJY j on a.JGID=j.JGID and a.ZHXM=j.YZXPKEY
left join HIS_YZX b on b.JGID=j.JGID and b.BM=j.YZXPKEY
left join LIS_SGLX c on c.JGID =j.JGID and c.BH =j.SGLX
where a.JGID=? and a.LSH=? and a.TMH=?
union
select
a.pkey,a.LSH,a.TMH,a.ZHXM,a.DJYS,a.DJSJ,a.CYYS,a.CYSJ,a.QSYS,a.QSSJ,a.JYZT,a.JGID,a.DYSJ,j.SGLX,j.YBLX,j.GW,b.MC XMMC,c.QZ,b.BM
,j.QTJG,j.QTJGBM,j.ISYW
from LIS_JYXMSQ a
left join HIS_YZX_JCJY j on a.JGID=j.JGID and a.ZHXM=j.YZXPKEY
left join HIS_YZX b on b.JGID=j.JGID and b.BM=j.YZXPKEY
left join LIS_SGLX c on c.JGID =j.JGID and c.BH =j.SGLX
where a.QTJG=? and a.LSH=? and a.TMH=?
</sql>
<tables>
<table delete="true" insert="true" name="LIS_JYXMSQ" update="true">
<primary>LSH</primary>
<primary>ZHXM</primary>
<primary>PKEY</primary>
</table>
</tables>
<fields>
<f name="PKEY" type="-5" table="LIS_JYXMSQ" />
<f name="LSH" type="12" table="LIS_JYXMSQ" />
<f name="TMH" type="12" table="LIS_JYXMSQ" />
<f name="ZHXM" type="12" table="LIS_JYXMSQ" />
<f name="DJYS" type="12" table="LIS_JYXMSQ" />
<f name="DJSJ" type="93" table="LIS_JYXMSQ" />
<f name="CYYS" type="12" table="LIS_JYXMSQ" />
<f name="CYSJ" type="93" table="LIS_JYXMSQ" />
<f name="QSYS" type="12" table="LIS_JYXMSQ" />
<f name="QSSJ" type="93" table="LIS_JYXMSQ" />
<f name="JYZT" type="12" table="LIS_JYXMSQ" />
<f name="JGID" type="12" table="LIS_JYXMSQ" />
<f name="DYSJ" type="93" table="LIS_JYXMSQ" />
<f name="SGLX" type="12" />
<f name="YBLX" type="12" />
<f name="GW" type="12" />
<f name="XMMC" type="12" />
<f name="QZ" type="12" />
<f name="BM" type="12" />
<f name="QTJG" type="12" table="LIS_JYXMSQ" />
<f name="QTJGBM" type="12" table="LIS_JYXMSQ" />
<f name="ISYW" type="12" />
</fields>
<parameter>
<p>12</p>
<p>12</p>
<p>12</p>
<p>12</p>
<p>12</p>
<p>12</p>
</parameter>
</dao>
<dao id="jsxxdao" type="1">
<sql><![CDATA[select pkey,TMH,XM,XB,KBM,KLS,BRLX,BQ,CH,BLH,JYXM,SJKS,SJYS,SJSJ,JSYS,JSSJ,JSYY,BZ,JGID,YJYZT from LIS_JSXX where JGID=? and JSSJ>=? and JSSJ<=? and TMH like ? and JSYS like ? and JSYY like ?]]></sql>
<tables>
<table delete="true" insert="true" name="LIS_JSXX" update="true">
<primary>TMH</primary>
<primary>PKEY</primary>
</table>
</tables>
<fields>
<f name="PKEY" table="LIS_JSXX" type="-5"/>
<f name="TMH" table="LIS_JSXX" type="12"/>
<f name="XM" table="LIS_JSXX" type="12"/>
<f name="XB" table="LIS_JSXX" type="12"/>
<f name="KBM" table="LIS_JSXX" type="12"/>
<f name="KLS" table="LIS_JSXX" type="12"/>
<f name="BRLX" table="LIS_JSXX" type="12"/>
<f name="BQ" table="LIS_JSXX" type="12"/>
<f name="CH" table="LIS_JSXX" type="12"/>
<f name="BLH" table="LIS_JSXX" type="12"/>
<f name="JYXM" table="LIS_JSXX" type="12"/>
<f name="SJKS" table="LIS_JSXX" type="12"/>
<f name="SJYS" table="LIS_JSXX" type="12"/>
<f name="SJSJ" table="LIS_JSXX" type="93"/>
<f name="JSYS" table="LIS_JSXX" type="12"/>
<f name="JSSJ" table="LIS_JSXX" type="93"/>
<f name="JSYY" table="LIS_JSXX" type="12"/>
<f name="BZ" table="LIS_JSXX" type="12"/>
<f name="JGID" table="LIS_JSXX" type="12"/>
<f name="YJYZT" table="LIS_JSXX" type="12"/>
</fields>
<parameter>
<p>12</p>
<p>93</p>
<p>93</p>
<p>12</p>
<p>12</p>
<p>12</p>
</parameter>
</dao>
<dao id="querysgyblx" type="1">
<sql>select j.SGLX,j.YBLX from LIS_JYXMSQ t
left join HIS_YZX_JCJY j on t.JGID=j.QTJG and t.ZHXM=j.QTJGBM
where t.JGID =? and t.BTMH=? group by j.SGLX,j.YBLX</sql>
<fields>
<f name="SGLX" type="12" />
<f name="YBLX" type="12" />
</fields>
<parameter>
<p>12</p>
<p>12</p>
</parameter>
</dao>
<dao id="yqhbQuerydao" type="1" memo="仪器合并dao">
<sql><![CDATA[select distinct a.TMH,a.QSSJ,t3.XMBH,t3.XMMC,t3.XMDH,t3.XMFL,t3.JGLX,b.jyff,
b.MRJG,t3.JYDW,b.frbz,y.BM rkey,y.MC,c.DYSX from LIS_JYBRXX a
left join LIS_JYXMSQ t on a.JGID = t.JGID and a.TMH = t.TMH
left join HIS_YZX_JCJY j on t.JGID=j.JGID and t.ZHXM=j.YZXPKEY
left join HIS_YZX y on y.JGID=j.JGID and y.BM=j.YZXPKEY
left join LIS_JYXMDZ t2 on y.JGID = t2.JGID and y.BM = t2.DXBH
left join LIS_JYXM t3 on t2.XXBH = t3.XMBH
left join lisfrxm b on t3.XMBH =b.xmbh and b.JGID =a.JGID
left join LIS_YQXMSZ c on c.JGID =a.JGID and c.JYXM =t3.XMBH and c.YQDM=?
where a.BLH=? and a.JGID=? and j.XMFL=? and j.ISLIS='1' and (a.SJBZ is null or a.SJBZ='0') and TO_CHAR(a.QSSJ, 'yyyy-mm-dd')=?
order by a.QSSJ desc]]></sql>
<fields>
<f name="TMH" type="12" />
<f name="QSSJ" type="93" />
<f name="XMBH" type="12" />
<f name="XMMC" type="12" />
<f name="XMDH" type="12" />
<f name="XMFL" type="12" />
<f name="JGLX" type="12" />
<f name="JYFF" type="12" />
<f name="MRJG" type="12" />
<f name="JYDW" type="12" />
<f name="FRBZ" type="12" />
<f name="RKEY" type="12" />
<f name="MC" type="12" />
<f name="DYSX" type="-5" />
</fields>
<parameter>
<p>12</p>
<p>12</p>
<p>12</p>
<p>12</p>
<p>12</p>
</parameter>
</dao>
<dao id="jyjgbdao" type="1">
<sql>select
t2.XMMC as MC,t2.XMBH,t2.XMDH,nvl(a.jydw,t2.JYDW) as JYDW,t.SBH,t.YBH,t.XMBM,t.RJBH,t.JYSJ,t.YQNBM,t.JG,t.JGLX,t.DLJG,t.TXJG,t.DYSX 打印顺序lec,nvl(t.CKZ,t2.CKZ) CKZ,t.TSXX,t.SFSCCG,t.SCSJ,t.CSCS,t.JGID,t3.DYSX,t.HRBZ,t.JYFF,
t.DXMBM,t.DXMMC,t.XMMC,t.JYDW as dw,t.XMDH as dh,t.XMTYPE,t.WJZBZ,'0' isup
from LIS_JYJG t left join LIS_JYXM t2 on t.XMBM = t2.XMBH
left join LIS_YQSBDJ y on t.JGID = y.JGID and t.SBH = y.SBH
left join LIS_YQXMSZ t3 on t.JGID = t3.JGID and t.XMBM = t3.JYXM and y.QDLX = t3.YQDM
left join lisfrxm a on t2.XMBH =a.xmbh and a.JGID =?
where t.JGID=? and t.SBH = ? and t.YBH = ? and t.RJBH = ?
order by t.DYSX,t.XMBM asc
</sql>
<tables>
<table delete="true" insert="true" name="LIS_JYJG" update="true">
<primary>JGID</primary>
<primary>SBH</primary>
<primary>RJBH</primary>
<primary>YBH</primary>
<primary>XMBM</primary>
</table>
</tables>
<fields>
<f name="MC" type="12"/>
<f name="XMBH" type="12"/>
<f name="XMDH" type="12"/>
<f name="JYDW" type="12"/>
<f name="SBH" table="LIS_JYJG" type="12"/>
<f name="YBH" table="LIS_JYJG" type="12"/>
<f name="XMBM" table="LIS_JYJG" type="12"/>
<f name="RJBH" table="LIS_JYJG" type="-5"/>
<f name="JYSJ" table="LIS_JYJG" type="93"/>
<f name="YQNBM" table="LIS_JYJG" type="12"/>
<f name="JG" table="LIS_JYJG" type="12"/>
<f name="JGLX" table="LIS_JYJG" type="12"/>
<f name="DLJG" table="LIS_JYJG" type="12"/>
<f name="TXJG" table="LIS_JYJG" type="12"/>
<f name="打印顺序lec" schemaname="DYSX" table="LIS_JYJG" type="-5"/>
<f name="CKZ" table="LIS_JYJG" type="12"/>
<f name="TSXX" table="LIS_JYJG" type="12"/>
<f name="SFSCCG" table="LIS_JYJG" type="12"/>
<f name="SCSJ" table="LIS_JYJG" type="93"/>
<f name="CSCS" table="LIS_JYJG" type="-5"/>
<f name="JGID" table="LIS_JYJG" type="12"/>
<f name="DYSX" type="4"/>
<f name="HRBZ" table="LIS_JYJG" type="12"/>
<f name="JYFF" table="LIS_JYJG" type="12"/>
<f name="DXMBM" table="LIS_JYJG" type="12"/>
<f name="DXMMC" table="LIS_JYJG" type="12"/>
<f name="XMMC" table="LIS_JYJG" type="12"/>
<f name="dw" schemaname="JYDW" table="LIS_JYJG" type="12"/>
<f name="dh" schemaname="XMDH" table="LIS_JYJG" type="12"/>
<f name="XMTYPE" table="LIS_JYJG" type="12"/>
<f name="WJZBZ" table="LIS_JYJG" type="12"/>
<f name="isup" type="12"/>
</fields>
<parameter>
<p>12</p>
<p>12</p>
<p>12</p>
<p>12</p>
<p>4</p>
</parameter>
</dao>
<dao id="jyjgbTowdao" type="1">
<sql>select
t.XMMC,t.SBH,t.YBH,t.XMBM,t.RJBH,t.JYSJ,t.XMDH,t.JG,t.JGLX,t.DLJG,t.TXJG,t.DYSX 打印顺序lec,t.CKZ,t.TSXX,t.SFSCCG,t.SCSJ,t.CSCS,t.JGID,
t.DXMBM,t.DXMMC,nvl(a.jydw,t.JYDW) as JYDW,t.DYSX,t.HRBZ,t.JYFF,t.XMTYPE,t.WJZBZ,'' as dw,'' as dh,'0' isup
from LIS_JYJG t left join lisfrxm a on t.XMBM=a.xmbh and a.JGID = ? where t.JGID=? and t.SBH = ? and t.YBH = ? and t.RJBH = ?
</sql>
<tables>
<table delete="true" insert="true" name="LIS_JYJG" update="true">
<primary>JGID</primary>
<primary>SBH</primary>
<primary>RJBH</primary>
<primary>YBH</primary>
<primary>XMBM</primary>
</table>
</tables>
<fields>
<f name="XMMC" table="LIS_JYJG" type="12"/>
<f name="SBH" table="LIS_JYJG" type="12"/>
<f name="YBH" table="LIS_JYJG" type="12"/>
<f name="XMBM" table="LIS_JYJG" type="12"/>
<f name="RJBH" table="LIS_JYJG" type="-5"/>
<f name="JYSJ" table="LIS_JYJG" type="93"/>
<f name="XMDH" table="LIS_JYJG" type="12"/>
<f name="JG" table="LIS_JYJG" type="12"/>
<f name="JGLX" table="LIS_JYJG" type="12"/>
<f name="DLJG" table="LIS_JYJG" type="12"/>
<f name="TXJG" table="LIS_JYJG" type="12"/>
<f name="打印顺序lec" schemaname="DYSX" table="LIS_JYJG" type="-5"/>
<f name="CKZ" table="LIS_JYJG" type="12"/>
<f name="TSXX" table="LIS_JYJG" type="12"/>
<f name="SFSCCG" table="LIS_JYJG" type="12"/>
<f name="SCSJ" table="LIS_JYJG" type="93"/>
<f name="CSCS" table="LIS_JYJG" type="-5"/>
<f name="JGID" table="LIS_JYJG" type="12"/>
<f name="DXMBM" table="LIS_JYJG" type="12"/>
<f name="DXMMC" table="LIS_JYJG" type="12"/>
<f name="JYDW" table="LIS_JYJG" type="12"/>
<f name="DYSX" type="4"/>
<f name="HRBZ" table="LIS_JYJG" type="12"/>
<f name="JYFF" table="LIS_JYJG" type="12"/>
<f name="XMTYPE" table="LIS_JYJG" type="12"/>
<f name="WJZBZ" table="LIS_JYJG" type="12"/>
<f name="dw" type="12"/>
<f name="dh" type="12"/>
<f name="isup" type="12"/>
</fields>
<parameter>
<p>12</p>
<p>12</p>
<p>12</p>
<p>12</p>
<p>4</p>
</parameter>
</dao>
<dao id="jyjgbysbdao" type="1">
<sql>select a.TMH,a.XM,b.SBH,b.YBH,b.XMBM,b.RJBH,b.JYSJ,b.YQNBM,b.JG,b.JGLX,b.DLJG,b.TXJG,b.DYSX,b.CKZ,b.TSXX,b.SFSCCG,b.SCSJ,b.CSCS,b.JGID
from LIS_JYJG b
left join LIS_BRJYXX a on a.JGID = b.JGID and a.YBH=b.YBH and a.RJBH=b.RJBH and a.SBH=b.SBH
where b.JGID=? and b.SBH=? and b.RJBH=? </sql>
<tables>
<table delete="true" insert="true" name="LIS_JYJG" update="true">
<primary>SBH</primary>
<primary>YBH</primary>
<primary>XMBM</primary>
</table>
</tables>
<fields>
<f name="TMH" type="12"/>
<f name="XM" type="12"/>
<f name="SBH" table="LIS_JYJG" type="12"/>
<f name="YBH" table="LIS_JYJG" type="12"/>
<f name="XMBM" table="LIS_JYJG" type="12"/>
<f name="RJBH" table="LIS_JYJG" type="-5"/>
<f name="JYSJ" table="LIS_JYJG" type="93"/>
<f name="YQNBM" table="LIS_JYJG" type="12"/>
<f name="JG" table="LIS_JYJG" type="12"/>
<f name="JGLX" table="LIS_JYJG" type="12"/>
<f name="DLJG" table="LIS_JYJG" type="12"/>
<f name="TXJG" table="LIS_JYJG" type="12"/>
<f name="DYSX" table="LIS_JYJG" type="-5"/>
<f name="CKZ" table="LIS_JYJG" type="12"/>
<f name="TSXX" table="LIS_JYJG" type="12"/>
<f name="SFSCCG" table="LIS_JYJG" type="12"/>
<f name="SCSJ" table="LIS_JYJG" type="93"/>
<f name="CSCS" table="LIS_JYJG" type="-5"/>
<f name="JGID" table="LIS_JYJG" type="12"/>
</fields>
<parameter>
<p>12</p>
<p>12</p>
<p>12</p>
</parameter>
</dao>
<dao id="brjyxxdglrdao" type="1">
<sql><![CDATA[select distinct '' YBH,t.LSH,t.TMH,t.BLH,t.KBM,t.KLS,t.BQ,t.CH,t.BRLX,
t.XM,t.XB,t.NL,t.CSRQ,t.NLDW,t.JZ,t.JJ,t.SJKS,t.SJYS,t.SJSJ,
t.DJYS,t.DJSJ,t.CYYS,t.CYSJ,t.CYBZ,t.QSYS,t.QSSJ,t.QSBZ,
t.JGID,t.DYBZ,t.DYCS,t.JYZT,t.SJBZ,jy.YBLX YBLX,t.ZJHM ,t2.MC
from LIS_JYBRXX t
left join LIS_JYXMSQ j on t.JGID = j.JGID and t.TMH = j.TMH and t.LSH = j.LSH
left join HIS_YZX_JCJY jy on j.JGID=jy.JGID and j.ZHXM=jy.YZXPKEY
left join HIS_YZX t2 on t2.JGID=jy.JGID and t2.BM=jy.YZXPKEY
where t.JGID = ? and jy.XMFL in (select q.YQDL from LIS_YQSBDJ y
left join LIS_QDCSPZ q on q.JGID = y.JGID and q.YQDM = y.QDLX
where y.JGID = t.JGID and y.SBH = ?)
and t.DJSJ >= ?
and t.DJSJ <= ? and t.TMH not in (select TMH from LIS_BRJYXX where JGID = ? and JYYQ = ? and TMH is not null)
and (t.XM like ? or t.TMH like ? or t.BLH like ?)
order by t.BRLX,t.LSH
]]>
</sql>
<fields>
<f name="YBH" type="12"/>
<f name="LSH" type="12"/>
<f name="TMH" type="12"/>
<f name="BLH" type="12"/>
<f name="KBM" type="12"/>
<f name="KLS" type="12"/>
<f name="BQ" type="12"/>
<f name="CH" type="12"/>
<f name="BRLX" type="12"/>
<f name="XM" type="12"/>
<f name="XB" type="12"/>
<f name="NL" type="12"/>
<f name="CSRQ" type="93"/>
<f name="NLDW" type="12"/>
<f name="JZ" type="12"/>
<f name="JJ" type="12"/>
<f name="SJKS" type="12"/>
<f name="SJYS" type="12"/>
<f name="SJSJ" type="93"/>
<f name="DJYS" type="12"/>
<f name="DJSJ" type="93"/>
<f name="CYYS" type="12"/>
<f name="CYSJ" type="93"/>
<f name="CYBZ" type="12"/>
<f name="QSYS" type="12"/>
<f name="QSSJ" type="93"/>
<f name="QSBZ" type="12"/>
<f name="JGID" type="12"/>
<f name="DYBZ" type="12"/>
<f name="DYCS" type="-5"/>
<f name="JYZT" type="12"/>
<f name="SJBZ" type="12"/>
<f name="YBLX" type="12"/>
<f name="ZJHM" type="12"/>
<f name="MC" type="12"/>
</fields>
<parameter>
<p>12</p>
<p>12</p>
<p>93</p>
<p>93</p>
<p>12</p>
<p>12</p>
<p>12</p>
<p>12</p>
<p>12</p>
</parameter>
</dao>
<dao id="brjyxxpllrdao" type="1">
<sql><![CDATA[select distinct '' YBH,t.LSH,t.TMH,t.BLH,t.KBM,t.KLS,t.BQ,t.CH,t.BRLX,
t.XM,t.XB,t.NL,t.CSRQ,t.NLDW,t.JZ,t.JJ,t.SJKS,t.SJYS,t.SJSJ,
t.DJYS,t.DJSJ,t.CYYS,t.CYSJ,t.CYBZ,t.QSYS,t.QSSJ,t.QSBZ,
t.JGID,t.DYBZ,t.DYCS,t.JYZT,t.SJBZ,jy.YBLX YBLX,t.ZJHM ,t2.MC
from LIS_JYBRXX t
left join LIS_JYXMSQ j on t.JGID = j.JGID and t.TMH = j.TMH and t.LSH = j.LSH
left join HIS_YZX_JCJY jy on j.JGID=jy.JGID and j.ZHXM=jy.YZXPKEY
left join HIS_YZX t2 on t2.JGID=jy.JGID and t2.BM=jy.YZXPKEY
where t.JGID = ? and jy.XMFL in (select q.YQDL from LIS_YQSBDJ y
left join LIS_QDCSPZ q on q.JGID = y.JGID and q.YQDM = y.QDLX
where y.JGID = t.JGID and y.SBH = ?)
and t.DJSJ >= ?
and t.DJSJ <= ? and t.TMH not in (select TMH from LIS_BRJYXX where JGID = ? and JYYQ = ? and TMH is not null)
order by t.BRLX,t.LSH
]]>
</sql>
<fields>
<f name="YBH" type="12"/>
<f name="LSH" type="12"/>
<f name="TMH" type="12"/>
<f name="BLH" type="12"/>
<f name="KBM" type="12"/>
<f name="KLS" type="12"/>
<f name="BQ" type="12"/>
<f name="CH" type="12"/>
<f name="BRLX" type="12"/>
<f name="XM" type="12"/>
<f name="XB" type="12"/>
<f name="NL" type="12"/>
<f name="CSRQ" type="93"/>
<f name="NLDW" type="12"/>
<f name="JZ" type="12"/>
<f name="JJ" type="12"/>
<f name="SJKS" type="12"/>
<f name="SJYS" type="12"/>
<f name="SJSJ" type="93"/>
<f name="DJYS" type="12"/>
<f name="DJSJ" type="93"/>
<f name="CYYS" type="12"/>
<f name="CYSJ" type="93"/>
<f name="CYBZ" type="12"/>
<f name="QSYS" type="12"/>
<f name="QSSJ" type="93"/>
<f name="QSBZ" type="12"/>
<f name="JGID" type="12"/>
<f name="DYBZ" type="12"/>
<f name="DYCS" type="-5"/>
<f name="JYZT" type="12"/>
<f name="SJBZ" type="12"/>
<f name="YBLX" type="12"/>
<f name="ZJHM" type="12"/>
<f name="MC" type="12"/>
</fields>
<parameter>
<p>12</p>
<p>12</p>
<p>93</p>
<p>93</p>
<p>12</p>
<p>12</p>
</parameter>
</dao>
<dao id="brjyxxbyyqdao" type="1">
<sql><![CDATA[select distinct '' YBH,t.LSH,t.TMH,t.BLH,t.KBM,t.KLS,t.BQ,t.CH,t.BRLX,
t.XM,t.XB,t.NL,t.CSRQ,t.NLDW,t.JZ,t.JJ,t.SJKS,t.SJYS,t.SJSJ,
t.DJYS,t.DJSJ,t.CYYS,t.CYSJ,t.CYBZ,t.QSYS,t.QSSJ,t.QSBZ,
t.JGID,t.DYBZ,t.DYCS,t.JYZT,t.SJBZ,jy.YBLX YBLX,t.ZJHM ,t2.MC
from LIS_JYBRXX t
left join LIS_JYXMSQ j on t.JGID = j.JGID and t.TMH = j.TMH and t.LSH = j.LSH
left join HIS_YZX_JCJY jy on j.JGID=jy.JGID and j.ZHXM=jy.YZXPKEY
left join HIS_YZX t2 on t2.JGID=jy.JGID and t2.BM=jy.YZXPKEY
where t.JGID = ?
and t2.BM in (select XMBH from LIS_XMDYYQ where JGID = ? )
and t.DJSJ >= ?
and t.DJSJ <= ? and t.TMH not in (select TMH from LIS_BRJYXX where JGID = ? and JYYQ = ? and TMH is not null)
order by t.BRLX,t.LSH
]]>
</sql>
<fields>
<f name="YBH" type="12"/>
<f name="LSH" type="12"/>
<f name="TMH" type="12"/>
<f name="BLH" type="12"/>
<f name="KBM" type="12"/>
<f name="KLS" type="12"/>
<f name="BQ" type="12"/>
<f name="CH" type="12"/>
<f name="BRLX" type="12"/>
<f name="XM" type="12"/>
<f name="XB" type="12"/>
<f name="NL" type="12"/>
<f name="CSRQ" type="93"/>
<f name="NLDW" type="12"/>
<f name="JZ" type="12"/>
<f name="JJ" type="12"/>
<f name="SJKS" type="12"/>
<f name="SJYS" type="12"/>
<f name="SJSJ" type="93"/>
<f name="DJYS" type="12"/>
<f name="DJSJ" type="93"/>
<f name="CYYS" type="12"/>
<f name="CYSJ" type="93"/>
<f name="CYBZ" type="12"/>
<f name="QSYS" type="12"/>
<f name="QSSJ" type="93"/>
<f name="QSBZ" type="12"/>
<f name="JGID" type="12"/>
<f name="DYBZ" type="12"/>
<f name="DYCS" type="-5"/>
<f name="JYZT" type="12"/>
<f name="SJBZ" type="12"/>
<f name="YBLX" type="12"/>
<f name="ZJHM" type="12"/>
<f name="MC" type="12"/>
</fields>
<parameter>
<p>12</p>
<p>12</p>
<p>93</p>
<p>93</p>
<p>12</p>
<p>12</p>
</parameter>
</dao>
<dao id="ywxmquerydao" log="true" type="1">
<sql>select distinct a.TMH,a.BLH,a.KBM,a.KLS,a.CH,a.BRLX,a.XM,a.XB,a.NL,a.NLDW,a.SJKS,a.SJYS,a.SJSJ,a.CYSJ,a.CYYS,a.DYBZ,
a.CSRQ,a.JYZT,a.QSSJ,b.DYSJ,a.DYCS,a.JJ,jy.YBLX,a.JGID,a.HZPKEY,a.ZJHM,jy.XMFL,b.QTJGBM as ZHXM,b.JYZT XMZT,b.QTJG,jy.QTJGBM XMBM,t2.MC XMMC,b.CFBZ
from LIS_JYXMSQ b
left join LIS_JYBRXX a on a.LSH = b.LSH and a.QTJG =b.QTJG and a.TMH =b.TMH
left join HIS_YZX_JCJY jy on b.QTJG=jy.QTJG and b.QTJGBM=jy.YZXPKEY
left join HIS_YZX t2 on t2.JGID=jy.JGID and t2.BM=jy.YZXPKEY
where b.QTJG = ? and b.TMH = ?
</sql>
<fields>
<f name="TMH" type="12" />
<f name="BLH" type="12" />
<f name="KBM" type="12" />
<f name="KLS" type="12" />
<f name="CH" type="12" />
<f name="BRLX" type="12" />
<f name="XM" type="12" />
<f name="XB" type="12" />
<f name="NL" type="12" />
<f name="NLDW" type="12" />
<f name="SJKS" type="12" />
<f name="SJYS" type="12" />
<f name="SJSJ" type="93" />
<f name="CYSJ" type="93" />
<f name="CYYS" type="12" />
<f name="DYBZ" type="12" />
<f name="CSRQ" type="93" />
<f name="JYZT" type="12" />
<f name="QSSJ" type="93" />
<f name="DYSJ" type="93" />
<f name="DYCS" type="-5" />
<f name="JJ" type="12" />
<f name="YBLX" type="12" />
<f name="JGID" type="12" />
<f name="HZPKEY" type="12" />
<f name="ZJHM" type="12" />
<f name="XMFL" type="12" />
<f name="ZHXM" type="12" />
<f name="XMZT" type="12" />
<f name="QTJG" type="12" />
<f name="XMBM" type="12" />
<f name="XMMC" type="12" />
<f name="CFBZ" type="12" />
</fields>
<parameter>
<p>12</p>
<p>12</p>
</parameter>
</dao>
<dao id="jyxmdic" type="1">
<sql>select XMBH,XMMC,XMDH,XMFL,YWMC,JYDW,JGLX,PYM,JGID from LIS_JYXM where XMFL = ?</sql>
<tables>
<table delete="true" insert="true" name="LIS_JYXM" update="true">
<primary>XMBH</primary>
</table>
</tables>
<fields>
<f name="XMBH" table="LIS_JYXM" type="12"/>
<f name="XMMC" table="LIS_JYXM" type="12"/>
<f name="XMDH" table="LIS_JYXM" type="12"/>
<f name="XMFL" table="LIS_JYXM" type="12"/>
<f name="YWMC" table="LIS_JYXM" type="12"/>
<f name="JYDW" table="LIS_JYXM" type="12"/>
<f name="JGLX" table="LIS_JYXM" type="12"/>
<f name="PYM" table="LIS_JYXM" type="12"/>
<f name="JGID" table="LIS_JYXM" type="12"/>
</fields>
<parameter>
<p>12</p>
</parameter>
</dao>
<dao id="jyxmpopdao" type="1">
<sql>select XMBH,XMMC,XMDH from LIS_JYXM where 1=1 and (lower(XMBH) like ? or lower(XMMC) like ? or lower(XMDH) like ? or lower(PYM) like ?)</sql>
<fields>
<f name="XMBH" type="12" />
<f name="XMMC" type="12" />
<f name="XMDH" type="12" />
</fields>
<parameter>
<p>12</p>
<p>12</p>
<p>12</p>
<p>12</p>
</parameter>
</dao>
<dao id="ryrjbdao" type="1">
<sql>select a.PKEY,a.SBH,b.YQMC,a.RJBH,a.RJSJ,c.name,a.JGID,a.RJCZY
from LIS_RJB a left join LIS_YQSBDJ b on a.SBH=b.SBH and a.JGID=b.JGID
left join MAIN_YHXX c on a.RJCZY=c.useraccount and a.JGID=c.JLJG
where a.JGID=? order by a.PKEy desc </sql>
<tables>
<table name="LIS_RJB" insert="true" update="true" delete="true">
<primary>JGID</primary>
<primary>SBH</primary>
<primary>PKEY</primary>
</table>
</tables>
<fields>
<f name="PKEY" type="12" table="LIS_RJB" />
<f name="SBH" type="12" table="LIS_RJB" />
<f name="YQMC" type="12" table="LIS_RJB" />
<f name="RJBH" type="-5" table="LIS_RJB" />
<f name="RJSJ" type="93" table="LIS_RJB" />
<f name="NAME" type="12" />
<f name="JGID" type="12" table="LIS_RJB" />
<f name="RJCZY" type="12" table="LIS_RJB" />
</fields>
<parameter>
<p>12</p>
</parameter>
</dao>
<dao id="jyxmdao" type="1">
<sql>select t.XMBH,t.XMMC,t.XMDH,t.XMFL,t.JYDW,t.JGLX,a.jyff,a.MRJG,t2.JGID,t2.DXBH,t3.DYSX,a.frbz
from LIS_JYXMDZ t2
left join LIS_JYXM t on t2.XXBH = t.XMBH
left join LIS_YQSBDJ y on t2.JGID = y.JGID
left join LIS_YQXMSZ t3 on t2.JGID = t3.JGID and t2.XXBH = t3.JYXM and y.QDLX = t3.YQDM
left join lisfrxm a on t.XMBH =a.xmbh and a.JGID =t2.JGID
where t2.JGID = ? and t2.DXBH = ? and y.SBH=?
</sql>
<tables>
<table delete="true" insert="true" name="LIS_JYXM" update="true">
<primary>XMBH</primary>
</table>
</tables>
<fields>
<f name="XMBH" table="LIS_JYXM" type="12"/>
<f name="XMMC" table="LIS_JYXM" type="12"/>
<f name="XMDH" table="LIS_JYXM" type="12"/>
<f name="XMFL" table="LIS_JYXM" type="12"/>
<f name="JYDW" table="LIS_JYXM" type="12"/>
<f name="JGLX" table="LIS_JYXM" type="12"/>
<f name="jyff" type="12"/>
<f name="MRJG" type="12"/>
<f name="JGID" table="LIS_JYXM" type="12"/>
<f name="DXBH" type="12"/>
<f name="DYSX" type="4"/>
<f name="frbz" type="12"/>
</fields>
<parameter>
<p>12</p>
<p>12</p>
<p>12</p>
</parameter>
</dao>
<dao id="jyxmnotdao" type="1">
<sql>select t.XMMC,t.XMBH,t.XMDH,a.MRJG,t.JYDW,t.JGLX from LIS_JYXM t left join lisfrxm a on t.XMBH =a.XMBH and a.JGID =t.JGID where 1=2</sql>
<fields>
<f name="XMMC" type="12"/>
<f name="XMBH" type="12"/>
<f name="XMDH" type="12"/>
<f name="MRJG" type="12"/>
<f name="JYDW" type="12"/>
<f name="JGLX" type="12"/>
</fields>
</dao>
<dao id="ybhdao" type="1">
<sql>select max(YBH) as YBH from LIS_BRJYXX where JGID = ? and RJBH = ? and JYYQ=?</sql>
<fields>
<f name="YBH" type="12"/>
</fields>
<parameter>
<p>12</p>
<p>12</p>
<p>12</p>
</parameter>
</dao>
<dao id="rjbhdao" type="1">
<sql><![CDATA[select distinct to_char(RJBH) BH,substr(to_char(RJBH),1,8)||':'||substr(to_char(RJBH),9,2) MC from LIS_BRJYXX where JGID=? and SBH=? and JYSJ >= trunc(sysdate- ?)
union select to_char(RJBH) BH,substr(to_char(RJBH),1,8)||':'||substr(to_char(RJBH),9,2) MC from LIS_RJB where JGID=? and SBH=?
union select distinct to_char(RJBH) BH,substr(to_char(RJBH),1,8)||':'||substr(to_char(RJBH),9,2) MC from LIS_JYJG where JGID=? and SBH=? and JYSJ >= trunc(sysdate- ?)
order by BH desc ]]></sql>
<fields>
<f name="BH" type="12"/>
<f name="MC" type="12"/>
</fields>
<parameter>
<p>12</p>
<p>12</p>
<p>4</p>
<p>12</p>
<p>12</p>
<p>12</p>
<p>12</p>
<p>4</p>
</parameter>
</dao>
<dao id="rjbpjdao" type="1">
<sql>select a.PKEY,a.SBH,a.RJBH,a.RJSJ,a.JGID,a.RJCZY from LIS_RJB a
where a.JGID=? and a.SBH=? and to_char(a.RJSJ,'yyyyMMdd')=? </sql>
<tables>
<table delete="true" insert="true" name="LIS_RJB" update="true">
<primary>JGID</primary>
<primary>SBH</primary>
<primary>PKEY</primary>
</table>
</tables>
<fields>
<f name="PKEY" table="LIS_RJB" type="12"/>
<f name="SBH" table="LIS_RJB" type="12"/>
<f name="RJBH" table="LIS_RJB" type="-5"/>
<f name="RJSJ" table="LIS_RJB" type="93"/>
<f name="JGID" table="LIS_RJB" type="12"/>
<f name="RJCZY" table="LIS_RJB" type="12"/>
</fields>
<parameter>
<p>12</p>
<p>12</p>
<p>12</p>
</parameter>
</dao>
<dao id="jymddao" type="1">
<sql>select t.ZHXM,b.MC from LIS_JYXMSQ t
left join HIS_YZX_JCJY j on t.JGID=j.JGID and t.ZHXM=j.YZXPKEY
left join HIS_YZX b on b.JGID=j.JGID and b.BM=j.YZXPKEY
where t.JGID = ? and t.TMH = ?
union
select t.ZHXM,b.MC from LIS_JYXMSQ t
left join HIS_YZX_JCJY j on t.JGID=j.QTJG and t.QTJGBM=j.QTJGBM
left join HIS_YZX b on b.JGID=j.JGID and b.BM=j.YZXPKEY
where t.QTJG = ? and t.TMH = ?</sql>
<fields>
<f name="ZHXM" type="12"/>
<f name="MC" type="12"/>
</fields>
<parameter>
<p>12</p>
<p>12</p>
<p>12</p>
<p>12</p>
</parameter>
</dao>
<dao id="bdjyjgdao" type="1">
<sql>select t2.SBH,t2.YBH,t2.XMBM,t2.RJBH,t2.JYSJ,t2.YQNBM,t2.JG,t2.JGLX,t2.DLJG,t2.DYSX,t2.CKZ,t2.TSXX,t2.SFSCCG,t2.SCSJ,t2.CSCS,t2.JGID,t2.DXMBM,t2.DXMMC,t2.JYDW,t2.XMMC,t2.XMDH,t2.TXJG,t2.HRBZ,t2.JYFF
from LIS_BRJYXX t
left join LIS_JYJG t2 on t.SBH = t2.SBH and t.YBH = t2.YBH and t.JGID = t2.JGID and t.RJBH = t2.RJBH </sql>
<tables>
<table delete="true" insert="true" name="LIS_JYJG" update="true">
<primary>JGID</primary>
<primary>XMBM</primary>
<primary>YBH</primary>
<primary>RJBH</primary>
<primary>SBH</primary>
</table>
</tables>
<fields>
<f name="SBH" table="LIS_JYJG" type="12"/>
<f name="YBH" table="LIS_JYJG" type="12"/>
<f name="XMBM" table="LIS_JYJG" type="12"/>
<f name="RJBH" table="LIS_JYJG" type="-5"/>
<f name="JYSJ" table="LIS_JYJG" type="93"/>
<f name="YQNBM" table="LIS_JYJG" type="12"/>
<f name="JG" table="LIS_JYJG" type="12"/>
<f name="JGLX" table="LIS_JYJG" type="12"/>
<f name="DLJG" table="LIS_JYJG" type="12"/>
<f name="DYSX" table="LIS_JYJG" type="-5"/>
<f name="CKZ" table="LIS_JYJG" type="12"/>
<f name="TSXX" table="LIS_JYJG" type="12"/>
<f name="SFSCCG" table="LIS_JYJG" type="12"/>
<f name="SCSJ" table="LIS_JYJG" type="93"/>
<f name="CSCS" table="LIS_JYJG" type="-5"/>
<f name="JGID" table="LIS_JYJG" type="12"/>
<f name="DXMBM" table="LIS_JYJG" type="12"/>
<f name="DXMMC" table="LIS_JYJG" type="12"/>
<f name="JYDW" table="LIS_JYJG" type="12"/>
<f name="XMMC" table="LIS_JYJG" type="12"/>
<f name="XMDH" table="LIS_JYJG" type="12"/>
<f name="TXJG" table="LIS_JYJG" type="12"/>
<f name="HRBZ" table="LIS_JYJG" type="12"/>
<f name="JYFF" table="LIS_JYJG" type="12"/>
</fields>
</dao>
<dao id="lishistorydao" type="1">
<sql>select a.RJBH,a.TMH,b.XMBM,b.XMMC,b.JG,b.TSXX,b.CKZ,a.YBH from LIS_BRJYXX a
left join LIS_JYJG b on a.JGID=b.JGID and a.YBH=b.YBH and a.SBH=b.SBH and a.RJBH=b.RJBH
where a.JGID=? and (a.HZPKEY=? or a.BLH=?) and a.SBH=?
order by a.RJBH,b.DYSX
</sql>
<fields>
<f name="RJBH" type="-5"/>
<f name="TMH" type="12"/>
<f name="XMBM" type="12"/>
<f name="XMMC" type="12"/>
<f name="JG" type="12"/>
<f name="TSXX" type="12"/>
<f name="CKZ" type="12"/>
<f name="YBH" type="12"/>
</fields>
<parameter>
<p>12</p>
<p>12</p>
<p>12</p>
<p>12</p>
</parameter>
</dao>
<dao id="jyjgpldao" type="1">
<sql>select nvl(a.TMH,'空的检验号') TMH,nvl(a.XM,'未登记') XM
,b.SBH,b.YBH,b.XMBM,b.RJBH,b.JYSJ,b.YQNBM,b.JG,b.JGLX,b.DLJG,b.TXJG,b.DYSX,
b.CKZ,b.TSXX,b.SFSCCG,b.SCSJ,b.CSCS,b.JGID from LIS_JYJG b left join LIS_BRJYXX a on a.JGID = b.JGID
and a.YBH=b.YBH and a.RJBH=b.RJBH and a.SBH=b.SBH where b.JGID=? and b.SBH=? and b.RJBH=?
</sql>
<tables>
<table delete="true" insert="true" name="LIS_JYJG" update="true">
<primary>SBH</primary>
<primary>YBH</primary>
<primary>XMBM</primary>
</table>
</tables>
<fields>
<f name="TMH" type="12"/>
<f name="XM" type="12"/>
<f name="SBH" table="LIS_JYJG" type="12"/>
<f name="YBH" table="LIS_JYJG" type="12"/>
<f name="XMBM" table="LIS_JYJG" type="12"/>
<f name="RJBH" table="LIS_JYJG" type="-5"/>
<f name="JYSJ" table="LIS_JYJG" type="93"/>
<f name="YQNBM" table="LIS_JYJG" type="12"/>
<f name="JG" table="LIS_JYJG" type="12"/>
<f name="JGLX" table="LIS_JYJG" type="12"/>
<f name="DLJG" table="LIS_JYJG" type="12"/>
<f name="TXJG" table="LIS_JYJG" type="12"/>
<f name="DYSX" table="LIS_JYJG" type="-5"/>
<f name="CKZ" table="LIS_JYJG" type="12"/>
<f name="TSXX" table="LIS_JYJG" type="12"/>
<f name="SFSCCG" table="LIS_JYJG" type="12"/>
<f name="SCSJ" table="LIS_JYJG" type="93"/>
<f name="CSCS" table="LIS_JYJG" type="-5"/>
<f name="JGID" table="LIS_JYJG" type="12"/>
</fields>
<parameter>
<p>12</p>
<p>12</p>
<p>12</p>
</parameter>
</dao>
<dao id="jyjgquerydao" log="true" type="1">
<sql>
select SBH,YBH,XMBM,RJBH,JYSJ,YQNBM,JG,JGLX,DLJG,DYSX,CKZ,TSXX,SFSCCG,SCSJ,CSCS,JGID,DXMBM,DXMMC,JYDW,XMMC,XMDH,TXJG,HRBZ,JYFF,XMTYPE,QTJG
from LIS_JYJG
where JGID=? and SBH=? and YBH=? and RJBH=? order by DYSX ASC,XMBM ASC
</sql>
<fields>
<f name="SBH" type="12" />
<f name="YBH" type="12" />
<f name="XMBM" type="12" />
<f name="RJBH" type="-5" />
<f name="JYSJ" type="93" />
<f name="YQNBM" type="12" />
<f name="JG" type="12" />
<f name="JGLX" type="12" />
<f name="DLJG" type="12" />
<f name="DYSX" type="-5" />
<f name="CKZ" type="12" />
<f name="TSXX" type="12" />
<f name="SFSCCG" type="12" />
<f name="SCSJ" type="93" />
<f name="CSCS" type="-5" />
<f name="JGID" type="12" />
<f name="DXMBM" type="12" />
<f name="DXMMC" type="12" />
<f name="JYDW" type="12" />
<f name="XMMC" type="12" />
<f name="XMDH" type="12" />
<f name="TXJG" type="12" />
<f name="HRBZ" type="12" />
<f name="JYFF" type="12" />
<f name="XMTYPE" type="12" />
<f name="QTJG" type="12" />
</fields>
<parameter>
<p>12</p>
<p>12</p>
<p>12</p>
<p>12</p>
</parameter>
</dao>
<dao id="jyjgforjzdao" log="true" type="1">
<sql>
select SBH,YBH,XMBM,RJBH,JYSJ,YQNBM,JG,JGLX,DLJG,DYSX,CKZ,TSXX,SFSCCG,SCSJ,CSCS,JGID,DXMBM,DXMMC,JYDW,XMMC,XMDH,TXJG,HRBZ,JYFF,XMTYPE,QTJG
from LIS_JYJG
where SBH=? and YBH=? and RJBH=? and (JGID=? or QTJG=?) order by nvl(DYSX,999) ASC,XMBM ASC
</sql>
<fields>
<f name="SBH" type="12" />
<f name="YBH" type="12" />
<f name="XMBM" type="12" />
<f name="RJBH" type="-5" />
<f name="JYSJ" type="93" />
<f name="YQNBM" type="12" />
<f name="JG" type="12" />
<f name="JGLX" type="12" />
<f name="DLJG" type="12" />
<f name="DYSX" type="-5" />
<f name="CKZ" type="12" />
<f name="TSXX" type="12" />
<f name="SFSCCG" type="12" />
<f name="SCSJ" type="93" />
<f name="CSCS" type="-5" />
<f name="JGID" type="12" />
<f name="DXMBM" type="12" />
<f name="DXMMC" type="12" />
<f name="JYDW" type="12" />
<f name="XMMC" type="12" />
<f name="XMDH" type="12" />
<f name="TXJG" type="12" />
<f name="HRBZ" type="12" />
<f name="JYFF" type="12" />
<f name="XMTYPE" type="12" />
<f name="QTJG" type="12" />
</fields>
<parameter>
<p>12</p>
<p>12</p>
<p>12</p>
<p>12</p>
<p>12</p>
</parameter>
</dao>
<dao id="jyjgdydao" type="1">
<sql>select t.XH,t.QTJG,t.BLH,t.TMH,t.KBM,t.KLS,t.CH,t.BRLX,t.XM,t.XB,t.CSRQ,t.NL,t.NLDW,t.SJKS,t.SJYS,t.SJSJ,t.JYYQ,t.SBH,t.CYSJ,t.JYSJ,t.SHBZ,t.DYBZ,t.FBBZ,t.JYYS,t.SHYS,t.FHYS,t.SHSJ,t.FHSJ,t.DYSJ,t.LCZD,t.SFLB,t.SFSF,t.DYCS,t.JJ,t.YBLX,t.YBZT,t.YBH,t.RJBH,t.SJBH,t.BZ,t.JGID,t.YCBZ,
t2.XMBM,t2.JYSJ XMJYSJ,t2.JG,t2.JGLX,t2.DLJG,t2.TXJG,nvl(t2.CKZ,j.CKZ) as CKZ,t2.TSXX,t2.SFSCCG,t2.SCSJ,t2.CSCS,t3.YQMC,t3.QDLX,t3.YQBD,t3.PJFS,t3.SSKS,t3.YSBH,
t2.XMMC,t2.XMDH,nvl(c.CJDW,t2.JYDW)as CJDW,t2.JYFF,t2.HRBZ,t2.DYSX,j.CKZ TSCKZ,t.NLY,t.NLT,j.SFCZ,t2.XMTYPE,
jz.WARD
from LIS_BRJYXX t
left join LIS_JYJG t2 on t.SBH = t2.SBH and t.YBH = t2.YBH and t.JGID = t2.JGID and t.RJBH = t2.RJBH
left join LIS_JYXM j on j.XMBH=t2.XMBM
left join LIS_YQSBDJ t3 on t.JGID = t3.JGID and t.SBH = t3.SBH
left join lisfrxm d on j.XMBH =d.xmbh and d.JGID = ?
left join LIS_CJDW c on d.jydw =c.BH and d.JGID = c.JGID
left join HIS_JZ_BASEINFO jz on t.JGID =jz.JGID and t.KLS =jz.PKEY and t.KBM =jz.HZPKEY
where t.JGID = ? and t.XH = ? order by nvl(t2.DYSX,999) asc,t2.XMBM asc</sql>
<fields>
<f name="XH" type="12" />
<f name="QTJG" type="12" />
<f name="BLH" type="12" />
<f name="TMH" type="12" />
<f name="KBM" type="12" />
<f name="KLS" type="12" />
<f name="CH" type="12" />
<f name="BRLX" type="12" />
<f name="XM" type="12" />
<f name="XB" type="12" />
<f name="CSRQ" type="93" />
<f name="NL" type="12" />
<f name="NLDW" type="12" />
<f name="SJKS" type="12" />
<f name="SJYS" type="12" />
<f name="SJSJ" type="93" />
<f name="JYYQ" type="12" />
<f name="SBH" type="12" />
<f name="CYSJ" type="93" />
<f name="JYSJ" type="93" />
<f name="SHBZ" type="12" />
<f name="DYBZ" type="12" />
<f name="FBBZ" type="12" />
<f name="JYYS" type="12" />
<f name="SHYS" type="12" />
<f name="FHYS" type="12" />
<f name="SHSJ" type="93" />
<f name="FHSJ" type="93" />
<f name="DYSJ" type="93" />
<f name="LCZD" type="12" />
<f name="SFLB" type="12" />
<f name="SFSF" type="12" />
<f name="DYCS" type="-5" />
<f name="JJ" type="12" />
<f name="YBLX" type="12" />
<f name="YBZT" type="12" />
<f name="YBH" type="12" />
<f name="RJBH" type="-5" />
<f name="SJBH" type="12" />
<f name="BZ" type="12" />
<f name="JGID" type="12" />
<f name="YCBZ" type="12" />
<f name="XMBM" type="12" />
<f name="XMJYSJ" type="93" />
<f name="JG" type="12" />
<f name="JGLX" type="12" />
<f name="DLJG" type="12" />
<f name="TXJG" type="12" />
<f name="CKZ" type="12" />
<f name="TSXX" type="12" />
<f name="SFSCCG" type="12" />
<f name="SCSJ" type="93" />
<f name="CSCS" type="-5" />
<f name="YQMC" type="12" />
<f name="QDLX" type="12" />
<f name="YQBD" type="12" />
<f name="PJFS" type="12" />
<f name="SSKS" type="12" />
<f name="YSBH" type="12" />
<f name="XMMC" type="12" />
<f name="XMDH" type="12" />
<f name="CJDW" type="12" />
<f name="JYFF" type="12" />
<f name="HRBZ" type="12" />
<f name="DYSX" type="-5" />
<f name="TSCKZ" type="12" />
<f name="NLY" type="12" />
<f name="NLT" type="12" />
<f name="SFCZ" type="12" />
<f name="XMTYPE" type="12" />
<f name="WARD" type="12" />
</fields>
<parameter>
<p>12</p>
<p>12</p>
<p>12</p>
</parameter>
</dao>
<dao id="nyjyjgdydao" type="1">
<sql><![CDATA[select t.XH,t.QTJG,t.BLH,t.TMH,t.KBM,t.KLS,t.CH,t.BRLX,t.XM,t.XB,t.CSRQ,t.NL,t.NLDW,t.SJKS,t.SJYS,t.SJSJ,t.JYYQ,t.SBH,t.CYSJ,t.JYSJ,t.SHBZ,t.DYBZ,t.FBBZ,t.JYYS,t.SHYS,t.FHYS,t.SHSJ,t.FHSJ,t.DYSJ,t.LCZD,t.SFLB,t.SFSF,t.DYCS,t.JJ,t.YBLX,t.YBZT,t.YBH,t.RJBH,t.SJBH,t.BZ,t.JGID,t.YCBZ,
t2.XMBM,t2.JYSJ XMJYSJ,t2.JG,t2.JGLX,t2.DLJG,t2.TXJG,nvl(t2.CKZ,j.CKZ) as CKZ,t2.TSXX,t2.SFSCCG,t2.SCSJ,t2.CSCS,t3.YQMC,t3.QDLX,t3.YQBD,t3.PJFS,t3.SSKS,t3.YSBH,
t2.XMMC,t2.XMDH,nvl(c.CJDW,t2.JYDW)as CJDW,t2.JYFF,t2.HRBZ,t2.DYSX,j.CKZ TSCKZ,t.NLY,t.NLT,j.SFCZ,t2.XMTYPE
from LIS_BRJYXX t
left join LIS_JYJG t2 on t.SBH = t2.SBH and t.YBH = t2.YBH and t.JGID = t2.JGID and t.RJBH = t2.RJBH
left join LIS_JYXM j on j.XMBH=t2.XMBM
left join LIS_YQSBDJ t3 on t.JGID = t3.JGID and t.SBH = t3.SBH
left join lisfrxm d on j.XMBH =d.xmbh and d.JGID = ?
left join LIS_CJDW c on d.jydw =c.BH and d.JGID = c.JGID
where nvl(t2.XMTYPE,' ') <> 'U' and t2.JGLX !='P' and t.JGID = ? and t.XH = ? order by nvl(t2.DYSX,999) asc,t2.XMBM asc
]]></sql>
<fields>
<f name="XH" type="12" />
<f name="QTJG" type="12" />
<f name="BLH" type="12" />
<f name="TMH" type="12" />
<f name="KBM" type="12" />
<f name="KLS" type="12" />
<f name="CH" type="12" />
<f name="BRLX" type="12" />
<f name="XM" type="12" />
<f name="XB" type="12" />
<f name="CSRQ" type="93" />
<f name="NL" type="12" />
<f name="NLDW" type="12" />
<f name="SJKS" type="12" />
<f name="SJYS" type="12" />
<f name="SJSJ" type="93" />
<f name="JYYQ" type="12" />
<f name="SBH" type="12" />
<f name="CYSJ" type="93" />
<f name="JYSJ" type="93" />
<f name="SHBZ" type="12" />
<f name="DYBZ" type="12" />
<f name="FBBZ" type="12" />
<f name="JYYS" type="12" />
<f name="SHYS" type="12" />
<f name="FHYS" type="12" />
<f name="SHSJ" type="93" />
<f name="FHSJ" type="93" />
<f name="DYSJ" type="93" />
<f name="LCZD" type="12" />
<f name="SFLB" type="12" />
<f name="SFSF" type="12" />
<f name="DYCS" type="-5" />
<f name="JJ" type="12" />
<f name="YBLX" type="12" />
<f name="YBZT" type="12" />
<f name="YBH" type="12" />
<f name="RJBH" type="-5" />
<f name="SJBH" type="12" />
<f name="BZ" type="12" />
<f name="JGID" type="12" />
<f name="YCBZ" type="12" />
<f name="XMBM" type="12" />
<f name="XMJYSJ" type="93" />
<f name="JG" type="12" />
<f name="JGLX" type="12" />
<f name="DLJG" type="12" />
<f name="TXJG" type="12" />
<f name="CKZ" type="12" />
<f name="TSXX" type="12" />
<f name="SFSCCG" type="12" />
<f name="SCSJ" type="93" />
<f name="CSCS" type="-5" />
<f name="YQMC" type="12" />
<f name="QDLX" type="12" />
<f name="YQBD" type="12" />
<f name="PJFS" type="12" />
<f name="SSKS" type="12" />
<f name="YSBH" type="12" />
<f name="XMMC" type="12" />
<f name="XMDH" type="12" />
<f name="CJDW" type="12" />
<f name="JYFF" type="12" />
<f name="HRBZ" type="12" />
<f name="DYSX" type="-5" />
<f name="TSCKZ" type="12" />
<f name="NLY" type="12" />
<f name="NLT" type="12" />
<f name="SFCZ" type="12" />
<f name="XMTYPE" type="12" />
</fields>
<parameter>
<p>12</p>
<p>12</p>
<p>12</p>
</parameter>
</dao>
<dao id="ncdjyjgdydao" type="1">
<sql>select t.XH,t.QTJG,t.BLH,t.TMH,t.KBM,t.KLS,t.CH,t.BRLX,t.XM,t.XB,t.CSRQ,t.NL,t.NLDW,t.SJKS,t.SJYS,t.SJSJ,t.JYYQ,t.SBH,t.CYSJ,t.JYSJ,t.SHBZ,t.DYBZ,t.FBBZ,t.JYYS,t.SHYS,t.FHYS,t.SHSJ,t.FHSJ,t.DYSJ,t.LCZD,t.SFLB,t.SFSF,t.DYCS,t.JJ,t.YBLX,t.YBZT,t.YBH,t.RJBH,t.SJBH,t.BZ,t.JGID,t.YCBZ,
t2.XMBM,t2.JYSJ XMJYSJ,t2.JG,t2.JGLX,t2.DLJG,t2.TXJG,nvl(t2.CKZ,j.CKZ) as CKZ,t2.TSXX,t2.SFSCCG,t2.SCSJ,t2.CSCS,t3.YQMC,t3.QDLX,t3.YQBD,t3.PJFS,t3.SSKS,t3.YSBH,
t2.XMMC,t2.XMDH,nvl(c.CJDW,t2.JYDW)as CJDW,t2.JYFF,t2.HRBZ,t2.DYSX,j.CKZ TSCKZ,t.NLY,t.NLT,j.SFCZ,t2.XMTYPE
from LIS_BRJYXX t
left join LIS_JYJG t2 on t.SBH = t2.SBH and t.YBH = t2.YBH and t.JGID = t2.JGID and t.RJBH = t2.RJBH
left join LIS_JYXM j on j.XMBH=t2.XMBM
left join LIS_YQSBDJ t3 on t.JGID = t3.JGID and t.SBH = t3.SBH
left join lisfrxm d on j.XMBH =d.xmbh and d.JGID = ?
left join LIS_CJDW c on d.jydw =c.BH and d.JGID = c.JGID
where nvl(t2.XMTYPE,' ') = 'U' and t2.JGLX !='P' and t.JGID = ? and t.XH = ? order by nvl(t2.DYSX,999) asc,t2.XMBM asc</sql>
<fields>
<f name="XH" type="12" />
<f name="QTJG" type="12" />
<f name="BLH" type="12" />
<f name="TMH" type="12" />
<f name="KBM" type="12" />
<f name="KLS" type="12" />
<f name="CH" type="12" />
<f name="BRLX" type="12" />
<f name="XM" type="12" />
<f name="XB" type="12" />
<f name="CSRQ" type="93" />
<f name="NL" type="12" />
<f name="NLDW" type="12" />
<f name="SJKS" type="12" />
<f name="SJYS" type="12" />
<f name="SJSJ" type="93" />
<f name="JYYQ" type="12" />
<f name="SBH" type="12" />
<f name="CYSJ" type="93" />
<f name="JYSJ" type="93" />
<f name="SHBZ" type="12" />
<f name="DYBZ" type="12" />
<f name="FBBZ" type="12" />
<f name="JYYS" type="12" />
<f name="SHYS" type="12" />
<f name="FHYS" type="12" />
<f name="SHSJ" type="93" />
<f name="FHSJ" type="93" />
<f name="DYSJ" type="93" />
<f name="LCZD" type="12" />
<f name="SFLB" type="12" />
<f name="SFSF" type="12" />
<f name="DYCS" type="-5" />
<f name="JJ" type="12" />
<f name="YBLX" type="12" />
<f name="YBZT" type="12" />
<f name="YBH" type="12" />
<f name="RJBH" type="-5" />
<f name="SJBH" type="12" />
<f name="BZ" type="12" />
<f name="JGID" type="12" />
<f name="YCBZ" type="12" />
<f name="XMBM" type="12" />
<f name="XMJYSJ" type="93" />
<f name="JG" type="12" />
<f name="JGLX" type="12" />
<f name="DLJG" type="12" />
<f name="TXJG" type="12" />
<f name="CKZ" type="12" />
<f name="TSXX" type="12" />
<f name="SFSCCG" type="12" />
<f name="SCSJ" type="93" />
<f name="CSCS" type="-5" />
<f name="YQMC" type="12" />
<f name="QDLX" type="12" />
<f name="YQBD" type="12" />
<f name="PJFS" type="12" />
<f name="SSKS" type="12" />
<f name="YSBH" type="12" />
<f name="XMMC" type="12" />
<f name="XMDH" type="12" />
<f name="CJDW" type="12" />
<f name="JYFF" type="12" />
<f name="HRBZ" type="12" />
<f name="DYSX" type="-5" />
<f name="TSCKZ" type="12" />
<f name="NLY" type="12" />
<f name="NLT" type="12" />
<f name="SFCZ" type="12" />
<f name="XMTYPE" type="12" />
</fields>
<parameter>
<p>12</p>
<p>12</p>
<p>12</p>
</parameter>
</dao>
<dao id="brjyjgtmhdao" type="1">
<sql><![CDATA[select t3.XMBM as XMBH,t3.XMMC,t3.XMDH,t3.JYDW,t3.JGLX,t3.DYSX,t3.JG,t3.TSXX,t3.CKZ,t3.TXJG,t2.XM,t2.XB,t2.NL,t2.YBH,
t2.SJKS,t2.BLH,t2.TMH,t2.LCZD,t2.CH,t2.SJYS,t2.SJSJ,t2.JYYS,t2.JYSJ,t2.SHYS,t2.SHSJ,t2.BRLX,t2.SBH,t2.JGID,t3.HRBZ,t3.JYFF,
nvl(a.NAME,t2.SJYS) as NAME,nvl(b.DPTNAME,t2.SJKSMC) as MC
from LIS_BRJYXX t2
left join LIS_JYJG t3 on t2.JGID = t3.JGID and t2.SBH = t3.SBH and t2.RJBH= t3.RJBH and t2.YBH = t3.YBH
left join MAIN_YHXX a on t2.SJYS = a.USERACCOUNT
left join MAIN_KS b on nvl(t2.QTJG,t2.JGID) =b.JGID and t2.SJKS=b.DPTID
where (t2.JGID = ? or t2.QTJG =?) and t2.TMH = ?
]]></sql>
<fields>
<f name="XMBH" type="12" />
<f name="XMMC" type="12" />
<f name="XMDH" type="12" />
<f name="JYDW" type="12" />
<f name="JGLX" type="12" />
<f name="DYSX" type="-5" />
<f name="JG" type="12" />
<f name="TSXX" type="12" />
<f name="CKZ" type="12" />
<f name="TXJG" type="12" />
<f name="XM" type="12" />
<f name="XB" type="12" />
<f name="NL" type="12" />
<f name="YBH" type="12" />
<f name="SJKS" type="12" />
<f name="BLH" type="12" />
<f name="TMH" type="12" />
<f name="LCZD" type="12" />
<f name="CH" type="12" />
<f name="SJYS" type="12" />
<f name="SJSJ" type="93" />
<f name="JYYS" type="12" />
<f name="JYSJ" type="93" />
<f name="SHYS" type="12" />
<f name="SHSJ" type="93" />
<f name="BRLX" type="12" />
<f name="SBH" type="12" />
<f name="JGID" type="12" />
<f name="HRBZ" type="12" />
<f name="JYFF" type="12" />
<f name="NAME" type="12" />
<f name="MC" type="12" />
</fields>
<parameter>
<p>12</p>
<p>12</p>
<p>12</p>
</parameter>
</dao>
<dao id="jyxmmxdao" type="1">
<sql><![CDATA[select b.XMBH,b.XMMC,b.JYDW,a.JG,c.XM,c.SBH,c.XB,c.NL,c.YBH,c.SJKS,c.BLH,c.CH,c.TMH,c.JYSJ,c.BRLX
from LIS_BRJYXX c
left join LIS_JYJG a on a.JGID=c.JGID and a.YBH=c.YBH and a.SBH=c.SBH and a.RJBH=c.RJBH
left join LIS_JYXM b on a.XMBM=b.XMBH
where c.JYSJ>=? and c.JYSJ<=? and c.JGID=? and c.SBH=?]]></sql>
<fields>
<f name="XMBH" type="12" />
<f name="XMMC" type="12" />
<f name="JYDW" type="12" />
<f name="JG" type="12" />
<f name="XM" type="12" />
<f name="SBH" type="12" />
<f name="XB" type="12" />
<f name="NL" type="12" />
<f name="YBH" type="12" />
<f name="SJKS" type="12" />
<f name="BLH" type="12" />
<f name="CH" type="12" />
<f name="TMH" type="12" />
<f name="JYSJ" type="93" />
<f name="BRLX" type="12" />
</fields>
<parameter>
<p>93</p>
<p>93</p>
<p>12</p>
<p>12</p>
</parameter>
</dao>
<dao id="xmszdao" type="1">
<sql>select PKEY,XMMC,YSXM,KF,CHBXS,CHYXS,CHLXS,CHSXS,JGID from LIS_HBXMSZ </sql>
<tables>
<table delete="true" insert="true" name="LIS_HBXMSZ" update="true">
<primary>PKEY</primary>
<primary>JGID</primary>
</table>
</tables>
<fields>
<f name="PKEY" table="LIS_HBXMSZ" type="-5"/>
<f name="XMMC" table="LIS_HBXMSZ" type="12"/>
<f name="YSXM" table="LIS_HBXMSZ" type="12"/>
<f name="KF" table="LIS_HBXMSZ" type="12"/>
<f name="CHBXS" table="LIS_HBXMSZ" type="12"/>
<f name="CHYXS" table="LIS_HBXMSZ" type="12"/>
<f name="CHLXS" table="LIS_HBXMSZ" type="12"/>
<f name="CHSXS" table="LIS_HBXMSZ" type="12"/>
<f name="JGID" table="LIS_HBXMSZ" type="12"/>
</fields>
</dao>
<dao id="hbjyjgdao" type="1">
<sql>select a.XH,a.BRLX,a.XM,a.XB,a.NL,b.YBH,b.SBH,b.RJBH,b.XMBM,b.JG,b.JGID,a.BLH,a.TMH,a.QTJG,a.YBLX,a.CSRQ
from LIS_BRJYXX a
left join LIS_JYJG b on a.SBH=b.SBH and a.RJBH=b.RJBH and a.YBH=b.YBH
where b.SBH =? and b.RJBH =? and b.XMBM =? and b.JGID =?</sql>
<tables>
<table delete="true" insert="true" name="LIS_JYJG" update="true">
<primary>SBH</primary>
<primary>RJBH</primary>
<primary>XMBM</primary>
<primary>JGID</primary>
</table>
</tables>
<fields>
<f name="XH" type="12"/>
<f name="BRLX" type="12"/>
<f name="XM" type="12"/>
<f name="XB" type="12"/>
<f name="NL" type="12"/>
<f name="YBH" table="LIS_JYJG" type="12"/>
<f name="SBH" table="LIS_JYJG" type="12"/>
<f name="RJBH" table="LIS_JYJG" type="-5"/>
<f name="XMBM" table="LIS_JYJG" type="12"/>
<f name="JG" table="LIS_JYJG" type="12"/>
<f name="JGID" table="LIS_JYJG" type="12"/>
<f name="BLH" type="12"/>
<f name="TMH" type="12"/>
<f name="QTJG" type="12"/>
<f name="YBLX " type="12"/>
<f name="CSRQ" type="93"/>
</fields>
<parameter>
<p>12</p>
<p>12</p>
<p>12</p>
<p>12</p>
</parameter>
</dao>
<dao id="qtjgdao" type="1">
<sql>select distinct t.JGID,t2.JGMC from HIS_YZX_JCJY t,MAIN_YLJG t2
where t.QTJG =? and t.JGID = t2.PKEY and t.ISYW='1'</sql>
<fields>
<f name="JGID" type="12" />
<f name="JGMC" type="12" />
</fields>
<parameter>
<p>12</p>
</parameter>
</dao>
<dao id="jcjyksao" type="1" cache="true" memo="科室表">
<sql> select DPTID,DPTCODE,DPTNAME,ISLIS,DPTZJM from MAIN_KS where DPTFLAG='1' and DPTTYPE='2' and JGID=?</sql>
<fields>
<f name="DPTID" type="12" />
<f name="DPTCODE" type="12" />
<f name="DPTNAME" type="12" />
<f name="ISLIS" type="12" />
<f name="DPTZJM" type="12" />
</fields>
<parameter>
<p>12</p>
</parameter>
</dao>
<dao id="mzzyksao" type="1" cache="true" memo="科室表_门诊住院接诊科室">
<sql> select a.DPTID,a.DPTCODE,a.DPTNAME,a.ISLIS,a.DPTZJM,b.MC from MAIN_KS a
left join MAIN_ZDB b on b.ZDZB_BH='100009' and b.zt=1 and a.DPTTYPE=b.BH
where DPTFLAG='1' and (DPTTYPE='1' or DPTTYPE='7') and JGID=?</sql>
<fields>
<f name="DPTID" type="12" />
<f name="DPTCODE" type="12" />
<f name="DPTNAME" type="12" />
<f name="ISLIS" type="12" />
<f name="DPTZJM" type="12" />
<f name="MC" type="12" />
</fields>
<parameter>
<p>12</p>
</parameter>
</dao>
<dao id="lisjgrydao" type="1" memo="LIS操作人员">
<sql>select b.USERACCOUNT,b.NAME,b.SEX,b.PYM,d.DPTID,d.DPTNAME,b.YBUSERNAME,a.YBID,a.YBNAME from MAIN_JGYH a
left join MAIN_YHXX b on a.EMPID=b.EMPID
left join MAIN_YHGLKS c on a.JGID=c.JGID and a.EMPID=c.EMPID and c.SCBZ='0'
left join MAIN_KS d on c.JGID=d.JGID and c.KSBM=d.DPTID
where a.JGID=? and a.EFFICET='0' and d.DPTTYPE='2' and d.ISLIS='1'</sql>
<fields>
<f name="USERACCOUNT" type="12" />
<f name="NAME" type="12" />
<f name="SEX" type="12" />
<f name="PYM" type="12" />
<f name="DPTID" type="12" />
<f name="DPTNAME" type="12" />
<f name="YBUSERNAME" type="12" />
<f name="YBID" type="12" />
<f name="YBNAME" type="12" />
</fields>
<parameter>
<p>12</p>
</parameter>
</dao>
<dao id="lisrycsdao" log="true" type="1">
<sql>
select PKEY,JGID,USERACCOUNT,CSLB,CSZ,BZ from LIS_RYCS where JGID=? and USERACCOUNT=?
</sql>
<tables>
<table name="LIS_RYCS" insert="true" update="true" delete="true">
<primary>PKEY</primary>
</table>
</tables>
<fields>
<f name="PKEY" type="12" table="LIS_RYCS" />
<f name="JGID" type="12" table="LIS_RYCS" />
<f name="USERACCOUNT" type="12" table="LIS_RYCS" />
<f name="CSLB" type="12" table="LIS_RYCS" />
<f name="CSZ" type="12" table="LIS_RYCS" />
<f name="BZ" type="12" table="LIS_RYCS" />
</fields>
<parameter>
<p>12</p>
<p>12</p>
</parameter>
</dao>
<dao id="ryksdao" type="1" memo="用户对应科室">
<sql>select a.KSBM,b.DPTNAME KSMC,b.DPTTYPE,b.DPTGPID
from MAIN_YHXX e
left join MAIN_YHGLKS a on a.EMPID=e.EMPID
left join MAIN_KS b on a.JGID=b.JGID and a.KSBM=b.DPTID
where a.SCBZ='0' and a.KSBM is not null and a.JGID=? and e.USERACCOUNT=?</sql>
<fields>
<f name="KSBM" type="12" />
<f name="KSMC" type="12" />
<f name="DPTTYPE" type="12" />
<f name="DPTGPID" type="12" />
</fields>
<parameter>
<p>12</p>
<p>12</p>
</parameter>
</dao>
<dao id="lissqxxdao" log="true" type="1">
<sql>
select distinct a.PKEY,a.HZPKEY,a.JZLX,a.ISJZ,a.JJKS,a.JJRQ,a.JJYS,a.RYBED,a.RYWARD,a.JZNO,a.JZNL,a.JZKH,b.xm,b.xb,b.CSRQ,b.ZJHM,b.PIC,a.JGID,bq.MC BQMC,cw.MC CWMC
from HIS_YZ_EXEC yz
left join HIS_JZ_BASEINFO a on a.pkey=yz.JZPKEY and a.HZPKEY=yz.hzpkey and a.JGID=yz.JGID
left join HIS_HZINFO b on a.hzpkey = b.pkey and a.JGID=b.JGID
left join HIS_YZX_JCJY j on yz.JGID=j.JGID and yz.YZXPKEY=j.YZXPKEY
left join HIS_BQ bq on a.JGID=bq.JGID and a.RYWARD=bq.PKEY
left join HIS_BQCW cw on a.JGID=cw.JGID and a.RYBED=cw.PKEY
where yz.ZXFLAG='1' and j.ISLIS='1' and yz.JGID=? and yz.ZXTIME between ? and ? and a.JZLX like ? and (a.JZNO like ? or a.JZKH like ? or b.XM like ?) #select#
</sql>
<fields>
<f name="PKEY" type="12" />
<f name="HZPKEY" type="12" />
<f name="JZLX" type="12" />
<f name="ISJZ" type="12" />
<f name="JJKS" type="12" />
<f name="JJRQ" type="93" />
<f name="JJYS" type="12" />
<f name="RYBED" type="12" />
<f name="RYWARD" type="12" />
<f name="JZNO" type="12" />
<f name="JZNL" type="12" />
<f name="JZKH" type="12" />
<f name="XM" type="12" />
<f name="XB" type="12" />
<f name="CSRQ" type="93" />
<f name="ZJHM" type="12" />
<f name="PIC" type="12" />
<f name="JGID" type="12" />
<f name="BQMC" type="12" />
<f name="CWMC" type="12" />
</fields>
<parameter>
<p>12</p>
<p>93</p>
<p>93</p>
<p>12</p>
<p>12</p>
<p>12</p>
<p>12</p>
</parameter>
</dao>
<dao id="lissqxxpkeydao" log="true" type="1">
<sql>
select a.PKEY,a.HZPKEY,a.JZLX,a.ISJZ,a.JJKS,a.JJRQ,a.JJYS,a.RYBED,a.RYWARD,a.JZNO,a.JZNL,a.JZKH,b.xm,b.xb,b.CSRQ,b.ZJHM,b.PIC,a.JGID,bq.MC BQMC,cw.MC CWMC
from HIS_JZ_BASEINFO a
left join HIS_HZINFO b on a.hzpkey = b.pkey and a.JGID=b.JGID
left join HIS_BQ bq on a.JGID=bq.JGID and a.RYWARD=bq.PKEY
left join HIS_BQCW cw on a.JGID=cw.JGID and a.RYBED=cw.PKEY
where a.JGID=? and a.PKEY=?
</sql>
<fields>
<f name="PKEY" type="12" />
<f name="HZPKEY" type="12" />
<f name="JZLX" type="12" />
<f name="ISJZ" type="12" />
<f name="JJKS" type="12" />
<f name="JJRQ" type="93" />
<f name="JJYS" type="12" />
<f name="RYBED" type="12" />
<f name="RYWARD" type="12" />
<f name="JZNO" type="12" />
<f name="JZNL" type="12" />
<f name="JZKH" type="12" />
<f name="XM" type="12" />
<f name="XB" type="12" />
<f name="CSRQ" type="93" />
<f name="ZJHM" type="12" />
<f name="PIC" type="12" />
<f name="JGID" type="12" />
<f name="BQMC" type="12" />
<f name="CWMC" type="12" />
</fields>
<parameter>
<p>12</p>
<p>12</p>
</parameter>
</dao>
<dao id="lisxmsqmx" type="1" memo="检验申请明细">
<sql><![CDATA[select
nvl(f.JYZT,'0') JYZT,f.TMH,f.CYSJ,f.CYYS,f.QSSJ,f.QSYS,f.DYSJ,f.JGID as 申请表chos,f.pkey,f.LSH,f.ZHXM,f.ZHXMMC,f.DJYS,f.DJSJ,f.QTJG as 主院外CHO,
f.QTJGBM as 主院外项目 , b.MC ,t.JGID,t.YZXPKEY BM,t.LISCF as 拆分主标志 ,t.BBTM as 主条码,t.PKEY RKEY,j.XMFL,j.SGLX,j.YBLX,j.GW,j.JYCF, e.CFBZ as 拆分从标志,
e.RKEY as 拆分rkey,e.JGID as 拆分chos,e.YXMBH,e.XXMBH,e.XTMH,b.BM XMBM,
j.QTJG,j.QTJGBM,j.ISYW,e.BLH,e.QTJG as 拆分院外chos,e.QTJGBM as 拆分院外项目,f.CFBZ,f.YQTJGBM,f.FYZHXM,f.FYZHXMMC,nvl(s.QZ,'00') ybqz
from HIS_YZ_EXEC t
left join LIS_XMCF e on t.PKEY=e.RKEY and t.JGID=e.JGID
left join HIS_YZX b on t.JGID =b.JGID and nvl(e.XXMBH,t.YZXPKEY) = b.BM
left join HIS_YZX_JCJY j on t.JGID=j.JGID and t.YZXPKEY=j.YZXPKEY
left join LIS_JYXMSQ f on f.JGID =t.JGID and f.TMH=nvl(e.XTMH,t.BBTM) and f.ZHXM =b.BM
left join LIS_SGLX s on j.JGID=s.JGID and j.SGLX=s.BH
where t.ZXFLAG='1' and j.ISLIS='1' and t.JGID =? and t.JZPKEY=? and nvl(f.JYZT,'0') like ?
order by t.ZXTIME desc, nvl(f.JYZT,'0') asc,nvl(f.TMH,'0') asc,b.BM asc
]]></sql>
<tables>
<table delete="true" insert="true" name="LIS_XMCF" update="true">
<primary>XXMBH</primary>
<primary>YXMBH</primary>
<primary>拆分rkey</primary>
</table>
<table delete="true" insert="true" name="HIS_YZ_EXEC" update="true">
<primary>RKEY</primary>
<primary>JGID</primary>
</table>
<table delete="true" insert="true" name="LIS_JYXMSQ" update="true">
<primary>LSH</primary>
<primary>PKEY</primary>
<primary>ZHXM</primary>
</table>
</tables>
<fields>
<f name="JYZT" table="LIS_JYXMSQ" type="12"/>
<f name="TMH" table="LIS_JYXMSQ" type="12"/>
<f name="CYSJ" table="LIS_JYXMSQ" type="93"/>
<f name="CYYS" table="LIS_JYXMSQ" type="12"/>
<f name="QSSJ" table="LIS_JYXMSQ" type="93"/>
<f name="QSYS" table="LIS_JYXMSQ" type="12"/>
<f name="DYSJ" table="LIS_JYXMSQ" type="93"/>
<f name="申请表CHOS" schemaname="JGID" table="LIS_JYXMSQ" type="12"/>
<f name="PKEY" table="LIS_JYXMSQ" type="-5"/>
<f name="LSH" table="LIS_JYXMSQ" type="12"/>
<f name="ZHXM" table="LIS_JYXMSQ" type="12"/>
<f name="ZHXMMC" table="LIS_JYXMSQ" type="12"/>
<f name="DJYS" table="LIS_JYXMSQ" type="12"/>
<f name="DJSJ" table="LIS_JYXMSQ" type="93"/>
<f name="主院外CHO" schemaname="QTJG" table="LIS_JYXMSQ" type="12"/>
<f name="主院外项目" schemaname="QTJGBM" table="LIS_JYXMSQ" type="12"/>
<f name="MC" type="12"/>
<f name="JGID" table="HIS_YZ_EXEC" type="12"/>
<f name="BM" type="12"/>
<f name="拆分主标志" schemaname="LISCF" table="HIS_YZ_EXEC" type="12"/>
<f name="主条码" schemaname="BBTM" table="HIS_YZ_EXEC" type="12"/>
<f name="RKEY" schemaname="PKEY" table="HIS_YZ_EXEC" type="12"/>
<f name="XMFL" type="12"/>
<f name="SGLX" type="12"/>
<f name="YBLX" type="12"/>
<f name="GW" type="12"/>
<f name="JYCF" type="12"/>
<f name="拆分从标志" schemaname="CFBZ" table="LIS_XMCF" type="12"/>
<f name="拆分rkey" schemaname="RKEY" table="LIS_XMCF" type="12"/>
<f name="拆分CHOS" schemaname="JGID" table="LIS_XMCF" type="12"/>
<f name="YXMBH" table="LIS_XMCF" type="12"/>
<f name="XXMBH" table="LIS_XMCF" type="12"/>
<f name="XTMH" table="LIS_XMCF" type="12"/>
<f name="XMBM" type="12"/>
<f name="QTJG" type="12"/>
<f name="QTJGBM" type="12"/>
<f name="ISYW" type="12"/>
<f name="BLH" table="LIS_XMCF" type="12"/>
<f name="拆分院外chos" schemaname="QTJG" table="LIS_XMCF" type="12"/>
<f name="拆分院外项目" schemaname="QTJGBM" table="LIS_XMCF" type="12"/>
<f name="CFBZ" table="LIS_JYXMSQ" type="12"/>
<f name="YQTJGBM" table="LIS_JYXMSQ" type="12"/>
<f name="FYZHXM" table="LIS_JYXMSQ" type="12"/>
<f name="FYZHXMMC" table="LIS_JYXMSQ" type="12"/>
<f name="YBQZ" type="12"/>
</fields>
<parameter>
<p>12</p>
<p>12</p>
<p>12</p>
</parameter>
</dao>
<dao id="jyquerydao" type="1">
<sql> select distinct a.TMH,a.BLH,a.KBM,a.KLS,a.CH,a.BRLX,a.XM,a.XB,a.NL,a.NLDW,a.SJKS,a.SJYS,a.SJSJ,a.CYSJ,a.DYBZ,
a.CSRQ,a.JYZT,a.QSSJ,b.DYSJ,a.DYCS,a.JJ,j.YBLX YBLX,a.JGID,a.HZPKEY,a.ZJHM,j.XMFL XMFL,b.ZHXM,b.JYZT
XMZT,b.QTJG,y.BM XMBM,y.MC XMMC,b.CFBZ,a.NLY,a.NLT
from LIS_JYXMSQ b
left join LIS_JYBRXX a on a.LSH = b.LSH and a.JGID =b.JGID and a.TMH =b.TMH
left join HIS_YZX_JCJY j on b.JGID=j.JGID and b.ZHXM=j.YZXPKEY
left join HIS_YZX y on y.JGID=j.JGID and y.BM=j.YZXPKEY
where b.JGID = ? and b.TMH = ?
union
select distinct a.TMH,a.BLH,a.KBM,a.KLS,a.CH,a.BRLX,a.XM,a.XB,a.NL,a.NLDW,a.SJKS,a.SJYS,a.SJSJ,a.CYSJ,a.DYBZ,
a.CSRQ,a.JYZT,a.QSSJ,b.DYSJ,a.DYCS,a.JJ,j.YBLX YBLX,a.JGID,a.HZPKEY,a.ZJHM,j.XMFL XMFL,b.QTJGBM as ZHXM,b.JYZT
XMZT,b.QTJG,y.BM XMBM,y.MC XMMC,b.CFBZ,a.NLY,a.NLT
from LIS_JYXMSQ b
left join LIS_JYBRXX a on a.LSH = b.LSH and a.QTJG =b.QTJG and a.TMH =b.TMH
left join HIS_YZX_JCJY j on b.QTJG=j.QTJG and b.QTJGBM=j.QTJGBM
left join HIS_YZX y on y.JGID=j.JGID and y.BM=j.YZXPKEY
where b.QTJG = ? and b.TMH = ?
</sql>
<tables>
<table delete="false" insert="false" name="LIS_JYBRXX" update="false">
<primary>TMH</primary>
<primary>BLH</primary>
<primary>JGID</primary>
</table>
</tables>
<fields>
<f name="TMH" table="LIS_JYBRXX" type="12"/>
<f name="BLH" table="LIS_JYBRXX" type="12"/>
<f name="KBM" table="LIS_JYBRXX" type="12"/>
<f name="KLS" table="LIS_JYBRXX" type="12"/>
<f name="CH" table="LIS_JYBRXX" type="12"/>
<f name="BRLX" table="LIS_JYBRXX" type="12"/>
<f name="XM" table="LIS_JYBRXX" type="12"/>
<f name="XB" table="LIS_JYBRXX" type="12"/>
<f name="NL" table="LIS_JYBRXX" type="12"/>
<f name="NLDW" table="LIS_JYBRXX" type="12"/>
<f name="SJKS" table="LIS_JYBRXX" type="12"/>
<f name="SJYS" table="LIS_JYBRXX" type="12"/>
<f name="SJSJ" table="LIS_JYBRXX" type="93"/>
<f name="CYSJ" table="LIS_JYBRXX" type="93"/>
<f name="DYBZ" table="LIS_JYBRXX" type="12"/>
<f name="CSRQ" table="LIS_JYBRXX" type="93"/>
<f name="JYZT" table="LIS_JYBRXX" type="12"/>
<f name="QSSJ" table="LIS_JYBRXX" type="93"/>
<f name="DYSJ" type="93"/>
<f name="DYCS" table="LIS_JYBRXX" type="-5"/>
<f name="JJ" table="LIS_JYBRXX" type="12"/>
<f name="YBLX" type="12"/>
<f name="JGID" table="LIS_JYBRXX" type="12"/>
<f name="HZPKEY" table="LIS_JYBRXX" type="12"/>
<f name="ZJHM" table="LIS_JYBRXX" type="12"/>
<f name="XMFL" type="12"/>
<f name="ZHXM" type="12"/>
<f name="XMZT" type="12"/>
<f name="QTJG" type="12"/>
<f name="XMBM" type="12"/>
<f name="XMMC" type="12"/>
<f name="CFBZ" type="12"/>
<f name="NLY" type="12"/>
<f name="NLT" type="12"/>
</fields>
<parameter>
<p>12</p>
<p>12</p>
<p>12</p>
<p>12</p>
</parameter>
</dao>
<dao id="jybrxmbdao" type="1">
<sql>select
LSH,TMH,BLH,KBM,KLS,CH,BRLX,XM,XB,NL,CSRQ,JZ,JJ,SJKS,SJYS,SJSJ,DJYS,DJSJ,CYYS,CYSJ,QSYS,QSSJ,DYBZ,DYCS,JGID,JYZT,QTJG,
HZPKEY,ZJHM,WSQRYS,WSQRSJ,WSQRBZ,YSRY,YSSJ,YSBZ,NLY,NLT
from LIS_JYBRXX where JGID=? and BRLX=? and BLH =?</sql>
<tables>
<table delete="true" insert="true" name="LIS_JYBRXX" update="true">
<primary>LSH</primary>
</table>
</tables>
<fields>
<f name="LSH" table="LIS_JYBRXX" type="12"/>
<f name="TMH" table="LIS_JYBRXX" type="12"/>
<f name="BLH" table="LIS_JYBRXX" type="12"/>
<f name="KBM" table="LIS_JYBRXX" type="12"/>
<f name="KLS" table="LIS_JYBRXX" type="12"/>
<f name="CH" table="LIS_JYBRXX" type="12"/>
<f name="BRLX" table="LIS_JYBRXX" type="12"/>
<f name="XM" table="LIS_JYBRXX" type="12"/>
<f name="XB" table="LIS_JYBRXX" type="12"/>
<f name="NL" table="LIS_JYBRXX" type="12"/>
<f name="CSRQ" table="LIS_JYBRXX" type="93"/>
<f name="JZ" table="LIS_JYBRXX" type="12"/>
<f name="JJ" table="LIS_JYBRXX" type="12"/>
<f name="SJKS" table="LIS_JYBRXX" type="12"/>
<f name="SJYS" table="LIS_JYBRXX" type="12"/>
<f name="SJSJ" table="LIS_JYBRXX" type="93"/>
<f name="DJYS" table="LIS_JYBRXX" type="12"/>
<f name="DJSJ" table="LIS_JYBRXX" type="93"/>
<f name="CYYS" table="LIS_JYBRXX" type="12"/>
<f name="CYSJ" table="LIS_JYBRXX" type="93"/>
<f name="QSYS" table="LIS_JYBRXX" type="12"/>
<f name="QSSJ" table="LIS_JYBRXX" type="93"/>
<f name="DYBZ" table="LIS_JYBRXX" type="12"/>
<f name="DYCS" table="LIS_JYBRXX" type="-5"/>
<f name="JGID" table="LIS_JYBRXX" type="12"/>
<f name="JYZT" table="LIS_JYBRXX" type="12"/>
<f name="QTJG" table="LIS_JYBRXX" type="12"/>
<f name="HZPKEY" table="LIS_JYBRXX" type="12"/>
<f name="ZJHM" table="LIS_JYBRXX" type="12"/>
<f name="WSQRYS" table="LIS_JYBRXX" type="12"/>
<f name="WSQRSJ" table="LIS_JYBRXX" type="93"/>
<f name="WSQRBZ" table="LIS_JYBRXX" type="12"/>
<f name="YSRY" table="LIS_JYBRXX" type="12"/>
<f name="YSSJ" table="LIS_JYBRXX" type="93"/>
<f name="YSBZ" table="LIS_JYBRXX" type="12"/>
<f name="NLY" table="LIS_JYBRXX" type="12"/>
<f name="NLT" table="LIS_JYBRXX" type="12"/>
</fields>
<parameter>
<p>12</p>
<p>12</p>
<p>12</p>
</parameter>
</dao>
<dao id="jyxmdeldao" type="1">
<sql>select pkey,LSH,TMH,ZHXM,JGID from LIS_JYXMSQ where JGID=? and pkey=? and LSH=? and ZHXM=?</sql>
<tables>
<table delete="true" insert="true" name="LIS_JYXMSQ" update="true">
<primary>LSH</primary>
<primary>ZHXM</primary>
<primary>PKEY</primary>
</table>
</tables>
<fields>
<f name="PKEY" table="LIS_JYXMSQ" type="-5"/>
<f name="LSH" table="LIS_JYXMSQ" type="12"/>
<f name="TMH" table="LIS_JYXMSQ" type="12"/>
<f name="ZHXM" table="LIS_JYXMSQ" type="12"/>
<f name="JGID" table="LIS_JYXMSQ" type="12"/>
</fields>
<parameter>
<p>12</p>
<p>12</p>
<p>12</p>
<p>12</p>
</parameter>
</dao>
<dao id="jybrdeldao" type="1">
<sql>select a.LSH from LIS_JYBRXX a where a.JGID =? and
a.LSH=? and not exists(select 1 from LIS_JYXMSQ b where a.LSH= b.LSH and a.JGID =b.JGID)</sql>
<tables>
<table delete="true" insert="true" name="LIS_JYBRXX" update="true">
<primary>LSH</primary>
</table>
</tables>
<fields>
<f name="LSH" table="LIS_JYBRXX" type="12"/>
</fields>
<parameter>
<p>12</p>
<p>12</p>
</parameter>
</dao>
<dao id="alljybrxxdao" type="1">
<sql><![CDATA[
select LSH,TMH,BLH,KBM,KLS,BQ,CH,BRLX,XM,XB,NL,CSRQ,JZ,JJ,SJKS,SJYS,SJSJ,DJYS,DJSJ,CYYS,CYSJ,QSYS,QSSJ,JGID,JYZT,DYCS,QTJG,WSQRBZ
from LIS_JYBRXX where JGID =? and DJSJ >=? and DJSJ <=? and JYZT like ? and TMH like ? and BRLX like ? and TO_CHAR(JYZT, '99')>=0
union
select LSH,TMH,BLH,KBM,KLS,BQ,CH,BRLX,XM,XB,NL,CSRQ,JZ,JJ,SJKS,SJYS,SJSJ,DJYS,DJSJ,CYYS,CYSJ,QSYS,QSSJ,JGID,JYZT,DYCS,QTJG,WSQRBZ
from LIS_JYBRXX a
where QTJG =? and DJSJ >=? and DJSJ <=? and JYZT like ? and TMH like ? and BRLX like ? and TO_CHAR(JYZT, '99')>=0
AND TMH IN ( SELECT TMH FROM LIS_JYXMSQ WHERE QTJG=a.QTJG AND NVL(WSQRBZ,'-1')='1' AND NVL(YSBZ,'-1')='1')
]]></sql>
<tables>
<table delete="true" insert="true" name="LIS_JYBRXX" update="true">
<primary>LSH</primary>
</table>
</tables>
<fields>
<f name="LSH" table="LIS_JYBRXX" type="12"/>
<f name="TMH" table="LIS_JYBRXX" type="12"/>
<f name="BLH" table="LIS_JYBRXX" type="12"/>
<f name="KBM" table="LIS_JYBRXX" type="12"/>
<f name="KLS" table="LIS_JYBRXX" type="12"/>
<f name="BQ" table="LIS_JYBRXX" type="12"/>
<f name="CH" table="LIS_JYBRXX" type="12"/>
<f name="BRLX" table="LIS_JYBRXX" type="12"/>
<f name="XM" table="LIS_JYBRXX" type="12"/>
<f name="XB" table="LIS_JYBRXX" type="12"/>
<f name="NL" table="LIS_JYBRXX" type="12"/>
<f name="CSRQ" table="LIS_JYBRXX" type="93"/>
<f name="JZ" table="LIS_JYBRXX" type="12"/>
<f name="JJ" table="LIS_JYBRXX" type="12"/>
<f name="SJKS" table="LIS_JYBRXX" type="12"/>
<f name="SJYS" table="LIS_JYBRXX" type="12"/>
<f name="SJSJ" table="LIS_JYBRXX" type="93"/>
<f name="DJYS" table="LIS_JYBRXX" type="12"/>
<f name="DJSJ" table="LIS_JYBRXX" type="93"/>
<f name="CYYS" table="LIS_JYBRXX" type="12"/>
<f name="CYSJ" table="LIS_JYBRXX" type="93"/>
<f name="QSYS" table="LIS_JYBRXX" type="12"/>
<f name="QSSJ" table="LIS_JYBRXX" type="93"/>
<f name="JGID" table="LIS_JYBRXX" type="12"/>
<f name="JYZT" table="LIS_JYBRXX" type="12"/>
<f name="DYCS" table="LIS_JYBRXX" type="-5"/>
<f name="QTJG" table="LIS_JYBRXX" type="12"/>
<f name="WSQRBZ" table="LIS_JYBRXX" type="12"/>
</fields>
<parameter>
<p>12</p>
<p>93</p>
<p>93</p>
<p>12</p>
<p>12</p>
<p>12</p>
<p>12</p>
<p>93</p>
<p>93</p>
<p>12</p>
<p>12</p>
<p>12</p>
</parameter>
</dao>
<dao id="jybrxxdao" type="1">
<sql><![CDATA[select LSH,TMH,BLH,KBM,KLS,BQ,CH,BRLX,XM,XB,NL,CSRQ,JZ,JJ,SJKS,SJYS,SJSJ,DJYS,DJSJ,CYYS,CYSJ,QSYS,QSSJ,JGID,JYZT,DYCS,QTJG
from LIS_JYBRXX
where JGID =? and DJSJ >=? and DJSJ <=? and JYZT like ? and TMH like ? and BRLX like ? and TO_CHAR(JYZT, '99')>=0
]]></sql>
<tables>
<table delete="true" insert="true" name="LIS_JYBRXX" update="true">
<primary>LSH</primary>
</table>
</tables>
<fields>
<f name="LSH" table="LIS_JYBRXX" type="12"/>
<f name="TMH" table="LIS_JYBRXX" type="12"/>
<f name="BLH" table="LIS_JYBRXX" type="12"/>
<f name="KBM" table="LIS_JYBRXX" type="12"/>
<f name="KLS" table="LIS_JYBRXX" type="12"/>
<f name="BQ" table="LIS_JYBRXX" type="12"/>
<f name="CH" table="LIS_JYBRXX" type="12"/>
<f name="BRLX" table="LIS_JYBRXX" type="12"/>
<f name="XM" table="LIS_JYBRXX" type="12"/>
<f name="XB" table="LIS_JYBRXX" type="12"/>
<f name="NL" table="LIS_JYBRXX" type="12"/>
<f name="CSRQ" table="LIS_JYBRXX" type="93"/>
<f name="JZ" table="LIS_JYBRXX" type="12"/>
<f name="JJ" table="LIS_JYBRXX" type="12"/>
<f name="SJKS" table="LIS_JYBRXX" type="12"/>
<f name="SJYS" table="LIS_JYBRXX" type="12"/>
<f name="SJSJ" table="LIS_JYBRXX" type="93"/>
<f name="DJYS" table="LIS_JYBRXX" type="12"/>
<f name="DJSJ" table="LIS_JYBRXX" type="93"/>
<f name="CYYS" table="LIS_JYBRXX" type="12"/>
<f name="CYSJ" table="LIS_JYBRXX" type="93"/>
<f name="QSYS" table="LIS_JYBRXX" type="12"/>
<f name="QSSJ" table="LIS_JYBRXX" type="93"/>
<f name="JGID" table="LIS_JYBRXX" type="12"/>
<f name="JYZT" table="LIS_JYBRXX" type="12"/>
<f name="DYCS" table="LIS_JYBRXX" type="-5"/>
<f name="QTJG" table="LIS_JYBRXX" type="12"/>
</fields>
<parameter>
<p>12</p>
<p>93</p>
<p>93</p>
<p>12</p>
<p>12</p>
<p>12</p>
</parameter>
</dao>
<dao id="sjjybrxxdao" type="1">
<sql><![CDATA[select LSH,TMH,BLH,KBM,KLS,BQ,CH,BRLX,XM,XB,NL,CSRQ,JZ,JJ,SJKS,SJYS,SJSJ,DJYS,DJSJ,CYYS,CYSJ,QSYS,QSSJ,JGID,JYZT,DYCS,QTJG,BTMH,WSQRYS,WSQRSJ,nvl(WSQRBZ ,0) WSQRBZ,YSBZ
from LIS_JYBRXX
where JGID =? AND QTJG IS NOT NULL and DJSJ >=? and DJSJ <=? and WSQRBZ like ? and TMH like ? and BRLX like ? and TO_CHAR(JYZT, '99')>=0]]></sql>
<tables>
<table delete="true" insert="true" name="LIS_JYBRXX" update="true">
<primary>LSH</primary>
<primary>JGID</primary>
<primary>TMH</primary>
</table>
</tables>
<fields>
<f name="LSH" table="LIS_JYBRXX" type="12"/>
<f name="TMH" table="LIS_JYBRXX" type="12"/>
<f name="BLH" table="LIS_JYBRXX" type="12"/>
<f name="KBM" table="LIS_JYBRXX" type="12"/>
<f name="KLS" table="LIS_JYBRXX" type="12"/>
<f name="BQ" table="LIS_JYBRXX" type="12"/>
<f name="CH" table="LIS_JYBRXX" type="12"/>
<f name="BRLX" table="LIS_JYBRXX" type="12"/>
<f name="XM" table="LIS_JYBRXX" type="12"/>
<f name="XB" table="LIS_JYBRXX" type="12"/>
<f name="NL" table="LIS_JYBRXX" type="12"/>
<f name="CSRQ" table="LIS_JYBRXX" type="93"/>
<f name="JZ" table="LIS_JYBRXX" type="12"/>
<f name="JJ" table="LIS_JYBRXX" type="12"/>
<f name="SJKS" table="LIS_JYBRXX" type="12"/>
<f name="SJYS" table="LIS_JYBRXX" type="12"/>
<f name="SJSJ" table="LIS_JYBRXX" type="93"/>
<f name="DJYS" table="LIS_JYBRXX" type="12"/>
<f name="DJSJ" table="LIS_JYBRXX" type="93"/>
<f name="CYYS" table="LIS_JYBRXX" type="12"/>
<f name="CYSJ" table="LIS_JYBRXX" type="93"/>
<f name="QSYS" table="LIS_JYBRXX" type="12"/>
<f name="QSSJ" table="LIS_JYBRXX" type="93"/>
<f name="JGID" table="LIS_JYBRXX" type="12"/>
<f name="JYZT" table="LIS_JYBRXX" type="12"/>
<f name="DYCS" table="LIS_JYBRXX" type="-5"/>
<f name="QTJG" table="LIS_JYBRXX" type="12"/>
<f name="BTMH" table="LIS_JYBRXX" type="12"/>
<f name="WSQRYS" table="LIS_JYBRXX" type="12"/>
<f name="WSQRSJ" table="LIS_JYBRXX" type="93"/>
<f name="WSQRBZ" table="LIS_JYBRXX" type="12"/>
<f name="YSBZ" table="LIS_JYBRXX" type="12"/>
</fields>
<parameter>
<p>12</p>
<p>93</p>
<p>93</p>
<p>12</p>
<p>12</p>
<p>12</p>
</parameter>
</dao>
<dao id="wjjybrxxdao" type="1">
<sql><![CDATA[select LSH,TMH,BLH,KBM,KLS,BQ,CH,BRLX,XM,XB,NL,CSRQ,JZ,JJ,SJKS,SJYS,SJSJ,DJYS,DJSJ,CYYS,CYSJ,QSYS,QSSJ,JGID,JYZT,DYCS,QTJG,BTMH,WSQRYS,WSQRSJ,nvl(WSQRBZ ,0) WSQRBZ,YSBZ,YSRY,YSSJ
from LIS_JYBRXX
where QTJG =? AND QTJG IS NOT NULL and YSSJ >=? and YSSJ <=? and YSBZ = '1' and TMH like ? and BRLX like ? and JYZT like ? and JGID like ?
]]></sql>
<tables>
<table delete="true" insert="true" name="LIS_JYBRXX" update="true">
<primary>LSH</primary>
</table>
</tables>
<fields>
<f name="LSH" table="LIS_JYBRXX" type="12"/>
<f name="TMH" table="LIS_JYBRXX" type="12"/>
<f name="BLH" table="LIS_JYBRXX" type="12"/>
<f name="KBM" table="LIS_JYBRXX" type="12"/>
<f name="KLS" table="LIS_JYBRXX" type="12"/>
<f name="BQ" table="LIS_JYBRXX" type="12"/>
<f name="CH" table="LIS_JYBRXX" type="12"/>
<f name="BRLX" table="LIS_JYBRXX" type="12"/>
<f name="XM" table="LIS_JYBRXX" type="12"/>
<f name="XB" table="LIS_JYBRXX" type="12"/>
<f name="NL" table="LIS_JYBRXX" type="12"/>
<f name="CSRQ" table="LIS_JYBRXX" type="93"/>
<f name="JZ" table="LIS_JYBRXX" type="12"/>
<f name="JJ" table="LIS_JYBRXX" type="12"/>
<f name="SJKS" table="LIS_JYBRXX" type="12"/>
<f name="SJYS" table="LIS_JYBRXX" type="12"/>
<f name="SJSJ" table="LIS_JYBRXX" type="93"/>
<f name="DJYS" table="LIS_JYBRXX" type="12"/>
<f name="DJSJ" table="LIS_JYBRXX" type="93"/>
<f name="CYYS" table="LIS_JYBRXX" type="12"/>
<f name="CYSJ" table="LIS_JYBRXX" type="93"/>
<f name="QSYS" table="LIS_JYBRXX" type="12"/>
<f name="QSSJ" table="LIS_JYBRXX" type="93"/>
<f name="JGID" table="LIS_JYBRXX" type="12"/>
<f name="JYZT" table="LIS_JYBRXX" type="12"/>
<f name="DYCS" table="LIS_JYBRXX" type="-5"/>
<f name="QTJG" table="LIS_JYBRXX" type="12"/>
<f name="BTMH" table="LIS_JYBRXX" type="12"/>
<f name="WSQRYS" table="LIS_JYBRXX" type="12"/>
<f name="WSQRSJ" table="LIS_JYBRXX" type="93"/>
<f name="WSQRBZ" table="LIS_JYBRXX" type="12"/>
<f name="YSBZ" table="LIS_JYBRXX" type="12"/>
<f name="YSRY" table="LIS_JYBRXX" type="12"/>
<f name="YSSJ" table="LIS_JYBRXX" type="93"/>
</fields>
<parameter>
<p>12</p>
<p>93</p>
<p>93</p>
<p>12</p>
<p>12</p>
<p>12</p>
<p>12</p>
</parameter>
</dao>
<dao id="wjjybrxxTreedao" type="1">
<sql><![CDATA[select LSH,TMH,BLH,KBM,KLS,BQ,CH,BRLX,XM,XB,NL,CSRQ,JZ,JJ,SJKS,SJYS,SJSJ,DJYS,DJSJ,CYYS,CYSJ,QSYS,QSSJ,JGID,JYZT,DYCS,QTJG,BTMH,WSQRYS,WSQRSJ,nvl(WSQRBZ ,0) WSQRBZ,YSBZ,YSRY,YSSJ
from LIS_JYBRXX
where JGID =? and QTJG =? and YSBZ = '1' and YSSJ>= ? and YSSJ <= ? and TO_CHAR(JYZT, '99')>=0
]]></sql>
<tables>
<table delete="true" insert="true" name="LIS_JYBRXX" update="true">
<primary>LSH</primary>
</table>
</tables>
<fields>
<f name="LSH" table="LIS_JYBRXX" type="12"/>
<f name="TMH" table="LIS_JYBRXX" type="12"/>
<f name="BLH" table="LIS_JYBRXX" type="12"/>
<f name="KBM" table="LIS_JYBRXX" type="12"/>
<f name="KLS" table="LIS_JYBRXX" type="12"/>
<f name="BQ" table="LIS_JYBRXX" type="12"/>
<f name="CH" table="LIS_JYBRXX" type="12"/>
<f name="BRLX" table="LIS_JYBRXX" type="12"/>
<f name="XM" table="LIS_JYBRXX" type="12"/>
<f name="XB" table="LIS_JYBRXX" type="12"/>
<f name="NL" table="LIS_JYBRXX" type="12"/>
<f name="CSRQ" table="LIS_JYBRXX" type="93"/>
<f name="JZ" table="LIS_JYBRXX" type="12"/>
<f name="JJ" table="LIS_JYBRXX" type="12"/>
<f name="SJKS" table="LIS_JYBRXX" type="12"/>
<f name="SJYS" table="LIS_JYBRXX" type="12"/>
<f name="SJSJ" table="LIS_JYBRXX" type="93"/>
<f name="DJYS" table="LIS_JYBRXX" type="12"/>
<f name="DJSJ" table="LIS_JYBRXX" type="93"/>
<f name="CYYS" table="LIS_JYBRXX" type="12"/>
<f name="CYSJ" table="LIS_JYBRXX" type="93"/>
<f name="QSYS" table="LIS_JYBRXX" type="12"/>
<f name="QSSJ" table="LIS_JYBRXX" type="93"/>
<f name="JGID" table="LIS_JYBRXX" type="12"/>
<f name="JYZT" table="LIS_JYBRXX" type="12"/>
<f name="DYCS" table="LIS_JYBRXX" type="-5"/>
<f name="QTJG" table="LIS_JYBRXX" type="12"/>
<f name="BTMH" table="LIS_JYBRXX" type="12"/>
<f name="WSQRYS" table="LIS_JYBRXX" type="12"/>
<f name="WSQRSJ" table="LIS_JYBRXX" type="93"/>
<f name="WSQRBZ" table="LIS_JYBRXX" type="12"/>
<f name="YSBZ" table="LIS_JYBRXX" type="12"/>
<f name="YSRY" table="LIS_JYBRXX" type="12"/>
<f name="YSSJ" table="LIS_JYBRXX" type="93"/>
</fields>
<parameter>
<p>12</p>
<p>12</p>
<p>93</p>
<p>93</p>
</parameter>
</dao>
<dao id="jybrxxTreedao" type="1">
<sql><![CDATA[select LSH,TMH,BLH,KBM,KLS,BQ,CH,BRLX,XM,XB,NL,CSRQ,JZ,JJ,SJKS,SJYS,SJSJ,DJYS,DJSJ,CYYS,CYSJ,QSYS,QSSJ,JGID,JYZT,DYCS,QTJG,BTMH,WSQRYS,WSQRSJ,nvl(WSQRBZ ,0) WSQRBZ,YSBZ,YSRY,YSSJ
from LIS_JYBRXX
where JGID =? and BTMH = ? and TO_CHAR(JYZT, '99')>=0
]]></sql>
<tables>
<table delete="true" insert="true" name="LIS_JYBRXX" update="true">
<primary>LSH</primary>
</table>
</tables>
<fields>
<f name="LSH" table="LIS_JYBRXX" type="12"/>
<f name="TMH" table="LIS_JYBRXX" type="12"/>
<f name="BLH" table="LIS_JYBRXX" type="12"/>
<f name="KBM" table="LIS_JYBRXX" type="12"/>
<f name="KLS" table="LIS_JYBRXX" type="12"/>
<f name="BQ" table="LIS_JYBRXX" type="12"/>
<f name="CH" table="LIS_JYBRXX" type="12"/>
<f name="BRLX" table="LIS_JYBRXX" type="12"/>
<f name="XM" table="LIS_JYBRXX" type="12"/>
<f name="XB" table="LIS_JYBRXX" type="12"/>
<f name="NL" table="LIS_JYBRXX" type="12"/>
<f name="CSRQ" table="LIS_JYBRXX" type="93"/>
<f name="JZ" table="LIS_JYBRXX" type="12"/>
<f name="JJ" table="LIS_JYBRXX" type="12"/>
<f name="SJKS" table="LIS_JYBRXX" type="12"/>
<f name="SJYS" table="LIS_JYBRXX" type="12"/>
<f name="SJSJ" table="LIS_JYBRXX" type="93"/>
<f name="DJYS" table="LIS_JYBRXX" type="12"/>
<f name="DJSJ" table="LIS_JYBRXX" type="93"/>
<f name="CYYS" table="LIS_JYBRXX" type="12"/>
<f name="CYSJ" table="LIS_JYBRXX" type="93"/>
<f name="QSYS" table="LIS_JYBRXX" type="12"/>
<f name="QSSJ" table="LIS_JYBRXX" type="93"/>
<f name="JGID" table="LIS_JYBRXX" type="12"/>
<f name="JYZT" table="LIS_JYBRXX" type="12"/>
<f name="DYCS" table="LIS_JYBRXX" type="-5"/>
<f name="QTJG" table="LIS_JYBRXX" type="12"/>
<f name="BTMH" table="LIS_JYBRXX" type="12"/>
<f name="WSQRYS" table="LIS_JYBRXX" type="12"/>
<f name="WSQRSJ" table="LIS_JYBRXX" type="93"/>
<f name="WSQRBZ" table="LIS_JYBRXX" type="12"/>
<f name="YSBZ" table="LIS_JYBRXX" type="12"/>
<f name="YSRY" table="LIS_JYBRXX" type="12"/>
<f name="YSSJ" table="LIS_JYBRXX" type="93"/>
</fields>
<parameter>
<p>12</p>
<p>12</p>
</parameter>
</dao>
<dao id="getjyxxlshdao" type="1">
<sql>select LSH,TMH,BLH,KBM,KLS,CH,BRLX,XM,XB,NL,CSRQ,JZ,JJ,SJKS,SJYS,SJSJ,DJYS,DJSJ,CYYS,CYSJ,QSYS,QSSJ,DYBZ,DYCS,JGID,JYZT,QTJG,
HZPKEY,ZJHM,WSQRYS,WSQRSJ,WSQRBZ,YSRY,YSSJ,YSBZ,NLY,NLT
from LIS_JYBRXX where JGID=? and LSH =?</sql>
<fields>
<f name="LSH" type="12"/>
<f name="TMH" type="12"/>
<f name="BLH" type="12"/>
<f name="KBM" type="12"/>
<f name="KLS" type="12"/>
<f name="CH" type="12"/>
<f name="BRLX" type="12"/>
<f name="XM" type="12"/>
<f name="XB" type="12"/>
<f name="NL" type="12"/>
<f name="CSRQ" type="93"/>
<f name="JZ" type="12"/>
<f name="JJ" type="12"/>
<f name="SJKS" type="12"/>
<f name="SJYS" type="12"/>
<f name="SJSJ" type="93"/>
<f name="DJYS" type="12"/>
<f name="DJSJ" type="93"/>
<f name="CYYS" type="12"/>
<f name="CYSJ" type="93"/>
<f name="QSYS" type="12"/>
<f name="QSSJ" type="93"/>
<f name="DYBZ" type="12"/>
<f name="DYCS" type="-5"/>
<f name="JGID" type="12"/>
<f name="JYZT" type="12"/>
<f name="QTJG" type="12"/>
<f name="HZPKEY" type="12"/>
<f name="ZJHM" type="12"/>
<f name="WSQRYS" type="12"/>
<f name="WSQRSJ" type="93"/>
<f name="WSQRBZ" type="12"/>
<f name="YSRY" type="12"/>
<f name="YSSJ" type="93"/>
<f name="YSBZ" type="12"/>
<f name="NLY" type="12"/>
<f name="NLT" type="12"/>
</fields>
<parameter>
<p>12</p>
<p>12</p>
</parameter>
</dao>
<dao id="jybrxxbtmquery" type="1">
<sql><![CDATA[select BTMH from LIS_JYBRXX
where JGID = ? and YSSJ >=? and YSSJ <= ? and YSBZ = '1' and QTJG =?
group by BTMH order by BTMH asc]]></sql>
<tables>
</tables>
<fields>
<f name="BTMH" type="12"/>
</fields>
<parameter>
<p>12</p>
<p>93</p>
<p>93</p>
<p>12</p>
</parameter>
</dao>
<dao id="jybrxxbtmquerydao" type="1">
<sql><![CDATA[select BTMH from LIS_JYBRXX
where JGID =? and DJSJ>=? and DJSJ <=? and YSBZ like ? and TMH like ? and BRLX like ? and TO_CHAR(JYZT, '99')>=0
group by BTMH order by BTMH asc
]]></sql>
<fields>
<f name="BTMH" type="12"/>
</fields>
<parameter>
<p>12</p>
<p>93</p>
<p>93</p>
<p>12</p>
<p>12</p>
<p>12</p>
</parameter>
</dao>
<dao id="sjbrjgdao" type="1">
<sql><![CDATA[select t.JGID,t2.JGMC from LIS_JYBRXX t
left join MAIN_YLJG t2 on t.JGID = t2.PKEY
where t.QTJG =? and t.YSSJ >=? and t.YSSJ <=? and t.YSBZ = '1'
and t.TMH like ? and t.BRLX like ? and t.JYZT like ? and t.JGID like ? group by t.JGID,t2.JGMC
]]></sql>
<fields>
<f name="JGID" type="12"/>
<f name="JGMC" type="12"/>
</fields>
<parameter>
<p>12</p>
<p>93</p>
<p>93</p>
<p>12</p>
<p>12</p>
<p>12</p>
<p>12</p>
</parameter>
</dao>
<dao id="yqdmdao" type="1">
<sql>select max(YQDM) yqdm from LIS_YQZLK where YQDL=?</sql>
<fields>
<f name="YQDM" type="12"/>
</fields>
<parameter>
<p>12</p>
</parameter>
</dao>
<dao id="lismbxxdao" type="1">
<sql>select PKEY,MBMC,YS,JGID,MBFW from LIS_JYXMMB where JGID = ?</sql>
<tables>
<table delete="true" insert="true" name="LIS_JYXMMB" update="true">
<primary>PKEY</primary>
</table>
</tables>
<fields>
<f name="PKEY" table="LIS_JYXMMB" type="12"/>
<f name="MBMC" table="LIS_JYXMMB" type="12"/>
<f name="YS" table="LIS_JYXMMB" type="12"/>
<f name="JGID" table="LIS_JYXMMB" type="12"/>
<f name="MBFW" table="LIS_JYXMMB" type="12"/>
</fields>
<parameter>
<p>12</p>
</parameter>
</dao>
<dao id="lismbdao" type="1">
<sql>select PKEY,MBMC,YS,JGID,MBFW from LIS_JYXMMB where JGID = ? and (YS= ? or MBFW='1')</sql>
<tables>
<table delete="true" insert="false" name="LIS_JYXMMB" update="false">
<primary>PKEY</primary>
</table>
</tables>
<fields>
<f name="PKEY" table="LIS_JYXMMB" type="12"/>
<f name="MBMC" table="LIS_JYXMMB" type="12"/>
<f name="YS" table="LIS_JYXMMB" type="12"/>
<f name="JGID" table="LIS_JYXMMB" type="12"/>
<f name="MBFW" table="LIS_JYXMMB" type="12"/>
</fields>
<parameter>
<p>12</p>
<p>12</p>
</parameter>
</dao>
<dao id="jyxmmbdao" type="1">
<sql> select PKEY,SBH,MBBH,JGID,XMBM,JG,JGLX,DLJG,TXJG,DXMBM,DXMMC,JYDW,XMMC,XMDH,HRBZ,JYFF,DYSX from LIS_JYXMMB_MX where MBBH = ? and JGID = ? </sql>
<tables>
<table delete="true" insert="true" name="LIS_JYXMMB_MX" update="true">
<primary>PKEY</primary>
</table>
</tables>
<fields>
<f name="PKEY" table="LIS_JYXMMB_MX" type="12"/>
<f name="SBH" table="LIS_JYXMMB_MX" type="12"/>
<f name="MBBH" table="LIS_JYXMMB_MX" type="12"/>
<f name="JGID" table="LIS_JYXMMB_MX" type="12"/>
<f name="XMBM" table="LIS_JYXMMB_MX" type="12"/>
<f name="JG" table="LIS_JYXMMB_MX" type="12"/>
<f name="JGLX" table="LIS_JYXMMB_MX" type="12"/>
<f name="DLJG" table="LIS_JYXMMB_MX" type="12"/>
<f name="TXJG" table="LIS_JYXMMB_MX" type="12"/>
<f name="DXMBM" table="LIS_JYXMMB_MX" type="12"/>
<f name="DXMMC" table="LIS_JYXMMB_MX" type="12"/>
<f name="JYDW" table="LIS_JYXMMB_MX" type="12"/>
<f name="XMMC" table="LIS_JYXMMB_MX" type="12"/>
<f name="XMDH" table="LIS_JYXMMB_MX" type="12"/>
<f name="HRBZ" table="LIS_JYXMMB_MX" type="12"/>
<f name="JYFF" table="LIS_JYXMMB_MX" type="12"/>
<f name="DYSX" table="LIS_JYXMMB_MX" type="4"/>
</fields>
<parameter>
<p>12</p>
<p>12</p>
</parameter>
</dao>
<dao id="getlisyzx" type="1" memo="获取LIS医嘱项">
<sql>select a.BM,a.MC,a.JGID,j.XMFL from HIS_YZX a
left join HIS_YZX_JCJY j on a.JGID=j.JGID and a.BM=j.YZXPKEY
where j.ISLIS='1' and a.JGID = ? and j.XMFL like ? order by j.PX asc,a.BM asc
</sql>
<fields>
<f name="BM" type="12" />
<f name="MC" type="12" />
<f name="JGID" type="12" />
<f name="XMFL" type="12" />
</fields>
<parameter>
<p>12</p>
<p>12</p>
</parameter>
</dao>
<dao id="lisyzxfldao" type="1" memo="检验医嘱项">
<sql>select a.BM,a.MC,a.JGID,j.XMFL,j.ISLIS,j.JYCF,j.ISYW,j.YBLX,j.SGLX,j.GW from HIS_YZX a
left join HIS_YZX_JCJY j on a.JGID=j.JGID and a.BM=j.YZXPKEY
where j.ISLIS='1' and a.JGID = ? and j.XMFL like ? order by a.BM</sql>
<fields>
<f name="BM" type="12" />
<f name="MC" type="12" />
<f name="JGID" type="12" />
<f name="XMFL" type="12" />
<f name="ISLIS" type="12" />
<f name="JYCF" type="12" />
<f name="ISYW" type="12" />
<f name="YBLX" type="12" />
<f name="SGLX" type="12" />
<f name="GW" type="12" />
</fields>
<parameter>
<p>12</p>
<p>12</p>
</parameter>
</dao>
<dao id="lisjzdjdao" log="true" type="1">
<sql><![CDATA[
select a.PKEY,a.HZPKEY,a.JZLX,a.ISJZ,a.JJKS,a.JJRQ,a.JJYS,a.RYBED,a.RYWARD,a.JZNO,a.JZNL,a.JZKH,a.JGID,a.CJR,a.CJRQ,b.XM,b.XB,b.PHONE,b.CSRQ,b.ZJHM,b.PIC,b.PKEY rkey,b.JGID hzjg
from HIS_JZ_BASEINFO a
left join HIS_HZINFO b on a.hzpkey = b.pkey and a.JGID=b.JGID
where a.JJRQ between ? and ? and a.JZLX like ? and (b.XM like ? or b.XB like ?)
]]></sql>
<tables>
<table name="HIS_JZ_BASEINFO" insert="true" update="true" delete="true">
<primary>PKEY</primary>
</table>
<table name="HIS_HZINFO" insert="true" update="true" delete="true">
<primary>RKEY</primary>
</table>
</tables>
<fields>
<f name="PKEY" type="12" table="HIS_JZ_BASEINFO"/>
<f name="HZPKEY" type="12" table="HIS_JZ_BASEINFO" />
<f name="JZLX" type="12" table="HIS_JZ_BASEINFO" />
<f name="ISJZ" type="12" table="HIS_JZ_BASEINFO" />
<f name="JJKS" type="12" table="HIS_JZ_BASEINFO" />
<f name="JJRQ" type="93" table="HIS_JZ_BASEINFO" />
<f name="JJYS" type="12" table="HIS_JZ_BASEINFO" />
<f name="RYBED" type="12" table="HIS_JZ_BASEINFO" />
<f name="RYWARD" type="12" table="HIS_JZ_BASEINFO" />
<f name="JZNO" type="12" table="HIS_JZ_BASEINFO" />
<f name="JZNL" type="12" table="HIS_JZ_BASEINFO" />
<f name="JZKH" type="12" table="HIS_JZ_BASEINFO" />
<f name="JGID" type="12" table="HIS_JZ_BASEINFO" />
<f name="CJR" type="12" table="HIS_JZ_BASEINFO" />
<f name="CJRQ" type="93" table="HIS_JZ_BASEINFO" />
<f name="XM" type="12" table="HIS_HZINFO" />
<f name="XB" type="12" table="HIS_HZINFO" />
<f name="PHONE" type="12" table="HIS_HZINFO" />
<f name="CSRQ" type="93" table="HIS_HZINFO" />
<f name="ZJHM" type="12" table="HIS_HZINFO" />
<f name="PIC" type="12" table="HIS_HZINFO" />
<f name="RKEY" schemaname="PKEY" type="12" table="HIS_HZINFO" />
<f name="HZJG" schemaname="JGID" type="12" table="HIS_HZINFO" />
</fields>
<parameter>
<p>93</p>
<p>93</p>
<p>12</p>
<p>12</p>
<p>12</p>
</parameter>
</dao>
<dao id="lisyzsqdao" log="true" type="1">
<sql>
select t.PKEY,t.JZPKEY,t.HZPKEY,t.YZMX,t.JGID,t.QUERYCODE,t.YZXPKEY,t.ZXFLAG,t.ZXTIME,t.CJR,t.CJRQ,b.MC
from HIS_YZ_EXEC t
left join HIS_YZX b on t.JGID =b.JGID and t.YZXPKEY = b.BM
left join HIS_YZX_JCJY j on t.JGID=j.JGID and t.YZXPKEY=j.YZXPKEY
where j.ISLIS='1' and t.JGID=? and t.JZPKEY=? and t.HZPKEY=?
</sql>
<tables>
<table name="HIS_YZ_EXEC" insert="true" update="true" delete="true">
<primary>PKEY</primary>
</table>
</tables>
<fields>
<f name="PKEY" type="12" table="HIS_YZ_EXEC" />
<f name="JZPKEY" type="12" table="HIS_YZ_EXEC" />
<f name="HZPKEY" type="12" table="HIS_YZ_EXEC" />
<f name="YZMX" type="12" table="HIS_YZ_EXEC" />
<f name="JGID" type="12" table="HIS_YZ_EXEC" />
<f name="QUERYCODE" type="12" table="HIS_YZ_EXEC" />
<f name="YZXPKEY" type="12" table="HIS_YZ_EXEC" />
<f name="ZXFLAG" type="12" table="HIS_YZ_EXEC" />
<f name="ZXTIME" type="93" table="HIS_YZ_EXEC" />
<f name="CJR" type="12" table="HIS_YZ_EXEC" />
<f name="CJRQ" type="93" table="HIS_YZ_EXEC" />
<f name="MC" type="12" />
</fields>
<parameter>
<p>12</p>
<p>12</p>
<p>12</p>
</parameter>
</dao>
<dao id="brjyxxupdao" type="1">
<sql>select XH,BLH,TMH,SBH,YBH,RJBH,JGID,HTMLPATH,PDFPATH from LIS_BRJYXX where JGID = ? and XH = ?
</sql>
<tables>
<table delete="true" insert="true" name="LIS_BRJYXX" update="true">
<primary>SBH</primary>
<primary>YBH</primary>
<primary>RJBH</primary>
<primary>XH</primary>
<primary>JGID</primary>
</table>
</tables>
<fields>
<f name="XH" table="LIS_BRJYXX" type="12"/>
<f name="BLH" table="LIS_BRJYXX" type="12"/>
<f name="TMH" table="LIS_BRJYXX" type="12"/>
<f name="SBH" table="LIS_BRJYXX" type="12"/>
<f name="YBH" table="LIS_BRJYXX" type="12"/>
<f name="RJBH" table="LIS_BRJYXX" type="-5"/>
<f name="JGID" table="LIS_BRJYXX" type="12"/>
<f name="HTMLPATH" table="LIS_BRJYXX" type="12"/>
<f name="PDFPATH" table="LIS_BRJYXX" type="12"/>
</fields>
<parameter>
<p>12</p>
<p>12</p>
</parameter>
</dao>
<dao id="khrjyjcxmdao" log="true" type="1">
<sql>
select '' flag,'1' jghr,'' reason,'' others,'' yljgmc,'' yljgdm,'' jyjllsh,'' jymxlsh,'' bgdlbbm,'' bgdlbmc,'' pdfUrl,'' bgrq,'' jyxmdm,'' jyxmmc,'' jyjgdm,'' jyjgdx,'' jyjgdl,'' jyjglx,'' jyjldw,'' ckzfw,'' sqrq,'' yxbz,'' ypUrl from dual where 1=2
</sql>
<fields>
<f name="FLAG" type="1" />
<f name="JGHR" type="1" />
<f name="REASON" type="1" />
<f name="OTHERS" type="1" />
<f name="YLJGMC" type="1" />
<f name="YLJGDM" type="1" />
<f name="JYJLLSH" type="1" />
<f name="JYMXLSH" type="1" />
<f name="BGDLBBM" type="1" />
<f name="BGDLBMC" type="1" />
<f name="PDFURL" type="1" />
<f name="BGRQ" type="1" />
<f name="JYXMDM" type="1" />
<f name="JYXMMC" type="1" />
<f name="JYJGDM" type="1" />
<f name="JYJGDX" type="1" />
<f name="JYJGDL" type="1" />
<f name="JYJGLX" type="1" />
<f name="JYJLDW" type="1" />
<f name="CKZFW" type="1" />
<f name="SQRQ" type="1" />
<f name="YXBZ" type="1" />
<f name="YPURL" type="1" />
</fields>
</dao>
<dao id="khrjyjcxmdao2" log="true" type="1">
<sql>
select '' flag,'1' jghr,'' reason,'' others,'' yljgmc,'' yljgdm,'' jyjllsh,'' jymxlsh,'' bgdlbbm,'' bgdlbmc,'' pdfUrl,'' bgrq,'' jyxmdm,'' jyxmmc,'' jyjgdm,'' jyjgdx,'' jyjgdl,'' jyjglx,'' jyjldw,'' ckzfw,'' sqrq,'' yxbz,'' ypUrl from dual where 1=2
</sql>
<fields>
<f name="FLAG" type="1" />
<f name="JGHR" type="1" />
<f name="REASON" type="1" />
<f name="OTHERS" type="1" />
<f name="YLJGMC" type="1" />
<f name="YLJGDM" type="1" />
<f name="JYJLLSH" type="1" />
<f name="JYMXLSH" type="1" />
<f name="BGDLBBM" type="1" />
<f name="BGDLBMC" type="1" />
<f name="PDFURL" type="1" />
<f name="BGRQ" type="1" />
<f name="JYXMDM" type="1" />
<f name="JYXMMC" type="1" />
<f name="JYJGDM" type="1" />
<f name="JYJGDX" type="1" />
<f name="JYJGDL" type="1" />
<f name="JYJGLX" type="1" />
<f name="JYJLDW" type="1" />
<f name="CKZFW" type="1" />
<f name="SQRQ" type="1" />
<f name="YXBZ" type="1" />
<f name="YPURL" type="1" />
</fields>
</dao>
<dao id="khrjyjldao" log="true" type="1">
<sql>
select '' yljgdm,'' yljgmc,'' jyjllsh,'' bgrq,'' jzlsh,'' sqysgh,'' sqysxm,'' bgysgh,'' bgysxm,'' shysgh,'' shysxm,'' sqsj,'' cjsj,'' jyrq,'' sqksbm,'' sqksmc,'' bgbz,'' bbdm,'' bbmc,'' bgdlbbm,'' bgdlbmc,'' jllb,'' pdfUrl,'' jymxlsh,'' jylbdm,'' jybzxmdm,'' jyxmdm,'' jyxmmc,'' loinc,'' jyjgdm,'' jyjglx,'' jyjgdx,'' jyjgdl,'' jyjldw,'' sblbbm,'' yqbh,'' yqmc,'' ckzfw,'' jgts from dual where 1=2
</sql>
<fields>
<f name="YLJGDM" type="1" />
<f name="YLJGMC" type="1" />
<f name="JYJLLSH" type="1" />
<f name="BGRQ" type="1" />
<f name="JZLSH" type="1" />
<f name="SQYSGH" type="1" />
<f name="SQYSXM" type="1" />
<f name="BGYSGH" type="1" />
<f name="BGYSXM" type="1" />
<f name="SHYSGH" type="1" />
<f name="SHYSXM" type="1" />
<f name="SQSJ" type="1" />
<f name="CJSJ" type="1" />
<f name="JYRQ" type="1" />
<f name="SQKSBM" type="1" />
<f name="SQKSMC" type="1" />
<f name="BGBZ" type="1" />
<f name="BBDM" type="1" />
<f name="BBMC" type="1" />
<f name="BGDLBBM" type="1" />
<f name="BGDLBMC" type="1" />
<f name="JLLB" type="1" />
<f name="PDFURL" type="1" />
<f name="JYMXLSH" type="1" />
<f name="JYLBDM" type="1" />
<f name="JYBZXMDM" type="1" />
<f name="JYXMDM" type="1" />
<f name="JYXMMC" type="1" />
<f name="LOINC" type="1" />
<f name="JYJGDM" type="1" />
<f name="JYJGLX" type="1" />
<f name="JYJGDX" type="1" />
<f name="JYJGDL" type="1" />
<f name="JYJLDW" type="1" />
<f name="SBLBBM" type="1" />
<f name="YQBH" type="1" />
<f name="YQMC" type="1" />
<f name="CKZFW" type="1" />
<f name="JGTS" type="1" />
</fields>
</dao>
<dao id="khrjcjldao" log="true" type="1">
<sql>
select '' yljgdm,'' yljgmc,'' jclsh,'' jllb,'' jclxdm,'' jclxmc,'' jcxmdm,'' jcxmmc,'' sqksbm,'' sqysgh,'' sqysxm,'' jcksbm,'' jcysgh,'' jcysxm,'' jcrqsj,'' jcjgdm,'' jcjgdx,'' jcjgdl,'' jcjldw,'' bgksbm,'' bgysgh,'' bgysxm,'' bgrq,'' shysgh,'' shysxm,'' jcyqmc,'' jcbgdbh,'' yxh,'' jch,'' jcbw,'' jcbwmc,'' yyx,'' lczd,'' yxbxhjcsj,'' yxbxhjcsjdbc,'' jczdhts,'' bzhjy,'' yxbz,'' jcff,'' jcmc,'' pdfUrl,'' ypUrl from dual where 1=2
</sql>
<fields>
<f name="YLJGDM" type="1" />
<f name="YLJGMC" type="1" />
<f name="JCLSH" type="1" />
<f name="JLLB" type="1" />
<f name="JCLXDM" type="1" />
<f name="JCLXMC" type="1" />
<f name="JCXMDM" type="1" />
<f name="JCXMMC" type="1" />
<f name="SQKSBM" type="1" />
<f name="SQYSGH" type="1" />
<f name="SQYSXM" type="1" />
<f name="JCKSBM" type="1" />
<f name="JCYSGH" type="1" />
<f name="JCYSXM" type="1" />
<f name="JCRQSJ" type="1" />
<f name="JCJGDM" type="1" />
<f name="JCJGDX" type="1" />
<f name="JCJGDL" type="1" />
<f name="JCJLDW" type="1" />
<f name="BGKSBM" type="1" />
<f name="BGYSGH" type="1" />
<f name="BGYSXM" type="1" />
<f name="BGRQ" type="1" />
<f name="SHYSGH" type="1" />
<f name="SHYSXM" type="1" />
<f name="JCYQMC" type="1" />
<f name="JCBGDBH" type="1" />
<f name="YXH" type="1" />
<f name="JCH" type="1" />
<f name="JCBW" type="1" />
<f name="JCBWMC" type="1" />
<f name="YYX" type="1" />
<f name="LCZD" type="1" />
<f name="YXBXHJCSJ" type="1" />
<f name="YXBXHJCSJDBC" type="1" />
<f name="JCZDHTS" type="1" />
<f name="BZHJY" type="1" />
<f name="YXBZ" type="1" />
<f name="JCFF" type="1" />
<f name="JCMC" type="1" />
<f name="PDFURL" type="1" />
<f name="YPURL" type="1" />
</fields>
</dao>
<dao id="lisxmdic" type="1">
<sql>select
t.JGID,t.XMFL,t.XMBH,t.XMDH,t.XMMC,t.JYDW,t.JGLX,t.YWMC,t.PYM,t.CKZ
,t.SFCZ,a.JGID as chos,a.xmbh frxmbh,a.frbz,a.jyff,a.MRJG,a.FRXMBM,a.FRXMMC
from LIS_JYXM t
left join lisfrxm a on t.XMBH =a.xmbh and a.JGID =?
where
t.XMBH like ?
and t.XMDH like ?
and t.XMMC like ?
order by t.XMFL,t.XMBH</sql>
<fields>
<f name="JGID" type="12"/>
<f name="XMFL" type="12"/>
<f name="XMBH" type="12"/>
<f name="XMDH" type="12"/>
<f name="XMMC" type="12"/>
<f name="JYDW" type="12"/>
<f name="JGLX" type="12"/>
<f name="YWMC" type="12"/>
<f name="PYM" type="12"/>
<f name="CKZ" type="12"/>
<f name="SFCZ" type="12"/>
<f name="chos" type="12"/>
<f name="frxmbh" type="12"/>
<f name="frbz" type="12"/>
<f name="jyff" type="12"/>
<f name="MRJG" type="12"/>
<f name="FRXMBM" type="12"/>
<f name="FRXMMC" type="12"/>
</fields>
<parameter>
<p>12</p>
<p>12</p>
<p>12</p>
<p>12</p>
</parameter>
</dao>
<dao id="getzkjyjgdao" log="true" type="1">
<sql><![CDATA[
select SBH,YBH,XMBM,RJBH,JG,DLJG,JYSJ from LIS_JYJG
where JGID=? and SBH=? and YBH=? and XMBM=? and JYSJ >=? and JYSJ <=? and to_char(substr(RJBH,9,2))=?
]]></sql>
<fields>
<f name="SBH" type="12" />
<f name="YBH" type="12" />
<f name="XMBM" type="12" />
<f name="RJBH" type="-5" />
<f name="JG" type="12" />
<f name="DLJG" type="12" />
<f name="JYSJ" type="93"/>
</fields>
<parameter>
<p>12</p>
<p>12</p>
<p>12</p>
<p>12</p>
<p>93</p>
<p>93</p>
<p>12</p>
</parameter>
</dao>
<dao id="getzkxmdao" log="true" type="1">
<sql>
select PKEY,ZKBH,SBH,XMBH,BAZ,FC,KSSJ,JSSJ,SYFF,CLBC,DW,DSJGHT,JGID from LIS_ZKXMDY where JGID=? and ZKBH=? and SBH=? order by XMBH asc
</sql>
<fields>
<f name="PKEY" type="-5" />
<f name="ZKBH" type="12" />
<f name="SBH" type="12" />
<f name="XMBH" type="12" />
<f name="BAZ" type="12" />
<f name="FC" type="12" />
<f name="KSSJ" type="93" />
<f name="JSSJ" type="93" />
<f name="SYFF" type="12" />
<f name="CLBC" type="12" />
<f name="DW" type="12" />
<f name="DSJGHT" type="12" />
<f name="JGID" type="12" />
</fields>
<parameter>
<p>12</p>
<p>12</p>
<p>12</p>
</parameter>
</dao>
<dao id="zkjgtempdao" type="1">
<sql>SELECT '' XMBH,'' BAZ,'' FC,'' JG,'' DLJG,'' ZKBH,'' ZKMC,0 JYSJ,'' RJBH,'' SBH,'' YBH,'' XH
FROM dual WHERE 1=2
</sql>
<fields>
<f name="XMBH" type="12"/>
<f name="BAZ" type="12"/>
<f name="FC" type="12"/>
<f name="JG" type="12"/>
<f name="DLJG" type="12"/>
<f name="ZKBH" type="12"/>
<f name="ZKMC" type="12"/>
<f name="JYSJ" type="93"/>
<f name="RJBH" type="-5"/>
<f name="SBH" type="12"/>
<f name="YBH" type="12"/>
<f name="XH" type="12"/>
</fields>
</dao>
<dao id="getbrjyxxforjgdao" log="true" type="1">
<sql>
select t.YBH JGYBH,t.RJBH JGRJBH,a.XH,a.BLH,a.TMH,a.KBM,a.KLS,a.CH,a.BRLX,a.XM,a.XB,a.CSRQ,a.NL,a.NLDW,a.SJKS,a.SJYS,a.SJSJ,a.JYYQ,a.SBH,a.CYSJ,a.JYSJ,a.YCBZ,a.SHBZ,a.DYBZ,a.FBBZ,a.JYYS,a.SHYS,a.FHYS,a.SHSJ,a.FHSJ,a.DYSJ,a.LCZD,a.SFLB,a.SFSF,a.DYCS,a.JJ,a.YBLX,a.YBZT,a.YBH,a.RJBH,a.SJBH,a.BZ,a.JGID,a.JYMD,a.ZJHM,a.HZPKEY,a.QTJG,a.CFBZ,a.SJKSMC,a.HBTM,a.HJXH,a.NLY,a.NLT,a.XZBZ,a.PH,a.WZH,a.HTMLPATH,a.PDFPATH
,0 as bh
from (select distinct JGID,SBH,YBH,RJBH from LIS_JYJG where JGID = ? and SBH=? AND JYSJ between ? and ?) t
left join LIS_BRJYXX a on t.JGID=a.JGID and t.SBH = a.SBH and t.YBH = a.YBH and t.RJBH = a.RJBH
</sql>
<tables>
<table name="LIS_BRJYXX" insert="true" update="true" delete="true">
<primary>XH</primary>
<primary>SBH</primary>
<primary>YBH</primary>
<primary>RJBH</primary>
<primary>JGID</primary>
</table>
</tables>
<fields>
<f name="JGYBH" type="12" />
<f name="JGRJBH" type="-5" />
<f name="XH" type="12" table="LIS_BRJYXX" />
<f name="BLH" type="12" table="LIS_BRJYXX" />
<f name="TMH" type="12" table="LIS_BRJYXX" />
<f name="KBM" type="12" table="LIS_BRJYXX" />
<f name="KLS" type="12" table="LIS_BRJYXX" />
<f name="CH" type="12" table="LIS_BRJYXX" />
<f name="BRLX" type="12" table="LIS_BRJYXX" />
<f name="XM" type="12" table="LIS_BRJYXX" />
<f name="XB" type="12" table="LIS_BRJYXX" />
<f name="CSRQ" type="93" table="LIS_BRJYXX" />
<f name="NL" type="12" table="LIS_BRJYXX" />
<f name="NLDW" type="12" table="LIS_BRJYXX" />
<f name="SJKS" type="12" table="LIS_BRJYXX" />
<f name="SJYS" type="12" table="LIS_BRJYXX" />
<f name="SJSJ" type="93" table="LIS_BRJYXX" />
<f name="JYYQ" type="12" table="LIS_BRJYXX" />
<f name="SBH" type="12" table="LIS_BRJYXX" />
<f name="CYSJ" type="93" table="LIS_BRJYXX" />
<f name="JYSJ" type="93" table="LIS_BRJYXX" />
<f name="YCBZ" type="12" table="LIS_BRJYXX" />
<f name="SHBZ" type="12" table="LIS_BRJYXX" />
<f name="DYBZ" type="12" table="LIS_BRJYXX" />
<f name="FBBZ" type="12" table="LIS_BRJYXX" />
<f name="JYYS" type="12" table="LIS_BRJYXX" />
<f name="SHYS" type="12" table="LIS_BRJYXX" />
<f name="FHYS" type="12" table="LIS_BRJYXX" />
<f name="SHSJ" type="93" table="LIS_BRJYXX" />
<f name="FHSJ" type="93" table="LIS_BRJYXX" />
<f name="DYSJ" type="93" table="LIS_BRJYXX" />
<f name="LCZD" type="12" table="LIS_BRJYXX" />
<f name="SFLB" type="12" table="LIS_BRJYXX" />
<f name="SFSF" type="12" table="LIS_BRJYXX" />
<f name="DYCS" type="-5" table="LIS_BRJYXX" />
<f name="JJ" type="12" table="LIS_BRJYXX" />
<f name="YBLX" type="12" table="LIS_BRJYXX" />
<f name="YBZT" type="12" table="LIS_BRJYXX" />
<f name="YBH" type="12" table="LIS_BRJYXX" />
<f name="RJBH" type="-5" table="LIS_BRJYXX" />
<f name="SJBH" type="12" table="LIS_BRJYXX" />
<f name="BZ" type="12" table="LIS_BRJYXX" />
<f name="JGID" type="12" table="LIS_BRJYXX" />
<f name="JYMD" type="12" table="LIS_BRJYXX" />
<f name="ZJHM" type="12" table="LIS_BRJYXX" />
<f name="HZPKEY" type="12" table="LIS_BRJYXX" />
<f name="QTJG" type="12" table="LIS_BRJYXX" />
<f name="CFBZ" type="12" table="LIS_BRJYXX" />
<f name="SJKSMC" type="12" table="LIS_BRJYXX" />
<f name="HBTM" type="12" table="LIS_BRJYXX" />
<f name="HJXH" type="12" table="LIS_BRJYXX" />
<f name="NLY" type="12" table="LIS_BRJYXX" />
<f name="NLT" type="12" table="LIS_BRJYXX" />
<f name="XZBZ" type="12" table="LIS_BRJYXX" />
<f name="PH" type="12" table="LIS_BRJYXX" />
<f name="WZH" type="12" table="LIS_BRJYXX" />
<f name="HTMLPATH" type="12" table="LIS_BRJYXX" />
<f name="PDFPATH" type="12" table="LIS_BRJYXX" />
<f name="BH" type="8" />
</fields>
<parameter>
<p>12</p>
<p>12</p>
<p>93</p>
<p>93</p>
</parameter>
</dao>
<dao id="getrjbhdao" type="1">
<sql>select PKEY,SBH,RJBH,RJSJ,JGID,RJCZY,to_char(RJSJ,'yyyymmdd') rjsjs from LIS_RJB where SBH = ? and JGID =? and to_char(RJSJ,'yyyymmdd') like ? order by RJSJ desc</sql>
<tables>
<table name="LIS_RJB" insert="true" update="true" delete="true">
<primary>JGID</primary>
<primary>SBH</primary>
<primary>PKEY</primary>
</table>
</tables>
<fields>
<f name="PKEY" type="12" table="LIS_RJB" />
<f name="SBH" type="12" table="LIS_RJB" />
<f name="RJBH" type="12" table="LIS_RJB" />
<f name="RJSJ" type="93" table="LIS_RJB" />
<f name="JGID" type="12" table="LIS_RJB" />
<f name="RJCZY" type="12" table="LIS_RJB" />
<f name="RJSJS" type="12"/>
</fields>
<parameter>
<p>12</p>
<p>12</p>
<p>12</p>
</parameter>
</dao>
<dao id="getpcybhdao" type="1">
<sql>select YBH from LIS_JYJG where JGID =? and SBH=? AND RJBH=?</sql>
<fields>
<f name="YBH" type="12"/>
</fields>
<parameter>
<p>12</p>
<p>12</p>
<p>12</p>
</parameter>
</dao>
<dao id="pdlistmhdao" type="1">
<sql>select XH,YBH,RJBH from LIS_BRJYXX where JGID =? and TMH=?</sql>
<fields>
<f name="XH" type="12"/>
<f name="YBH" type="12"/>
<f name="RJBH" type="-5"/>
</fields>
<parameter>
<p>12</p>
<p>12</p>
</parameter>
</dao>
<dao id="lisbrjyxxforxhdao" log="true" type="1">
<sql>
select XH,BLH,TMH,KBM,KLS,CH,BRLX,XM,XB,CSRQ,NL,NLDW,SJKS,SJYS,SJSJ,JYYQ,SBH,CYSJ,JYSJ,YCBZ,SHBZ,DYBZ,FBBZ,JYYS,SHYS,FHYS,SHSJ,FHSJ,DYSJ,LCZD,SFLB,SFSF,DYCS,JJ,YBLX,YBZT,YBH,RJBH,SJBH,BZ,JGID,JYMD,ZJHM,HZPKEY,QTJG,CFBZ,SJKSMC,HBTM,HJXH,NLY,NLT,XZBZ,PH,WZH,HTMLPATH,PDFPATH
from LIS_BRJYXX where JGID=? and XH=?
</sql>
<tables>
<table name="LIS_BRJYXX" insert="true" update="true" delete="true">
<primary>XH</primary>
<primary>JGID</primary>
</table>
</tables>
<fields>
<f name="XH" type="12" table="LIS_BRJYXX" />
<f name="BLH" type="12" table="LIS_BRJYXX" />
<f name="TMH" type="12" table="LIS_BRJYXX" />
<f name="KBM" type="12" table="LIS_BRJYXX" />
<f name="KLS" type="12" table="LIS_BRJYXX" />
<f name="CH" type="12" table="LIS_BRJYXX" />
<f name="BRLX" type="12" table="LIS_BRJYXX" />
<f name="XM" type="12" table="LIS_BRJYXX" />
<f name="XB" type="12" table="LIS_BRJYXX" />
<f name="CSRQ" type="93" table="LIS_BRJYXX" />
<f name="NL" type="12" table="LIS_BRJYXX" />
<f name="NLDW" type="12" table="LIS_BRJYXX" />
<f name="SJKS" type="12" table="LIS_BRJYXX" />
<f name="SJYS" type="12" table="LIS_BRJYXX" />
<f name="SJSJ" type="93" table="LIS_BRJYXX" />
<f name="JYYQ" type="12" table="LIS_BRJYXX" />
<f name="SBH" type="12" table="LIS_BRJYXX" />
<f name="CYSJ" type="93" table="LIS_BRJYXX" />
<f name="JYSJ" type="93" table="LIS_BRJYXX" />
<f name="YCBZ" type="12" table="LIS_BRJYXX" />
<f name="SHBZ" type="12" table="LIS_BRJYXX" />
<f name="DYBZ" type="12" table="LIS_BRJYXX" />
<f name="FBBZ" type="12" table="LIS_BRJYXX" />
<f name="JYYS" type="12" table="LIS_BRJYXX" />
<f name="SHYS" type="12" table="LIS_BRJYXX" />
<f name="FHYS" type="12" table="LIS_BRJYXX" />
<f name="SHSJ" type="93" table="LIS_BRJYXX" />
<f name="FHSJ" type="93" table="LIS_BRJYXX" />
<f name="DYSJ" type="93" table="LIS_BRJYXX" />
<f name="LCZD" type="12" table="LIS_BRJYXX" />
<f name="SFLB" type="12" table="LIS_BRJYXX" />
<f name="SFSF" type="12" table="LIS_BRJYXX" />
<f name="DYCS" type="-5" table="LIS_BRJYXX" />
<f name="JJ" type="12" table="LIS_BRJYXX" />
<f name="YBLX" type="12" table="LIS_BRJYXX" />
<f name="YBZT" type="12" table="LIS_BRJYXX" />
<f name="YBH" type="12" table="LIS_BRJYXX" />
<f name="RJBH" type="-5" table="LIS_BRJYXX" />
<f name="SJBH" type="12" table="LIS_BRJYXX" />
<f name="BZ" type="12" table="LIS_BRJYXX" />
<f name="JGID" type="12" table="LIS_BRJYXX" />
<f name="JYMD" type="12" table="LIS_BRJYXX" />
<f name="ZJHM" type="12" table="LIS_BRJYXX" />
<f name="HZPKEY" type="12" table="LIS_BRJYXX" />
<f name="QTJG" type="12" table="LIS_BRJYXX" />
<f name="CFBZ" type="12" table="LIS_BRJYXX" />
<f name="SJKSMC" type="12" table="LIS_BRJYXX" />
<f name="HBTM" type="12" table="LIS_BRJYXX" />
<f name="HJXH" type="12" table="LIS_BRJYXX" />
<f name="NLY" type="12" table="LIS_BRJYXX" />
<f name="NLT" type="12" table="LIS_BRJYXX" />
<f name="XZBZ" type="12" table="LIS_BRJYXX" />
<f name="PH" type="12" table="LIS_BRJYXX" />
<f name="WZH" type="12" table="LIS_BRJYXX" />
<f name="HTMLPATH" type="12" table="LIS_BRJYXX" />
<f name="PDFPATH" type="12" table="LIS_BRJYXX" />
</fields>
<parameter>
<p>12</p>
<p>12</p>
</parameter>
</dao>
<dao id="getlisbrxxao" log="true" type="1">
<sql>
select b.XH,b.SBH,b.YBH,b.RJBH,b.BLH,b.TMH,b.CH,b.BRLX,b.XM,b.XB,b.NL,b.NLY,b.NLT,b.LCZD,b.SJKS,b.SJYS,b.SJSJ,b.JYYS,b.JYSJ,b.KLS,b.HZPKEY
from LIS_BRJYXX b
where b.JGID=? and b.XH=?
</sql>
<fields>
<f name="XH" type="12" />
<f name="SBH" type="12" />
<f name="YBH" type="12" />
<f name="RJBH" type="-5" />
<f name="BLH" type="12" />
<f name="TMH" type="12" />
<f name="CH" type="12" />
<f name="BRLX" type="12" />
<f name="XM" type="12" />
<f name="XB" type="12" />
<f name="NL" type="12" />
<f name="NLY" type="12" />
<f name="NLT" type="12" />
<f name="LCZD" type="12" />
<f name="SJKS" type="12" />
<f name="SJYS" type="12" />
<f name="SJSJ" type="93" />
<f name="JYYS" type="12" />
<f name="JYSJ" type="93" />
<f name="KLS" type="12" />
<f name="HZPKEY" type="12" />
</fields>
<parameter>
<p>12</p>
<p>12</p>
</parameter>
</dao>
<dao id="liswjzdao" log="true" type="1">
<sql>
select PKEY,JGID,RKEY,BGR,BGSJ,LXR,LXDH,LXSJ,JSR,JSSJ,MEMO,ZT,QXR,QXSJ,CJR,CJRQ,LOCKFLAG from LIS_WJZ where JGID=? and RKEY=?
</sql>
<tables>
<table name="LIS_WJZ" insert="true" update="true" delete="true">
<primary>PKEY</primary>
<primary>JGID</primary>
</table>
</tables>
<fields>
<f name="PKEY" type="12" table="LIS_WJZ" />
<f name="JGID" type="12" table="LIS_WJZ" />
<f name="RKEY" type="12" table="LIS_WJZ" />
<f name="BGR" type="12" table="LIS_WJZ" />
<f name="BGSJ" type="93" table="LIS_WJZ" />
<f name="LXR" type="12" table="LIS_WJZ" />
<f name="LXDH" type="12" table="LIS_WJZ" />
<f name="LXSJ" type="93" table="LIS_WJZ" />
<f name="JSR" type="12" table="LIS_WJZ" />
<f name="JSSJ" type="93" table="LIS_WJZ" />
<f name="MEMO" type="12" table="LIS_WJZ" />
<f name="ZT" type="12" table="LIS_WJZ" />
<f name="QXR" type="12" table="LIS_WJZ" />
<f name="QXSJ" type="93" table="LIS_WJZ" />
<f name="CJR" type="12" table="LIS_WJZ" />
<f name="CJRQ" type="93" table="LIS_WJZ" />
<f name="LOCKFLAG" type="-5" table="LIS_WJZ" />
</fields>
<parameter>
<p>12</p>
<p>12</p>
</parameter>
</dao>
<dao id="liswjzmxdao" log="true" type="1">
<sql>
select PKEY,JGID,RKEY,XMBH,XMMC,JG,CKZ,TSXX,JYDW,LOCKFLAG from LIS_WJZMX where JGID=? and RKEY=?
</sql>
<tables>
<table name="LIS_WJZMX" insert="true" update="true" delete="true">
<primary>PKEY</primary>
<primary>JGID</primary>
</table>
</tables>
<fields>
<f name="PKEY" type="12" table="LIS_WJZMX" />
<f name="JGID" type="12" table="LIS_WJZMX" />
<f name="RKEY" type="12" table="LIS_WJZMX" />
<f name="XMBH" type="12" table="LIS_WJZMX" />
<f name="XMMC" type="12" table="LIS_WJZMX" />
<f name="JG" type="12" table="LIS_WJZMX" />
<f name="CKZ" type="12" table="LIS_WJZMX" />
<f name="TSXX" type="12" table="LIS_WJZMX" />
<f name="JYDW" type="12" table="LIS_WJZMX" />
<f name="LOCKFLAG" type="-5" table="LIS_WJZMX" />
</fields>
<parameter>
<p>12</p>
<p>12</p>
</parameter>
</dao>
<dao id="getwjzmxdao" log="true" type="1">
<sql>
select SBH,YBH,XMBM,RJBH,JYSJ,YQNBM,JG,JGLX,DLJG,DYSX,CKZ,TSXX,SFSCCG,SCSJ,CSCS,JGID,DXMBM,DXMMC,JYDW,XMMC,XMDH,TXJG,HRBZ,JYFF,XMTYPE,QTJG,WJZBZ
from LIS_JYJG where WJZBZ='1' and JGID=? and SBH=? and YBH=? and RJBH=?
</sql>
<fields>
<f name="SBH" type="12" />
<f name="YBH" type="12" />
<f name="XMBM" type="12" />
<f name="RJBH" type="-5" />
<f name="JYSJ" type="93" />
<f name="YQNBM" type="12" />
<f name="JG" type="12" />
<f name="JGLX" type="12" />
<f name="DLJG" type="12" />
<f name="DYSX" type="-5" />
<f name="CKZ" type="12" />
<f name="TSXX" type="12" />
<f name="SFSCCG" type="12" />
<f name="SCSJ" type="93" />
<f name="CSCS" type="-5" />
<f name="JGID" type="12" />
<f name="DXMBM" type="12" />
<f name="DXMMC" type="12" />
<f name="JYDW" type="12" />
<f name="XMMC" type="12" />
<f name="XMDH" type="12" />
<f name="TXJG" type="12" />
<f name="HRBZ" type="12" />
<f name="JYFF" type="12" />
<f name="XMTYPE" type="12" />
<f name="QTJG" type="12" />
<f name="WJZBZ" type="12" />
</fields>
<parameter>
<p>12</p>
<p>12</p>
<p>12</p>
<p>12</p>
</parameter>
</dao>
</datasource>