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

567 lines
27 KiB

3 months ago
<?xml version="1.0" encoding="UTF-8"?>
<datasource>
<!-- 1 表示 sql语句dao 2表示存储过程dao 默认为sql语句dao-->
<dao id="mzfzGhQueueAndGhbDao" log="true" type="1" memo="分诊台主dao,包括挂号表和挂号队列表">
<sql><![CDATA[
select A.PKEY,A.JZPKEY,A.HZPKEY,A.JZSJ,A.JZYS,A.PDZT,A.PDHM,A.GHLB,A.HJZT,A.PDYXJ,A.CJR,A.CJRQ,A.JGID,B.XM,B.XB,B.CSRQ,B.HZLX,B.YBKH,B.SFZH,D.KH,D.KLX,C.GHSJ,C.GHYS,C.CARDPKEY,A.LOCKFLAG,C.GHKS,C.JZZS,C.PKEY GHPKEY,C.GHZT,E.FZQPKEY,C.GHPBPKEY,C.SFJH,C.GHNUM,F.PBSD from HIS_JZ_GHQUEUE A LEFT JOIN HIS_HZINFO B ON A.HZPKEY=B.PKEY AND A.JGID=B.JGID LEFT JOIN HIS_JZ_GHB C ON A.GHPKEY=C.PKEY LEFT JOIN HIS_CARD_MANAGE D ON B.PKEY=D.HZPKEY AND C.CARDPKEY=D.PKEY LEFT JOIN HIS_GH_PBINFO F ON C.GHPBPKEY=F.PKEY AND C.JGID=F.JGID LEFT JOIN HIS_GH_FZQZSDY E ON F.JZZS=E.ZSPKEY AND F.JGID=E.JGID WHERE A.JGID=? AND E.FZQPKEY=? and A.PDZT != '0' #select# AND C.GHSJ >=? AND C.GHSJ <= ? order by A.JZSJ desc,A.PDYXJ desc,A.PDHM
]]></sql>
<tables>
<table name="HIS_JZ_GHB" insert="true" update="true" delete="true">
<primary>GHZT</primary>
<primary>GHPKEY</primary>
<primary>JZPKEY</primary>
<primary>HZPKEY</primary>
<primary>JGID</primary>
</table>
<table name="HIS_JZ_GHQUEUE" insert="true" update="true" delete="true">
<primary>PKEY</primary>
<primary>JZPKEY</primary>
<primary>PDZT</primary>
<primary>HJZT</primary>
<primary>PDYXJ</primary>
<primary>JGID</primary>
</table>
</tables>
<fields>
<f name="PKEY" type="12" table="HIS_JZ_GHQUEUE" />
<f name="JZPKEY" type="12" table="HIS_JZ_GHB,HIS_JZ_GHQUEUE" />
<f name="HZPKEY" type="12" table="HIS_JZ_GHB,HIS_JZ_GHQUEUE" />
<f name="JZSJ" type="93" table="HIS_JZ_GHQUEUE" />
<f name="JZYS" type="12" table="HIS_JZ_GHQUEUE" />
<f name="PDZT" type="12" table="HIS_JZ_GHQUEUE" />
<f name="PDHM" type="12" table="HIS_JZ_GHQUEUE" />
<f name="GHLB" type="12" table="HIS_JZ_GHQUEUE" />
<f name="HJZT" type="12" table="HIS_JZ_GHQUEUE" />
<f name="PDYXJ" type="12" table="HIS_JZ_GHQUEUE" />
<f name="CJR" type="12" table="HIS_JZ_GHQUEUE" />
<f name="CJRQ" type="93" table="HIS_JZ_GHQUEUE" />
<f name="JGID" type="12" table="HIS_JZ_GHB,HIS_JZ_GHQUEUE" />
<f name="XM" type="12" />
<f name="XB" type="12" />
<f name="CSRQ" type="93" />
<f name="HZLX" type="12" />
<f name="YBKH" type="12" />
<f name="SFZH" type="12" />
<f name="KH" type="12" />
<f name="KLX" type="12" />
<f name="GHSJ" type="93" table="HIS_JZ_GHB" />
<f name="GHYS" type="12" table="HIS_JZ_GHB" />
<f name="CARDPKEY" type="12" table="HIS_JZ_GHB" />
<f name="LOCKFLAG" type="-5" table="HIS_JZ_GHQUEUE" />
<f name="GHKS" type="12" table="HIS_JZ_GHB" />
<f name="JZZS" type="12" table="HIS_JZ_GHB" />
<f name="GHPKEY" schemaname="PKEY" type="12" table="HIS_JZ_GHB" />
<f name="GHZT" type="12" table="HIS_JZ_GHB" />
<f name="FZQPKEY" type="12" />
<f name="GHPBPKEY" type="12" table="HIS_JZ_GHB" />
<f name="SFJH" type="12" table="HIS_JZ_GHB" />
<f name="GHNUM" type="12" table="HIS_JZ_GHB" />
<f name="PBSD" type="12" />
</fields>
<parameter>
<p>12</p>
<p>12</p>
<p>93</p>
<p>93</p>
</parameter>
</dao>
<dao id="ghFzqSetupDao" log="true" type="1" memo="门诊分诊区设置dao">
<sql>
select PKEY,BM,MC,ZJM,BZ,SFBD,CJR,CJRQ,XGR,XGRQ,JGID,LOCKFLAG from HIS_GH_FZQ where JGID=? order by pkey
</sql>
<tables>
<table name="HIS_GH_FZQ" insert="true" update="true" delete="true">
<primary>PKEY</primary>
<primary>JGID</primary>
</table>
</tables>
<fields>
<f name="PKEY" type="12" table="HIS_GH_FZQ" />
<f name="BM" type="12" table="HIS_GH_FZQ" />
<f name="MC" type="12" table="HIS_GH_FZQ" />
<f name="ZJM" type="12" table="HIS_GH_FZQ" />
<f name="BZ" type="12" table="HIS_GH_FZQ" />
<f name="SFBD" type="12" table="HIS_GH_FZQ" />
<f name="CJR" type="12" table="HIS_GH_FZQ" />
<f name="CJRQ" type="93" table="HIS_GH_FZQ" />
<f name="XGR" type="12" table="HIS_GH_FZQ" />
<f name="XGRQ" type="93" table="HIS_GH_FZQ" />
<f name="JGID" type="12" table="HIS_GH_FZQ" />
<f name="LOCKFLAG" type="-5" table="HIS_GH_FZQ" />
</fields>
<parameter>
<p>12</p>
</parameter>
</dao>
<dao id="fzqZsDySetupDao" log="true" type="1" memo="分诊区与诊室对应设置dao">
<sql>
select PKEY,FZQPKEY,ZSPKEY,BZ,CJR,CJRQ,XGR,XGRQ,JGID,LOCKFLAG from HIS_GH_FZQZSDY where JGID=? and FZQPKEY=? order by PKEY
</sql>
<tables>
<table name="HIS_GH_FZQZSDY" insert="true" update="true" delete="true">
<primary>PKEY</primary>
<primary>JGID</primary>
</table>
</tables>
<fields>
<f name="PKEY" type="12" table="HIS_GH_FZQZSDY" />
<f name="FZQPKEY" type="12" table="HIS_GH_FZQZSDY" />
<f name="ZSPKEY" type="12" table="HIS_GH_FZQZSDY" />
<f name="BZ" type="12" table="HIS_GH_FZQZSDY" />
<f name="CJR" type="12" table="HIS_GH_FZQZSDY" />
<f name="CJRQ" type="93" table="HIS_GH_FZQZSDY" />
<f name="XGR" type="12" table="HIS_GH_FZQZSDY" />
<f name="XGRQ" type="93" table="HIS_GH_FZQZSDY" />
<f name="JGID" type="12" table="HIS_GH_FZQZSDY" />
<f name="LOCKFLAG" type="-5" table="HIS_GH_FZQZSDY" />
</fields>
<parameter>
<p>12</p>
<p>12</p>
</parameter>
</dao>
<dao id="fzqZsDySetupDic" log="true" cache="true" type="1" memo="分诊区与诊室对应设置的字典dic">
<sql>
select '' VALUE,a.PKEY,a.FZQPKEY,a.ZSPKEY,a.BZ,a.CJR,a.CJRQ,a.XGR,a.XGRQ,a.JGID,a.LOCKFLAG,b.BM,b.MC,b.ZJM,b.ZSDZ from HIS_GH_FZQZSDY a left join HIS_GH_KSZS b on a.ZSPKEY=b.pkey and a.JGID=b.JGID where a.JGID=? and a.FZQPKEY=? order by a.PKEY
</sql>
<tables>
<table name="HIS_GH_FZQZSDY" insert="true" update="true" delete="true">
<primary>PKEY</primary>
<primary>JGID</primary>
</table>
</tables>
<fields>
<f name="VALUE" type="12"/>
<f name="PKEY" type="12" table="HIS_GH_FZQZSDY" />
<f name="FZQPKEY" type="12" table="HIS_GH_FZQZSDY" />
<f name="ZSPKEY" type="12" table="HIS_GH_FZQZSDY" />
<f name="BZ" type="12" table="HIS_GH_FZQZSDY" />
<f name="CJR" type="12" table="HIS_GH_FZQZSDY" />
<f name="CJRQ" type="93" table="HIS_GH_FZQZSDY" />
<f name="XGR" type="12" table="HIS_GH_FZQZSDY" />
<f name="XGRQ" type="93" table="HIS_GH_FZQZSDY" />
<f name="JGID" type="12" table="HIS_GH_FZQZSDY" />
<f name="LOCKFLAG" type="-5" table="HIS_GH_FZQZSDY" />
<f name="BM" type="12"/>
<f name="MC" type="12"/>
<f name="ZJM" type="12"/>
<f name="ZSDZ" type="12"/>
</fields>
<parameter>
<p>12</p>
<p>12</p>
</parameter>
</dao>
<dao id="fzqCzyDySetupDao" log="true" type="1" memo="分诊区与操作员对应设置dao">
<sql>
select PKEY,FZQPKEY,CZYPKEY,BZ,CJR,CJRQ,XGR,XGRQ,JGID,LOCKFLAG from HIS_GH_FZQCZYDY where JGID=? and fzqpkey=?
</sql>
<tables>
<table name="HIS_GH_FZQCZYDY" insert="true" update="true" delete="true">
<primary>PKEY</primary>
<primary>JGID</primary>
</table>
</tables>
<fields>
<f name="PKEY" type="12" table="HIS_GH_FZQCZYDY" />
<f name="FZQPKEY" type="12" table="HIS_GH_FZQCZYDY" />
<f name="CZYPKEY" type="12" table="HIS_GH_FZQCZYDY" />
<f name="BZ" type="12" table="HIS_GH_FZQCZYDY" />
<f name="CJR" type="12" table="HIS_GH_FZQCZYDY" />
<f name="CJRQ" type="93" table="HIS_GH_FZQCZYDY" />
<f name="XGR" type="12" table="HIS_GH_FZQCZYDY" />
<f name="XGRQ" type="93" table="HIS_GH_FZQCZYDY" />
<f name="JGID" type="12" table="HIS_GH_FZQCZYDY" />
<f name="LOCKFLAG" type="-5" table="HIS_GH_FZQCZYDY" />
</fields>
<parameter>
<p>12</p>
<p>12</p>
</parameter>
</dao>
<dao id="fzqLBDySetupDao" log="true" type="1" memo="分诊区与号别对应设置dao">
<sql>
select a.PKEY,a.FZQPKEY,a.LBGLYSPKEY,a.SFBD,a.SFQY,a.CJR,a.CJRQ,a.XGR,a.XGRQ,a.JGID,a.LOCKFLAG,b.LBPKEY,b.KSPKEY,b.YSPKEY from HIS_GH_FZQLBYSDY a left join HIS_GH_LBGLYS b on a.LBGLYSPKEY=b.pkey and a.JGID=b.JGID where a.JGID=? and a.fzqpkey=? order by a.pkey
</sql>
<tables>
<table name="HIS_GH_FZQLBYSDY" insert="true" update="true" delete="true">
<primary>PKEY</primary>
<primary>JGID</primary>
</table>
</tables>
<fields>
<f name="PKEY" type="12" table="HIS_GH_FZQLBYSDY" />
<f name="FZQPKEY" type="12" table="HIS_GH_FZQLBYSDY" />
<f name="LBGLYSPKEY" type="12" table="HIS_GH_FZQLBYSDY" />
<f name="SFBD" type="12" table="HIS_GH_FZQLBYSDY" />
<f name="SFQY" type="12" table="HIS_GH_FZQLBYSDY" />
<f name="CJR" type="12" table="HIS_GH_FZQLBYSDY" />
<f name="CJRQ" type="93" table="HIS_GH_FZQLBYSDY" />
<f name="XGR" type="12" table="HIS_GH_FZQLBYSDY" />
<f name="XGRQ" type="93" table="HIS_GH_FZQLBYSDY" />
<f name="JGID" type="12" table="HIS_GH_FZQLBYSDY" />
<f name="LOCKFLAG" type="-5" table="HIS_GH_FZQLBYSDY" />
<f name="LBPKEY" type="12"/>
<f name="KSPKEY" type="12"/>
<f name="YSPKEY" type="12"/>
</fields>
<parameter>
<p>12</p>
<p>12</p>
</parameter>
</dao>
<dao id="fzqLBDySetupDic" log="true" cache="true" type="1" memo="分诊区与号别对应关系字典dao">
<sql>
select '' VALUE,a.PKEY,a.FZQPKEY,a.LBGLYSPKEY,a.SFBD,a.SFQY,a.CJR,a.CJRQ,a.XGR,a.XGRQ,a.JGID,a.LOCKFLAG,b.LBPKEY,b.KSPKEY,b.YSPKEY from HIS_GH_FZQLBYSDY a left join HIS_GH_LBGLYS b on a.LBGLYSPKEY=b.pkey and a.JGID=b.JGID where a.JGID=? and a.fzqpkey=? order by a.pkey
</sql>
<tables>
<table name="HIS_GH_FZQLBYSDY" insert="true" update="true" delete="true">
<primary>PKEY</primary>
<primary>JGID</primary>
</table>
</tables>
<fields>
<f name="VALUE" type="12"/>
<f name="PKEY" type="12" table="HIS_GH_FZQLBYSDY" />
<f name="FZQPKEY" type="12" table="HIS_GH_FZQLBYSDY" />
<f name="LBGLYSPKEY" type="12" table="HIS_GH_FZQLBYSDY" />
<f name="SFBD" type="12" table="HIS_GH_FZQLBYSDY" />
<f name="SFQY" type="12" table="HIS_GH_FZQLBYSDY" />
<f name="CJR" type="12" table="HIS_GH_FZQLBYSDY" />
<f name="CJRQ" type="93" table="HIS_GH_FZQLBYSDY" />
<f name="XGR" type="12" table="HIS_GH_FZQLBYSDY" />
<f name="XGRQ" type="93" table="HIS_GH_FZQLBYSDY" />
<f name="JGID" type="12" table="HIS_GH_FZQLBYSDY" />
<f name="LOCKFLAG" type="-5" table="HIS_GH_FZQLBYSDY" />
<f name="LBPKEY" type="12"/>
<f name="KSPKEY" type="12"/>
<f name="YSPKEY" type="12"/>
</fields>
<parameter>
<p>12</p>
<p>12</p>
</parameter>
</dao>
<dao id="ghzspcSetupDao" log="true" type="1" memo="诊室计算机配置dao">
<sql>
select PKEY,ZSPKEY,PCBM,PCMC,PCIP,CJR,CJRQ,XGR,XGRQ,JGID,LOCKFLAG from HIS_GH_ZSPC where JGID=? order by pkey
</sql>
<tables>
<table name="HIS_GH_ZSPC " insert="true" update="true" delete="true">
<primary>PKEY</primary>
<primary>JGID</primary>
</table>
</tables>
<fields>
<f name="PKEY" type="12" table="HIS_GH_ZSPC " />
<f name="ZSPKEY" type="12" table="HIS_GH_ZSPC " />
<f name="PCBM" type="12" table="HIS_GH_ZSPC " />
<f name="PCMC" type="12" table="HIS_GH_ZSPC " />
<f name="PCIP" type="12" table="HIS_GH_ZSPC " />
<f name="CJR" type="12" table="HIS_GH_ZSPC " />
<f name="CJRQ" type="93" table="HIS_GH_ZSPC " />
<f name="XGR" type="12" table="HIS_GH_ZSPC " />
<f name="XGRQ" type="93" table="HIS_GH_ZSPC " />
<f name="JGID" type="12" table="HIS_GH_ZSPC " />
<f name="LOCKFLAG" type="-5" table="HIS_GH_ZSPC " />
</fields>
<parameter>
<p>12</p>
</parameter>
</dao>
<dao id="ghKszsSelectDao" log="true" type="1" memo="用于设置分诊区科室诊室对应的查询可以选择的诊室的dao">
<sql>
select PKEY,BM,MC,ZJM,ZSDZ,CJR,CJRQ,XGR,XGRQ,JGID,LOCKFLAG from HIS_GH_KSZS where JGID=? and pkey not in (select ZSPKEY from HIS_GH_FZQZSDY where JGID=?) order by pkey
</sql>
<tables>
<table name="HIS_GH_KSZS" insert="true" update="true" delete="true">
<primary>PKEY</primary>
<primary>JGID</primary>
</table>
</tables>
<fields>
<f name="PKEY" type="12" table="HIS_GH_KSZS" />
<f name="BM" type="12" table="HIS_GH_KSZS" />
<f name="MC" type="12" table="HIS_GH_KSZS" />
<f name="ZJM" type="12" table="HIS_GH_KSZS" />
<f name="ZSDZ" type="12" table="HIS_GH_KSZS" />
<f name="CJR" type="12" table="HIS_GH_KSZS" />
<f name="CJRQ" type="93" table="HIS_GH_KSZS" />
<f name="XGR" type="12" table="HIS_GH_KSZS" />
<f name="XGRQ" type="93" table="HIS_GH_KSZS" />
<f name="JGID" type="12" table="HIS_GH_KSZS" />
<f name="LOCKFLAG" type="-5" table="HIS_GH_KSZS" />
</fields>
<parameter>
<p>12</p>
<p>12</p>
</parameter>
</dao>
<dao id="ghlbglysSelectDao" type="1" memo="用于设置分诊区号源对应的查询可以选择的号源的dao">
<sql>select a.PKEY,a.YSPKEY,a.LBPKEY,a.CJR,a.CJRQ,a.XGR,a.XGRQ,a.JGID,b.NAME,a.KSPKEY,a.ISMR from HIS_GH_LBGLYS a left join MAIN_YHXX b on a.yspkey=b.USERACCOUNT where a.JGID=? and a.pkey not in (select LBGLYSPKEY from HIS_GH_FZQLBYSDY where JGID=?) order by
a.KSPKEY,a.YSPKEY,a.LBPKEY desc </sql>
<tables>
<table name="HIS_GH_LBGLYS" insert="true" update="true" delete="true">
<primary>PKEY</primary>
<primary>YSPKEY</primary>
<primary>JGID</primary>
</table>
</tables>
<fields>
<f name="PKEY" type="12" table="HIS_GH_LBGLYS" />
<f name="YSPKEY" type="12" table="HIS_GH_LBGLYS" />
<f name="LBPKEY" type="12" table="HIS_GH_LBGLYS" />
<f name="CJR" type="12" table="HIS_GH_LBGLYS" />
<f name="CJRQ" type="93" table="HIS_GH_LBGLYS" />
<f name="XGR" type="12" table="HIS_GH_LBGLYS" />
<f name="XGRQ" type="93" table="HIS_GH_LBGLYS" />
<f name="JGID" type="12" table="HIS_GH_LBGLYS" />
<f name="NAME" type="12" />
<f name="KSPKEY" type="12" table="HIS_GH_LBGLYS" />
<f name="ISMR" type="12" table="HIS_GH_LBGLYS" />
</fields>
<parameter>
<p>12</p>
<p>12</p>
</parameter>
</dao>
<dao id="mzfzFzqByCzyDao" log="true" cache="true" type="1" memo="通过分诊区获取操作员dao">
<sql>
select a.PKEY,a.FZQPKEY,a.CZYPKEY,a.BZ,a.CJR,a.CJRQ,a.XGR,a.XGRQ,a.JGID,a.LOCKFLAG,b.bm,b.MC from HIS_GH_FZQCZYDY a left join HIS_GH_FZQ b on a.FZQPKEY=b.pkey and a.JGID=b.JGID where a.JGID=? and a.CZYPKEY=? order by a.FZQPKEY
</sql>
<tables>
<table name="HIS_GH_FZQCZYDY" insert="true" update="true" delete="true">
<primary>PKEY</primary>
<primary>JGID</primary>
</table>
</tables>
<fields>
<f name="PKEY" type="12" table="HIS_GH_FZQCZYDY" />
<f name="FZQPKEY" type="12" table="HIS_GH_FZQCZYDY" />
<f name="CZYPKEY" type="12" table="HIS_GH_FZQCZYDY" />
<f name="BZ" type="12" table="HIS_GH_FZQCZYDY" />
<f name="CJR" type="12" table="HIS_GH_FZQCZYDY" />
<f name="CJRQ" type="93" table="HIS_GH_FZQCZYDY" />
<f name="XGR" type="12" table="HIS_GH_FZQCZYDY" />
<f name="XGRQ" type="93" table="HIS_GH_FZQCZYDY" />
<f name="JGID" type="12" table="HIS_GH_FZQCZYDY" />
<f name="LOCKFLAG" type="-5" table="HIS_GH_FZQCZYDY" />
<f name="BM" type="12"/>
<f name="MC" type="12"/>
</fields>
<parameter>
<p>12</p>
<p>12</p>
</parameter>
</dao>
<dao id="findYsBylbGlYSDao" log="true" cache="true" type="1" memo="通过科室和号别查询有哪些医生dao">
<sql>select '' VALUE,PKEY,YSPKEY,LBPKEY,CJR,CJRQ,XGR,XGRQ,JGID,KSPKEY,ISMR,LOCKFLAG from HIS_GH_LBGLYS where JGID=? and KSPKEY=? and LBPKEY=? order by YSPKEY</sql>
<tables>
<table name="HIS_GH_LBGLYS" insert="true" update="true" delete="true">
<primary>PKEY</primary>
<primary>JGID</primary>
</table>
</tables>
<fields>
<f name="VALUE" type="12" />
<f name="PKEY" type="12" table="HIS_GH_LBGLYS" />
<f name="YSPKEY" type="12" table="HIS_GH_LBGLYS" />
<f name="LBPKEY" type="12" table="HIS_GH_LBGLYS" />
<f name="CJR" type="12" table="HIS_GH_LBGLYS" />
<f name="CJRQ" type="93" table="HIS_GH_LBGLYS" />
<f name="XGR" type="12" table="HIS_GH_LBGLYS" />
<f name="XGRQ" type="93" table="HIS_GH_LBGLYS" />
<f name="JGID" type="12" table="HIS_GH_LBGLYS" />
<f name="KSPKEY" type="12" table="HIS_GH_LBGLYS" />
<f name="ISMR" type="12" table="HIS_GH_LBGLYS" />
<f name="LOCKFLAG" type="-5" table="HIS_GH_LBGLYS" />
</fields>
<parameter>
<p>12</p>
<p>12</p>
<p>12</p>
</parameter>
</dao>
<dao id="mzfzPbinfoByChangeYsDao" log="true" type="1" memo="门诊分诊指定医生的时候,通过科室+医生+就诊时段+号段来查找当天的排班信息">
<sql>
select A.PKEY,A.YSPKEY,A.KSPKEY,A.CZRQ,A.PBSD,A.CZKSSJ,A.CZJSSJ,A.GHZC,A.ZYZ,A.BZH,A.YYH,A.QSH,A.JH,A.JZZS,A.HYZTLB,A.CZZT,A.TZYY,A.TZPBKEY,A.TZPZR,A.PBBMPKEY,A.CJR,A.CJRQ,A.XGR,A.XGRQ,A.JGID,A.SHR,A.SHRQ,A.LOCKFLAG,B.ISJZ from HIS_GH_PBINFO A left join MAIN_KS B ON A.KSPKEY=B.DPTID AND A.JGID=B.JGID where A.JGID=? and A.CZZT='1' and A.CZRQ=? and A.KSPKEY=? and A.YSPKEY=? and A.PBSD=? and A.GHZC=?
</sql>
<tables>
<table name="HIS_GH_PBINFO" insert="true" update="true" delete="true">
<primary>PKEY</primary>
<primary>JGID</primary>
<primary>LOCKFLAG</primary>
</table>
</tables>
<fields>
<f name="PKEY" type="12" table="HIS_GH_PBINFO" />
<f name="YSPKEY" type="12" table="HIS_GH_PBINFO" />
<f name="KSPKEY" type="12" table="HIS_GH_PBINFO" />
<f name="CZRQ" type="12" table="HIS_GH_PBINFO" />
<f name="PBSD" type="12" table="HIS_GH_PBINFO" />
<f name="CZKSSJ" type="93" table="HIS_GH_PBINFO" />
<f name="CZJSSJ" type="93" table="HIS_GH_PBINFO" />
<f name="GHZC" type="12" table="HIS_GH_PBINFO" />
<f name="ZYZ" type="12" table="HIS_GH_PBINFO" />
<f name="BZH" type="12" table="HIS_GH_PBINFO" />
<f name="YYH" type="12" table="HIS_GH_PBINFO" />
<f name="QSH" type="12" table="HIS_GH_PBINFO" />
<f name="JH" type="12" table="HIS_GH_PBINFO" />
<f name="JZZS" type="12" table="HIS_GH_PBINFO" />
<f name="HYZTLB" type="12" table="HIS_GH_PBINFO" />
<f name="CZZT" type="12" table="HIS_GH_PBINFO" />
<f name="TZYY" type="12" table="HIS_GH_PBINFO" />
<f name="TZPBKEY" type="12" table="HIS_GH_PBINFO" />
<f name="TZPZR" type="12" table="HIS_GH_PBINFO" />
<f name="PBBMPKEY" type="12" table="HIS_GH_PBINFO" />
<f name="CJR" type="12" table="HIS_GH_PBINFO" />
<f name="CJRQ" type="93" table="HIS_GH_PBINFO" />
<f name="XGR" type="12" table="HIS_GH_PBINFO" />
<f name="XGRQ" type="93" table="HIS_GH_PBINFO" />
<f name="JGID" type="12" table="HIS_GH_PBINFO" />
<f name="SHR" type="12" table="HIS_GH_PBINFO" />
<f name="SHRQ" type="93" table="HIS_GH_PBINFO" />
<f name="LOCKFLAG" type="8" table="HIS_GH_PBINFO" />
<f name="ISJZ" 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="mzfzAllPbinfoByJzzsDao" log="true" type="1" memo="门诊分诊台,通过就诊诊室来获取当前的排班信息,以次生成显示的就诊诊室显示dao">
<sql>select '' VALUE,A.PKEY,A.YSPKEY,A.KSPKEY,A.CZRQ,A.PBSD,A.CZKSSJ,A.CZJSSJ,A.GHZC,A.ZYZ,A.BZH,A.YYH,A.QSH,A.JH,A.JZZS,A.HYZTLB,A.CZZT,A.TZYY,A.TZPBKEY,A.TZPZR,A.PBBMPKEY,A.CJR,A.CJRQ,A.XGR,A.XGRQ,A.JGID,A.SHR,A.SHRQ,A.LOCKFLAG,B.ISJZ from HIS_GH_PBINFO A left join MAIN_KS B ON A.KSPKEY=B.DPTID AND A.JGID=B.JGID where A.JGID=? and A.CZRQ=? and A.CZZT='1' #select# order by A.KSPKEY,A.YSPKEY,A.PBSD</sql>
<tables>
<table name="HIS_GH_PBINFO" insert="true" update="true" delete="true">
<primary>PKEY</primary>
<primary>JGID</primary>
<primary>LOCKFLAG</primary>
</table>
</tables>
<fields>
<f name="VALUE" type="12" />
<f name="PKEY" type="12" table="HIS_GH_PBINFO" />
<f name="YSPKEY" type="12" table="HIS_GH_PBINFO" />
<f name="KSPKEY" type="12" table="HIS_GH_PBINFO" />
<f name="CZRQ" type="12" table="HIS_GH_PBINFO" />
<f name="PBSD" type="12" table="HIS_GH_PBINFO" />
<f name="CZKSSJ" type="93" table="HIS_GH_PBINFO" />
<f name="CZJSSJ" type="93" table="HIS_GH_PBINFO" />
<f name="GHZC" type="12" table="HIS_GH_PBINFO" />
<f name="ZYZ" type="12" table="HIS_GH_PBINFO" />
<f name="BZH" type="12" table="HIS_GH_PBINFO" />
<f name="YYH" type="12" table="HIS_GH_PBINFO" />
<f name="QSH" type="12" table="HIS_GH_PBINFO" />
<f name="JH" type="12" table="HIS_GH_PBINFO" />
<f name="JZZS" type="12" table="HIS_GH_PBINFO" />
<f name="HYZTLB" type="12" table="HIS_GH_PBINFO" />
<f name="CZZT" type="12" table="HIS_GH_PBINFO" />
<f name="TZYY" type="12" table="HIS_GH_PBINFO" />
<f name="TZPBKEY" type="12" table="HIS_GH_PBINFO" />
<f name="TZPZR" type="12" table="HIS_GH_PBINFO" />
<f name="PBBMPKEY" type="12" table="HIS_GH_PBINFO" />
<f name="CJR" type="12" table="HIS_GH_PBINFO" />
<f name="CJRQ" type="93" table="HIS_GH_PBINFO" />
<f name="XGR" type="12" table="HIS_GH_PBINFO" />
<f name="XGRQ" type="93" table="HIS_GH_PBINFO" />
<f name="JGID" type="12" table="HIS_GH_PBINFO" />
<f name="SHR" type="12" table="HIS_GH_PBINFO" />
<f name="SHRQ" type="93" table="HIS_GH_PBINFO" />
<f name="LOCKFLAG" type="8" table="HIS_GH_PBINFO" />
<f name="ISJZ" type="12" />
</fields>
<parameter>
<p>12</p>
<p>12</p>
</parameter>
</dao>
<dao id="getGhQueueByPbInfoDao" log="true" type="1" memo="通过挂号排班信息主键来获取对应的挂号队列dao">
<sql><![CDATA[
select A.PKEY,A.JZPKEY,A.HZPKEY,A.GHPKEY,A.JZSJ,A.JZYS,A.PDZT,A.PDHM,A.GHLB,A.HJZT,A.PDYXJ,A.CJR,A.CJRQ,A.JGID,B.XM,B.XB,B.CSRQ,B.HZLX,B.YBKH,B.SFZH,C.GHSJ,C.GHYS,C.CARDPKEY,A.LOCKFLAG,C.GHPBPKEY from HIS_JZ_GHQUEUE A LEFT JOIN HIS_HZINFO B ON A.HZPKEY=B.PKEY AND A.JGID=B.JGID LEFT JOIN HIS_JZ_GHB C ON A.GHPKEY=C.PKEY WHERE A.JGID=? AND C.GHPBPKEY=? order by A.JZSJ desc,A.PDYXJ desc,A.PDHM
]]></sql>
<tables>
<table name="HIS_JZ_GHQUEUE" insert="true" update="true" delete="true">
<primary>PKEY</primary>
<primary>JZPKEY</primary>
<primary>GHPKEY</primary>
<primary>PDZT</primary>
<primary>HJZT</primary>
<primary>PDYXJ</primary>
<primary>JGID</primary>
</table>
</tables>
<fields>
<f name="PKEY" type="12" table="HIS_JZ_GHQUEUE" />
<f name="JZPKEY" type="12" table="HIS_JZ_GHQUEUE" />
<f name="HZPKEY" type="12" table="HIS_JZ_GHQUEUE" />
<f name="GHPKEY" type="12" table="HIS_JZ_GHQUEUE" />
<f name="JZSJ" type="93" table="HIS_JZ_GHQUEUE" />
<f name="JZYS" type="12" table="HIS_JZ_GHQUEUE" />
<f name="PDZT" type="12" table="HIS_JZ_GHQUEUE" />
<f name="PDHM" type="12" table="HIS_JZ_GHQUEUE" />
<f name="GHLB" type="12" table="HIS_JZ_GHQUEUE" />
<f name="HJZT" type="12" table="HIS_JZ_GHQUEUE" />
<f name="PDYXJ" type="12" table="HIS_JZ_GHQUEUE" />
<f name="CJR" type="12" table="HIS_JZ_GHQUEUE" />
<f name="CJRQ" type="93" table="HIS_JZ_GHQUEUE" />
<f name="JGID" type="12" table="HIS_JZ_GHQUEUE" />
<f name="XM" type="12" />
<f name="XB" type="12" />
<f name="CSRQ" type="93" />
<f name="HZLX" type="12" />
<f name="YBKH" type="12" />
<f name="SFZH" type="12" />
<f name="GHSJ" type="93" />
<f name="GHYS" type="12" />
<f name="CARDPKEY" type="12" />
<f name="LOCKFLAG" type="-5" table="HIS_JZ_GHQUEUE" />
<f name="GHPBPKEY" type="12" />
</fields>
<parameter>
<p>12</p>
<p>12</p>
</parameter>
</dao>
</datasource>