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.
1560 lines
81 KiB
1560 lines
81 KiB
<?xml version="1.0" encoding="UTF-8"?>
|
|
<datasource>
|
|
<!-- 1 表示 sql语句dao 2表示存储过程dao 默认为sql语句dao-->
|
|
|
|
|
|
<dao id="tcGlksSetupDao" log="true" type="1" memo="治疗站科室分类设置dao">
|
|
<sql>
|
|
select PKEY,KSPKEY,CJR,CJRQ,XGR,XGRQ,JGID,LOCKFLAG from HIS_TC_GLKS where JGID=?
|
|
</sql>
|
|
<tables>
|
|
<table name="HIS_TC_GLKS" insert="true" update="true" delete="true">
|
|
<primary>PKEY</primary>
|
|
<primary>JGID</primary>
|
|
</table>
|
|
</tables>
|
|
<fields>
|
|
<f name="PKEY" type="12" table="HIS_TC_GLKS" />
|
|
<f name="KSPKEY" type="12" table="HIS_TC_GLKS" />
|
|
<f name="CJR" type="12" table="HIS_TC_GLKS" />
|
|
<f name="CJRQ" type="93" table="HIS_TC_GLKS" />
|
|
<f name="XGR" type="12" table="HIS_TC_GLKS" />
|
|
<f name="XGRQ" type="93" table="HIS_TC_GLKS" />
|
|
<f name="JGID" type="12" table="HIS_TC_GLKS" />
|
|
<f name="LOCKFLAG" type="-5" table="HIS_TC_GLKS" />
|
|
</fields>
|
|
<parameter>
|
|
<p>12</p>
|
|
</parameter>
|
|
</dao>
|
|
|
|
<dao id="tcFwzSetupDao" log="true" type="1" memo="治疗站服务组设置dao">
|
|
<sql>
|
|
select PKEY,BM,MC,CJR,CJRQ,XGR,XGRQ,JGID,LOCKFLAG from HIS_TC_FWZ where JGID=? order by CJRQ
|
|
</sql>
|
|
<tables>
|
|
<table name="HIS_TC_FWZ" insert="true" update="true" delete="true">
|
|
<primary>PKEY</primary>
|
|
<primary>JGID</primary>
|
|
</table>
|
|
</tables>
|
|
<fields>
|
|
<f name="PKEY" type="12" table="HIS_TC_FWZ" />
|
|
<f name="BM" type="12" table="HIS_TC_FWZ" />
|
|
<f name="MC" type="12" table="HIS_TC_FWZ" />
|
|
<f name="CJR" type="12" table="HIS_TC_FWZ" />
|
|
<f name="CJRQ" type="93" table="HIS_TC_FWZ" />
|
|
<f name="XGR" type="12" table="HIS_TC_FWZ" />
|
|
<f name="XGRQ" type="93" table="HIS_TC_FWZ" />
|
|
<f name="JGID" type="12" table="HIS_TC_FWZ" />
|
|
<f name="LOCKFLAG" type="-5" table="HIS_TC_FWZ" />
|
|
</fields>
|
|
<parameter>
|
|
<p>12</p>
|
|
</parameter>
|
|
</dao>
|
|
|
|
|
|
|
|
<dao id="tcZlyzzlZlxmDao" log="true" type="1" memo="所有治疗分类的医嘱子类关联的医嘱项dao">
|
|
<sql>
|
|
select '' jh,a.JGID,a.BM,a.MC,a.YZDL,a.YZZL,a.ISDDYZ,a.ISXSYZ,a.ISMZSY,a.ISJZSY,a.ISZYSY,a.DCZDJL,a.MTZDJL,a.ZDL,a.SZSYTS,a.YF,a.LC,a.PC,a.ISMZPSYY,a.ISZYPSYY,a.ISMZSJL,a.ISZYSJL,a.JE,a.BZ,a.ZT,a.YZDW,a.ISDBWJFYC,a.ISAUTOSEND,a.ISSQD,a.GLLX,a.LOCKFLAG,a.LMT_USED_FLAG,a.XZSYFW,a.CHRGITM_LV,a.YBBM,a.YBMC,b.PKEY zlpkey from HIS_YZX a left join HIS_TC_ZLXM b on a.BM=b.yzxpkey and a.JGID=b.JGID where a.JGID=? and a.yzzl in (select YZZL from HIS_YZ_YZZLSZ where JGID=? and sztype ='020') order by a.bm
|
|
</sql>
|
|
<fields>
|
|
<f name="JH" type="12" />
|
|
<f name="JGID" type="12" />
|
|
<f name="BM" type="12" />
|
|
<f name="MC" type="12" />
|
|
<f name="YZDL" type="12" />
|
|
<f name="YZZL" type="12" />
|
|
<f name="ISDDYZ" type="12" />
|
|
<f name="ISXSYZ" type="12" />
|
|
<f name="ISMZSY" type="12" />
|
|
<f name="ISJZSY" type="12" />
|
|
<f name="ISZYSY" type="12" />
|
|
<f name="DCZDJL" type="8" />
|
|
<f name="MTZDJL" type="8" />
|
|
<f name="ZDL" type="8" />
|
|
<f name="SZSYTS" type="-5" />
|
|
<f name="YF" type="12" />
|
|
<f name="LC" type="12" />
|
|
<f name="PC" type="12" />
|
|
<f name="ISMZPSYY" type="12" />
|
|
<f name="ISZYPSYY" type="12" />
|
|
<f name="ISMZSJL" type="12" />
|
|
<f name="ISZYSJL" type="12" />
|
|
<f name="JE" type="8" />
|
|
<f name="BZ" type="12" />
|
|
<f name="ZT" type="12" />
|
|
<f name="YZDW" type="12" />
|
|
<f name="ISDBWJFYC" type="12" />
|
|
<f name="ISAUTOSEND" type="12" />
|
|
<f name="ISSQD" type="12" />
|
|
<f name="GLLX" type="12" />
|
|
<f name="LOCKFLAG" type="-5" />
|
|
<f name="LMT_USED_FLAG" type="12" />
|
|
<f name="XZSYFW" type="12" />
|
|
<f name="CHRGITM_LV" type="12" />
|
|
<f name="YBBM" type="12" />
|
|
<f name="YBMC" type="12" />
|
|
<f name="ZLPKEY" type="12" />
|
|
</fields>
|
|
<parameter>
|
|
<p>12</p>
|
|
<p>12</p>
|
|
</parameter>
|
|
</dao>
|
|
|
|
|
|
|
|
<dao id="tcZlxmSetupDao" log="true" type="1" memo="治疗站诊疗项目设置dao">
|
|
<sql>
|
|
SELECT a.PKEY,a.YZXPKEY,a.ZLXJC,a.ZLFWZ,a.ISAUTOSEND,a.ZLZY,a.ZLSYZ,a.ZLJJ,a.CJR,a.CJRQ,a.XGR,a.XGRQ,a.JGID,a.LOCKFLAG,b.mc,b.yzzl,b.je,b.YZDW FROM HIS_TC_ZLXM a left join HIS_YZX b on a.yzxpkey=b.bm and a.JGID=b.JGID WHERE a.JGID=? AND a.YZXPKEY=?
|
|
</sql>
|
|
<tables>
|
|
<table name="HIS_TC_ZLXM" insert="true" update="true" delete="true">
|
|
<primary>PKEY</primary>
|
|
<primary>JGID</primary>
|
|
</table>
|
|
</tables>
|
|
<fields>
|
|
<f name="PKEY" type="12" table="HIS_TC_ZLXM" />
|
|
<f name="YZXPKEY" type="12" table="HIS_TC_ZLXM" />
|
|
<f name="ZLXJC" type="12" table="HIS_TC_ZLXM" />
|
|
<f name="ZLFWZ" type="12" table="HIS_TC_ZLXM" />
|
|
<f name="ISAUTOSEND" type="12" table="HIS_TC_ZLXM" />
|
|
<f name="ZLZY" type="12" table="HIS_TC_ZLXM" />
|
|
<f name="ZLSYZ" type="12" table="HIS_TC_ZLXM" />
|
|
<f name="ZLJJ" type="12" table="HIS_TC_ZLXM" />
|
|
<f name="CJR" type="12" table="HIS_TC_ZLXM" />
|
|
<f name="CJRQ" type="93" table="HIS_TC_ZLXM" />
|
|
<f name="XGR" type="12" table="HIS_TC_ZLXM" />
|
|
<f name="XGRQ" type="93" table="HIS_TC_ZLXM" />
|
|
<f name="JGID" type="12" table="HIS_TC_ZLXM" />
|
|
<f name="LOCKFLAG" type="-5" table="HIS_TC_ZLXM" />
|
|
<f name="MC" type="12"/>
|
|
<f name="yzzl" type="12"/>
|
|
<f name="je" type="12"/>
|
|
<f name="yzdw" type="12"/>
|
|
</fields>
|
|
<parameter>
|
|
<p>12</p>
|
|
<p>12</p>
|
|
</parameter>
|
|
</dao>
|
|
|
|
|
|
|
|
<dao id="tcZlxmFambSetupDao" log="true" type="1" memo="治疗站诊疗项目方案模板设置dao">
|
|
<sql>
|
|
select PKEY,YZXPKEY,ZLXMPKEY,FABT,FANR,CJR,CJRQ,XGR,XGRQ,JGID,LOCKFLAG from HIS_TC_ZLXM_FAMB where JGID=? and ZLXMPKEY=? order by CJRQ
|
|
</sql>
|
|
<tables>
|
|
<table name="HIS_TC_ZLXM_FAMB" insert="true" update="true" delete="true">
|
|
<primary>PKEY</primary>
|
|
<primary>JGID</primary>
|
|
</table>
|
|
</tables>
|
|
<fields>
|
|
<f name="PKEY" type="12" table="HIS_TC_ZLXM_FAMB" />
|
|
<f name="YZXPKEY" type="12" table="HIS_TC_ZLXM_FAMB" />
|
|
<f name="ZLXMPKEY" type="12" table="HIS_TC_ZLXM_FAMB" />
|
|
<f name="FABT" type="12" table="HIS_TC_ZLXM_FAMB" />
|
|
<f name="FANR" type="12" table="HIS_TC_ZLXM_FAMB" />
|
|
<f name="CJR" type="12" table="HIS_TC_ZLXM_FAMB" />
|
|
<f name="CJRQ" type="93" table="HIS_TC_ZLXM_FAMB" />
|
|
<f name="XGR" type="12" table="HIS_TC_ZLXM_FAMB" />
|
|
<f name="XGRQ" type="93" table="HIS_TC_ZLXM_FAMB" />
|
|
<f name="JGID" type="12" table="HIS_TC_ZLXM_FAMB" />
|
|
<f name="LOCKFLAG" type="-5" table="HIS_TC_ZLXM_FAMB" />
|
|
</fields>
|
|
<parameter>
|
|
<p>12</p>
|
|
<p>12</p>
|
|
</parameter>
|
|
</dao>
|
|
|
|
|
|
|
|
<dao id="tcFwzDic" log="true" cache="true" type="1" memo="治疗站服务组字典">
|
|
<sql>
|
|
select PKEY,BM,MC,CJR,CJRQ,XGR,XGRQ,JGID,LOCKFLAG from HIS_TC_FWZ where JGID=? order by CJRQ
|
|
</sql>
|
|
<tables>
|
|
<table name="HIS_TC_FWZ" insert="true" update="true" delete="true">
|
|
<primary>PKEY</primary>
|
|
<primary>JGID</primary>
|
|
</table>
|
|
</tables>
|
|
<fields>
|
|
<f name="PKEY" type="12" table="HIS_TC_FWZ" />
|
|
<f name="BM" type="12" table="HIS_TC_FWZ" />
|
|
<f name="MC" type="12" table="HIS_TC_FWZ" />
|
|
<f name="CJR" type="12" table="HIS_TC_FWZ" />
|
|
<f name="CJRQ" type="93" table="HIS_TC_FWZ" />
|
|
<f name="XGR" type="12" table="HIS_TC_FWZ" />
|
|
<f name="XGRQ" type="93" table="HIS_TC_FWZ" />
|
|
<f name="JGID" type="12" table="HIS_TC_FWZ" />
|
|
<f name="LOCKFLAG" type="-5" table="HIS_TC_FWZ" />
|
|
</fields>
|
|
<parameter>
|
|
<p>12</p>
|
|
</parameter>
|
|
</dao>
|
|
<dao id="tcFzczsdSetupDao" log="true" type="1" memo="治疗站分诊时段设置dao">
|
|
<sql>
|
|
select PKEY,BM,MC,KSSJ,JSSJ,JFJZTIME,CJR,CJRQ,XGR,XGRQ,JGID,LOCKFLAG from HIS_TC_FZ_SD where JGID=? order by CJRQ
|
|
</sql>
|
|
<tables>
|
|
<table name="HIS_TC_FZ_SD" insert="true" update="true" delete="true">
|
|
<primary>PKEY</primary>
|
|
<primary>JGID</primary>
|
|
</table>
|
|
</tables>
|
|
<fields>
|
|
<f name="PKEY" type="12" table="HIS_TC_FZ_SD" />
|
|
<f name="BM" type="12" table="HIS_TC_FZ_SD" />
|
|
<f name="MC" type="12" table="HIS_TC_FZ_SD" />
|
|
<f name="KSSJ" type="93" table="HIS_TC_FZ_SD" />
|
|
<f name="JSSJ" type="93" table="HIS_TC_FZ_SD" />
|
|
<f name="JFJZTIME" type="93" table="HIS_TC_FZ_SD" />
|
|
<f name="CJR" type="12" table="HIS_TC_FZ_SD" />
|
|
<f name="CJRQ" type="93" table="HIS_TC_FZ_SD" />
|
|
<f name="XGR" type="12" table="HIS_TC_FZ_SD" />
|
|
<f name="XGRQ" type="93" table="HIS_TC_FZ_SD" />
|
|
<f name="JGID" type="12" table="HIS_TC_FZ_SD" />
|
|
<f name="LOCKFLAG" type="-5" table="HIS_TC_FZ_SD" />
|
|
</fields>
|
|
<parameter>
|
|
<p>12</p>
|
|
</parameter>
|
|
</dao>
|
|
|
|
|
|
|
|
<dao id="zlfzPbmbDao" log="true" type="1" memo="治疗分诊排班模板设置dao">
|
|
<sql>
|
|
select PKEY,YSPKEY,KSPKEY,FWZ,XQ,PBSD,ZYSL,KSSJ,JSSJ,JFJZTIME,QYBZ,CJR,CJRQ,XGR,XGRQ,JGID,LOCKFLAG from HIS_TC_FZ_PBMB where JGID = ? order by KSPKEY,YSPKEY
|
|
</sql>
|
|
<tables>
|
|
<table name="HIS_TC_FZ_PBMB" insert="true" update="true" delete="true">
|
|
<primary>PKEY</primary>
|
|
<primary>JGID</primary>
|
|
</table>
|
|
</tables>
|
|
<fields>
|
|
<f name="PKEY" type="12" table="HIS_TC_FZ_PBMB" />
|
|
<f name="YSPKEY" type="12" table="HIS_TC_FZ_PBMB" />
|
|
<f name="KSPKEY" type="12" table="HIS_TC_FZ_PBMB" />
|
|
<f name="FWZ" type="12" table="HIS_TC_FZ_PBMB" />
|
|
<f name="XQ" type="12" table="HIS_TC_FZ_PBMB" />
|
|
<f name="PBSD" type="12" table="HIS_TC_FZ_PBMB" />
|
|
<f name="ZYSL" type="-5" table="HIS_TC_FZ_PBMB" />
|
|
<f name="KSSJ" type="93" table="HIS_TC_FZ_PBMB" />
|
|
<f name="JSSJ" type="93" table="HIS_TC_FZ_PBMB" />
|
|
<f name="JFJZTIME" type="93" table="HIS_TC_FZ_PBMB" />
|
|
<f name="QYBZ" type="12" table="HIS_TC_FZ_PBMB" />
|
|
<f name="CJR" type="12" table="HIS_TC_FZ_PBMB" />
|
|
<f name="CJRQ" type="93" table="HIS_TC_FZ_PBMB" />
|
|
<f name="XGR" type="12" table="HIS_TC_FZ_PBMB" />
|
|
<f name="XGRQ" type="93" table="HIS_TC_FZ_PBMB" />
|
|
<f name="JGID" type="12" table="HIS_TC_FZ_PBMB" />
|
|
<f name="LOCKFLAG" type="-5" table="HIS_TC_FZ_PBMB" />
|
|
</fields>
|
|
<parameter>
|
|
<p>12</p>
|
|
</parameter>
|
|
</dao>
|
|
|
|
|
|
<dao id="zlkspopDao" type="1" memo="治疗科室查询dao">
|
|
<sql>
|
|
|
|
select a.DPTID,a.DPTCODE,a.DPTNAME,a.DPTRMARK,a.DPTADDR,a.DPTLAYER,a.DPTTYPE,a.DPTGPID,a.DPTSEX,a.DPTZJM,a.DPTBAGE,a.DPTEAGE,a.DPTTXMJC,a.DPTYBCODE,a.CJR,a.CJRQ,a.XGR,a.XGRQ,a.JGID,a.DPTFLAG from HIS_TC_GLKS b left join MAIN_KS a on a.DPTID=b.KSPKEY and a.JGID=b.JGID where a.JGID=? and a.DPTFLAG=1 order by a.DPTCODE
|
|
|
|
|
|
</sql>
|
|
<tables>
|
|
<table delete="true" insert="true" name="MAIN_KS" update="true">
|
|
<primary>DPTID</primary>
|
|
<primary>DPTCODE</primary>
|
|
<primary>JGID</primary>
|
|
</table>
|
|
</tables>
|
|
<fields>
|
|
<f name="DPTID" table="MAIN_KS" type="12"/>
|
|
<f name="DPTCODE" table="MAIN_KS" type="12"/>
|
|
<f name="DPTNAME" table="MAIN_KS" type="12"/>
|
|
<f name="DPTRMARK" table="MAIN_KS" type="12"/>
|
|
<f name="DPTADDR" table="MAIN_KS" type="12"/>
|
|
<f name="DPTLAYER" table="MAIN_KS" type="12"/>
|
|
<f name="DPTTYPE" table="MAIN_KS" type="12"/>
|
|
<f name="DPTGPID" table="MAIN_KS" type="12"/>
|
|
<f name="DPTSEX" table="MAIN_KS" type="12"/>
|
|
<f name="DPTZJM" table="MAIN_KS" type="12"/>
|
|
<f name="DPTBAGE" table="MAIN_KS" type="12"/>
|
|
<f name="DPTEAGE" table="MAIN_KS" type="12"/>
|
|
<f name="DPTTXMJC" table="MAIN_KS" type="12"/>
|
|
<f name="DPTYBCODE" table="MAIN_KS" type="12"/>
|
|
<f name="CJR" table="MAIN_KS" type="12"/>
|
|
<f name="CJRQ" table="MAIN_KS" type="93"/>
|
|
<f name="XGR" table="MAIN_KS" type="12"/>
|
|
<f name="XGRQ" table="MAIN_KS" type="93"/>
|
|
<f name="JGID" table="MAIN_KS" type="12"/>
|
|
<f name="DPTFLAG" table="MAIN_KS" type="-5"/>
|
|
</fields>
|
|
<parameter>
|
|
<p>12</p>
|
|
</parameter>
|
|
</dao>
|
|
|
|
<dao id="zlfzpbmbByPkeyDao" log="true" type="1" memo="诊疗分诊排班模板通过主键获取dao">
|
|
<sql>
|
|
select PKEY,YSPKEY,KSPKEY,FWZ,XQ,PBSD,ZYSL,KSSJ,JSSJ,JFJZTIME,QYBZ,CJR,CJRQ,XGR,XGRQ,JGID,LOCKFLAG from HIS_TC_FZ_PBMB where JGID = ? and pkey=?
|
|
</sql>
|
|
<tables>
|
|
<table name="HIS_TC_FZ_PBMB" insert="true" update="true" delete="true">
|
|
<primary>PKEY</primary>
|
|
<primary>JGID</primary>
|
|
</table>
|
|
</tables>
|
|
<fields>
|
|
<f name="PKEY" type="12" table="HIS_TC_FZ_PBMB" />
|
|
<f name="YSPKEY" type="12" table="HIS_TC_FZ_PBMB" />
|
|
<f name="KSPKEY" type="12" table="HIS_TC_FZ_PBMB" />
|
|
<f name="FWZ" type="12" table="HIS_TC_FZ_PBMB" />
|
|
<f name="XQ" type="12" table="HIS_TC_FZ_PBMB" />
|
|
<f name="PBSD" type="12" table="HIS_TC_FZ_PBMB" />
|
|
<f name="ZYSL" type="-5" table="HIS_TC_FZ_PBMB" />
|
|
<f name="KSSJ" type="93" table="HIS_TC_FZ_PBMB" />
|
|
<f name="JSSJ" type="93" table="HIS_TC_FZ_PBMB" />
|
|
<f name="JFJZTIME" type="93" table="HIS_TC_FZ_PBMB" />
|
|
<f name="QYBZ" type="12" table="HIS_TC_FZ_PBMB" />
|
|
<f name="CJR" type="12" table="HIS_TC_FZ_PBMB" />
|
|
<f name="CJRQ" type="93" table="HIS_TC_FZ_PBMB" />
|
|
<f name="XGR" type="12" table="HIS_TC_FZ_PBMB" />
|
|
<f name="XGRQ" type="93" table="HIS_TC_FZ_PBMB" />
|
|
<f name="JGID" type="12" table="HIS_TC_FZ_PBMB" />
|
|
<f name="LOCKFLAG" type="-5" table="HIS_TC_FZ_PBMB" />
|
|
</fields>
|
|
<parameter>
|
|
<p>12</p>
|
|
<p>12</p>
|
|
</parameter>
|
|
</dao>
|
|
|
|
<dao id="tcFzczsdDic" log="true" cache="true" type="1" memo="治疗站分诊时段字典">
|
|
<sql>
|
|
select PKEY,BM,MC,KSSJ,JSSJ,JFJZTIME,CJR,CJRQ,XGR,XGRQ,JGID,LOCKFLAG from HIS_TC_FZ_SD where JGID=? order by CJRQ
|
|
</sql>
|
|
<tables>
|
|
<table name="HIS_TC_FZ_SD" insert="true" update="true" delete="true">
|
|
<primary>PKEY</primary>
|
|
<primary>JGID</primary>
|
|
</table>
|
|
</tables>
|
|
<fields>
|
|
<f name="PKEY" type="12" table="HIS_TC_FZ_SD" />
|
|
<f name="BM" type="12" table="HIS_TC_FZ_SD" />
|
|
<f name="MC" type="12" table="HIS_TC_FZ_SD" />
|
|
<f name="KSSJ" type="93" table="HIS_TC_FZ_SD" />
|
|
<f name="JSSJ" type="93" table="HIS_TC_FZ_SD" />
|
|
<f name="JFJZTIME" type="93" table="HIS_TC_FZ_SD" />
|
|
<f name="CJR" type="12" table="HIS_TC_FZ_SD" />
|
|
<f name="CJRQ" type="93" table="HIS_TC_FZ_SD" />
|
|
<f name="XGR" type="12" table="HIS_TC_FZ_SD" />
|
|
<f name="XGRQ" type="93" table="HIS_TC_FZ_SD" />
|
|
<f name="JGID" type="12" table="HIS_TC_FZ_SD" />
|
|
<f name="LOCKFLAG" type="-5" table="HIS_TC_FZ_SD" />
|
|
</fields>
|
|
<parameter>
|
|
<p>12</p>
|
|
</parameter>
|
|
</dao>
|
|
|
|
<dao id="createZlfzPbInfoDao" log="true" type="1" memo="诊疗分诊排班信息dao">
|
|
<sql>
|
|
select PKEY,YSPKEY,KSPKEY,FWZ,ZLRQ,PBSD,ZLKSSJ,ZLJSSJ,JFJZRQ,ZYSL,CZZT,TZYY,TZPBKEY,TZPZR,PBBMPKEY,SHR,SHRQ,CJR,CJRQ,XGR,XGRQ,JGID,LOCKFLAG,KYZYSL from HIS_TC_FZ_PBINFO where JGID = ? and YSPKEY=? and KSPKEY = ? and PBSD = ? order by ZLRQ
|
|
</sql>
|
|
<tables>
|
|
<table name="HIS_TC_FZ_PBINFO" insert="true" update="true" delete="true">
|
|
<primary>PKEY</primary>
|
|
<primary>JGID</primary>
|
|
</table>
|
|
</tables>
|
|
<fields>
|
|
<f name="PKEY" type="12" table="HIS_TC_FZ_PBINFO" />
|
|
<f name="YSPKEY" type="12" table="HIS_TC_FZ_PBINFO" />
|
|
<f name="KSPKEY" type="12" table="HIS_TC_FZ_PBINFO" />
|
|
<f name="FWZ" type="12" table="HIS_TC_FZ_PBINFO" />
|
|
<f name="ZLRQ" type="12" table="HIS_TC_FZ_PBINFO" />
|
|
<f name="PBSD" type="12" table="HIS_TC_FZ_PBINFO" />
|
|
<f name="ZLKSSJ" type="93" table="HIS_TC_FZ_PBINFO" />
|
|
<f name="ZLJSSJ" type="93" table="HIS_TC_FZ_PBINFO" />
|
|
<f name="JFJZRQ" type="93" table="HIS_TC_FZ_PBINFO" />
|
|
<f name="ZYSL" type="-5" table="HIS_TC_FZ_PBINFO" />
|
|
<f name="CZZT" type="12" table="HIS_TC_FZ_PBINFO" />
|
|
<f name="TZYY" type="12" table="HIS_TC_FZ_PBINFO" />
|
|
<f name="TZPBKEY" type="12" table="HIS_TC_FZ_PBINFO" />
|
|
<f name="TZPZR" type="12" table="HIS_TC_FZ_PBINFO" />
|
|
<f name="PBBMPKEY" type="12" table="HIS_TC_FZ_PBINFO" />
|
|
<f name="SHR" type="12" table="HIS_TC_FZ_PBINFO" />
|
|
<f name="SHRQ" type="93" table="HIS_TC_FZ_PBINFO" />
|
|
<f name="CJR" type="12" table="HIS_TC_FZ_PBINFO" />
|
|
<f name="CJRQ" type="93" table="HIS_TC_FZ_PBINFO" />
|
|
<f name="XGR" type="12" table="HIS_TC_FZ_PBINFO" />
|
|
<f name="XGRQ" type="93" table="HIS_TC_FZ_PBINFO" />
|
|
<f name="JGID" type="12" table="HIS_TC_FZ_PBINFO" />
|
|
<f name="LOCKFLAG" type="-5" table="HIS_TC_FZ_PBINFO" />
|
|
<f name="KYZYSL" type="-5" table="HIS_TC_FZ_PBINFO" />
|
|
</fields>
|
|
<parameter>
|
|
<p>12</p>
|
|
<p>12</p>
|
|
<p>12</p>
|
|
<p>12</p>
|
|
</parameter>
|
|
</dao>
|
|
|
|
|
|
|
|
<dao id="ZlfzPbInfoDao" log="true" type="1" memo="通过日期查询到治疗分诊的排班信息">
|
|
<sql>
|
|
select PKEY,YSPKEY,KSPKEY,FWZ,ZLRQ,PBSD,ZLKSSJ,ZLJSSJ,JFJZRQ,ZYSL,CZZT,TZYY,TZPBKEY,TZPZR,PBBMPKEY,SHR,SHRQ,CJR,CJRQ,XGR,XGRQ,JGID,LOCKFLAG,KYZYSL from HIS_TC_FZ_PBINFO where JGID=? and ZLRQ = ? order by KSPKEY,YSPKEY,PBSD
|
|
</sql>
|
|
<tables>
|
|
<table name="HIS_TC_FZ_PBINFO" insert="true" update="true" delete="true">
|
|
<primary>PKEY</primary>
|
|
<primary>JGID</primary>
|
|
</table>
|
|
</tables>
|
|
<fields>
|
|
<f name="PKEY" type="12" table="HIS_TC_FZ_PBINFO" />
|
|
<f name="YSPKEY" type="12" table="HIS_TC_FZ_PBINFO" />
|
|
<f name="KSPKEY" type="12" table="HIS_TC_FZ_PBINFO" />
|
|
<f name="FWZ" type="12" table="HIS_TC_FZ_PBINFO" />
|
|
<f name="ZLRQ" type="12" table="HIS_TC_FZ_PBINFO" />
|
|
<f name="PBSD" type="12" table="HIS_TC_FZ_PBINFO" />
|
|
<f name="ZLKSSJ" type="93" table="HIS_TC_FZ_PBINFO" />
|
|
<f name="ZLJSSJ" type="93" table="HIS_TC_FZ_PBINFO" />
|
|
<f name="JFJZRQ" type="93" table="HIS_TC_FZ_PBINFO" />
|
|
<f name="ZYSL" type="-5" table="HIS_TC_FZ_PBINFO" />
|
|
<f name="CZZT" type="12" table="HIS_TC_FZ_PBINFO" />
|
|
<f name="TZYY" type="12" table="HIS_TC_FZ_PBINFO" />
|
|
<f name="TZPBKEY" type="12" table="HIS_TC_FZ_PBINFO" />
|
|
<f name="TZPZR" type="12" table="HIS_TC_FZ_PBINFO" />
|
|
<f name="PBBMPKEY" type="12" table="HIS_TC_FZ_PBINFO" />
|
|
<f name="SHR" type="12" table="HIS_TC_FZ_PBINFO" />
|
|
<f name="SHRQ" type="93" table="HIS_TC_FZ_PBINFO" />
|
|
<f name="CJR" type="12" table="HIS_TC_FZ_PBINFO" />
|
|
<f name="CJRQ" type="93" table="HIS_TC_FZ_PBINFO" />
|
|
<f name="XGR" type="12" table="HIS_TC_FZ_PBINFO" />
|
|
<f name="XGRQ" type="93" table="HIS_TC_FZ_PBINFO" />
|
|
<f name="JGID" type="12" table="HIS_TC_FZ_PBINFO" />
|
|
<f name="LOCKFLAG" type="-5" table="HIS_TC_FZ_PBINFO" />
|
|
<f name="KYZYSL" type="-5" table="HIS_TC_FZ_PBINFO" />
|
|
</fields>
|
|
<parameter>
|
|
<p>12</p>
|
|
<p>12</p>
|
|
</parameter>
|
|
</dao>
|
|
|
|
|
|
|
|
<dao id="tcFzPbInfoByPkeyDao" log="true" type="1" memo="通过pkey获取到治疗站分诊的排班信息dao">
|
|
<sql>
|
|
select PKEY,YSPKEY,KSPKEY,FWZ,ZLRQ,PBSD,ZLKSSJ,ZLJSSJ,JFJZRQ,ZYSL,CZZT,TZYY,TZPBKEY,TZPZR,PBBMPKEY,SHR,SHRQ,CJR,CJRQ,XGR,XGRQ,JGID,LOCKFLAG,KYZYSL from HIS_TC_FZ_PBINFO where JGID=? and PKEY = ?
|
|
</sql>
|
|
<tables>
|
|
<table name="HIS_TC_FZ_PBINFO" insert="true" update="true" delete="true">
|
|
<primary>PKEY</primary>
|
|
<primary>JGID</primary>
|
|
</table>
|
|
</tables>
|
|
<fields>
|
|
<f name="PKEY" type="12" table="HIS_TC_FZ_PBINFO" />
|
|
<f name="YSPKEY" type="12" table="HIS_TC_FZ_PBINFO" />
|
|
<f name="KSPKEY" type="12" table="HIS_TC_FZ_PBINFO" />
|
|
<f name="FWZ" type="12" table="HIS_TC_FZ_PBINFO" />
|
|
<f name="ZLRQ" type="12" table="HIS_TC_FZ_PBINFO" />
|
|
<f name="PBSD" type="12" table="HIS_TC_FZ_PBINFO" />
|
|
<f name="ZLKSSJ" type="93" table="HIS_TC_FZ_PBINFO" />
|
|
<f name="ZLJSSJ" type="93" table="HIS_TC_FZ_PBINFO" />
|
|
<f name="JFJZRQ" type="93" table="HIS_TC_FZ_PBINFO" />
|
|
<f name="ZYSL" type="-5" table="HIS_TC_FZ_PBINFO" />
|
|
<f name="CZZT" type="12" table="HIS_TC_FZ_PBINFO" />
|
|
<f name="TZYY" type="12" table="HIS_TC_FZ_PBINFO" />
|
|
<f name="TZPBKEY" type="12" table="HIS_TC_FZ_PBINFO" />
|
|
<f name="TZPZR" type="12" table="HIS_TC_FZ_PBINFO" />
|
|
<f name="PBBMPKEY" type="12" table="HIS_TC_FZ_PBINFO" />
|
|
<f name="SHR" type="12" table="HIS_TC_FZ_PBINFO" />
|
|
<f name="SHRQ" type="93" table="HIS_TC_FZ_PBINFO" />
|
|
<f name="CJR" type="12" table="HIS_TC_FZ_PBINFO" />
|
|
<f name="CJRQ" type="93" table="HIS_TC_FZ_PBINFO" />
|
|
<f name="XGR" type="12" table="HIS_TC_FZ_PBINFO" />
|
|
<f name="XGRQ" type="93" table="HIS_TC_FZ_PBINFO" />
|
|
<f name="JGID" type="12" table="HIS_TC_FZ_PBINFO" />
|
|
<f name="LOCKFLAG" type="-5" table="HIS_TC_FZ_PBINFO" />
|
|
<f name="KYZYSL" type="-5" table="HIS_TC_FZ_PBINFO" />
|
|
</fields>
|
|
<parameter>
|
|
<p>12</p>
|
|
<p>12</p>
|
|
</parameter>
|
|
</dao>
|
|
|
|
<dao id="tCpbInfoAlreadyAddDao" log="true" type="1" memo="判断治疗站的排班信息是否已经设置了的dao">
|
|
<sql>select COUNT(*) num from HIS_TC_FZ_PBINFO where JGID=? and YSPKEY=? and KSPKEY=? and ZLRQ=? and PBSD=?</sql>
|
|
<fields>
|
|
<f name="num" type="4" />
|
|
</fields>
|
|
<parameter>
|
|
<p>12</p>
|
|
<p>12</p>
|
|
<p>12</p>
|
|
<p>12</p>
|
|
<p>12</p>
|
|
</parameter>
|
|
</dao>
|
|
|
|
<dao id="tcZlxmDic" log="true" cache="true" type="1" memo="治疗站诊疗项目字典dao">
|
|
<sql>
|
|
select PKEY,YZXPKEY,ZLXJC,ZLFWZ,ISAUTOSEND,ZLZY,ZLSYZ,ZLJJ,CJR,CJRQ,XGR,XGRQ,JGID,LOCKFLAG from HIS_TC_ZLXM where JGID=?
|
|
</sql>
|
|
<tables>
|
|
<table name="HIS_TC_ZLXM" insert="true" update="true" delete="true">
|
|
<primary>PKEY</primary>
|
|
<primary>JGID</primary>
|
|
</table>
|
|
</tables>
|
|
<fields>
|
|
<f name="PKEY" type="12" table="HIS_TC_ZLXM" />
|
|
<f name="YZXPKEY" type="12" table="HIS_TC_ZLXM" />
|
|
<f name="ZLXJC" type="12" table="HIS_TC_ZLXM" />
|
|
<f name="ZLFWZ" type="12" table="HIS_TC_ZLXM" />
|
|
<f name="ISAUTOSEND" type="12" table="HIS_TC_ZLXM" />
|
|
<f name="ZLZY" type="12" table="HIS_TC_ZLXM" />
|
|
<f name="ZLSYZ" type="12" table="HIS_TC_ZLXM" />
|
|
<f name="ZLJJ" type="12" table="HIS_TC_ZLXM" />
|
|
<f name="CJR" type="12" table="HIS_TC_ZLXM" />
|
|
<f name="CJRQ" type="93" table="HIS_TC_ZLXM" />
|
|
<f name="XGR" type="12" table="HIS_TC_ZLXM" />
|
|
<f name="XGRQ" type="93" table="HIS_TC_ZLXM" />
|
|
<f name="JGID" type="12" table="HIS_TC_ZLXM" />
|
|
<f name="LOCKFLAG" type="-5" table="HIS_TC_ZLXM" />
|
|
</fields>
|
|
<parameter>
|
|
<p>12</p>
|
|
</parameter>
|
|
</dao>
|
|
|
|
<dao id="tcSqdDao" log="true" type="1">
|
|
<sql>
|
|
select PKEY,HZPKEY,JZPKEY,YZXPKEY,YZMX,ZLFL,ZLXM,ZLXMMC,SQDH,JSKS,ZLSL,DW,DJ,ZJE,YBBX,SQYS,SQTIME,SQKS,SQZT,ZLFAMB,ZLFA,ZLBZ,ZLBW,FWZ,SCFZJL,CJR,CJRQ,XGR,XGRQ,JGID,LOCKFLAG from HIS_TC_SQD where JGID=? and YZMX=?
|
|
</sql>
|
|
<tables>
|
|
<table name="HIS_TC_SQD" insert="true" update="true" delete="true">
|
|
<primary>PKEY</primary>
|
|
<primary>JGID</primary>
|
|
</table>
|
|
</tables>
|
|
<fields>
|
|
<f name="PKEY" type="12" table="HIS_TC_SQD" />
|
|
<f name="HZPKEY" type="12" table="HIS_TC_SQD" />
|
|
<f name="JZPKEY" type="12" table="HIS_TC_SQD" />
|
|
<f name="YZXPKEY" type="12" table="HIS_TC_SQD" />
|
|
<f name="YZMX" type="12" table="HIS_TC_SQD" />
|
|
<f name="ZLFL" type="12" table="HIS_TC_SQD" />
|
|
<f name="ZLXM" type="12" table="HIS_TC_SQD" />
|
|
<f name="ZLXMMC" type="12" table="HIS_TC_SQD" />
|
|
<f name="SQDH" type="12" table="HIS_TC_SQD" />
|
|
<f name="JSKS" type="12" table="HIS_TC_SQD" />
|
|
<f name="ZLSL" type="12" table="HIS_TC_SQD" />
|
|
<f name="DW" type="12" table="HIS_TC_SQD" />
|
|
<f name="DJ" type="8" table="HIS_TC_SQD" />
|
|
<f name="ZJE" type="8" table="HIS_TC_SQD" />
|
|
<f name="YBBX" type="12" table="HIS_TC_SQD" />
|
|
<f name="SQYS" type="12" table="HIS_TC_SQD" />
|
|
<f name="SQTIME" type="93" table="HIS_TC_SQD" />
|
|
<f name="SQKS" type="12" table="HIS_TC_SQD" />
|
|
<f name="SQZT" type="12" table="HIS_TC_SQD" />
|
|
<f name="ZLFAMB" type="12" table="HIS_TC_SQD" />
|
|
<f name="ZLFA" type="12" table="HIS_TC_SQD" />
|
|
<f name="ZLBZ" type="12" table="HIS_TC_SQD" />
|
|
<f name="ZLBW" type="12" table="HIS_TC_SQD" />
|
|
<f name="FWZ" type="12" table="HIS_TC_SQD" />
|
|
<f name="SCFZJL" type="12" table="HIS_TC_SQD" />
|
|
<f name="CJR" type="12" table="HIS_TC_SQD" />
|
|
<f name="CJRQ" type="93" table="HIS_TC_SQD" />
|
|
<f name="XGR" type="12" table="HIS_TC_SQD" />
|
|
<f name="XGRQ" type="93" table="HIS_TC_SQD" />
|
|
<f name="JGID" type="12" table="HIS_TC_SQD" />
|
|
<f name="LOCKFLAG" type="-5" table="HIS_TC_SQD" />
|
|
</fields>
|
|
<parameter>
|
|
<p>12</p>
|
|
<p>12</p>
|
|
</parameter>
|
|
</dao>
|
|
|
|
|
|
|
|
<dao id="tcGlksDic" log="true" cache="true" type="1" memo="治疗站科室字典">
|
|
<sql>
|
|
select PKEY,KSPKEY,CJR,CJRQ,XGR,XGRQ,JGID,LOCKFLAG from HIS_TC_GLKS where JGID=?
|
|
</sql>
|
|
<tables>
|
|
<table name="HIS_TC_GLKS" insert="true" update="true" delete="true">
|
|
<primary>PKEY</primary>
|
|
<primary>JGID</primary>
|
|
</table>
|
|
</tables>
|
|
<fields>
|
|
<f name="PKEY" type="12" table="HIS_TC_GLKS" />
|
|
<f name="KSPKEY" type="12" table="HIS_TC_GLKS" />
|
|
<f name="CJR" type="12" table="HIS_TC_GLKS" />
|
|
<f name="CJRQ" type="93" table="HIS_TC_GLKS" />
|
|
<f name="XGR" type="12" table="HIS_TC_GLKS" />
|
|
<f name="XGRQ" type="93" table="HIS_TC_GLKS" />
|
|
<f name="JGID" type="12" table="HIS_TC_GLKS" />
|
|
<f name="LOCKFLAG" type="-5" table="HIS_TC_GLKS" />
|
|
</fields>
|
|
<parameter>
|
|
<p>12</p>
|
|
</parameter>
|
|
</dao>
|
|
|
|
|
|
|
|
<dao id="tcZlxmFambDic" log="true" cache="true" type="1" memo="治疗站诊疗项目方案模板字典">
|
|
<sql>
|
|
select PKEY,YZXPKEY,ZLXMPKEY,FABT,FANR,CJR,CJRQ,XGR,XGRQ,JGID,LOCKFLAG from HIS_TC_ZLXM_FAMB where JGID=? and ZLXMPKEY=? order by CJRQ
|
|
</sql>
|
|
<tables>
|
|
<table name="HIS_TC_ZLXM_FAMB" insert="true" update="true" delete="true">
|
|
<primary>PKEY</primary>
|
|
<primary>JGID</primary>
|
|
</table>
|
|
</tables>
|
|
<fields>
|
|
<f name="PKEY" type="12" table="HIS_TC_ZLXM_FAMB" />
|
|
<f name="YZXPKEY" type="12" table="HIS_TC_ZLXM_FAMB" />
|
|
<f name="ZLXMPKEY" type="12" table="HIS_TC_ZLXM_FAMB" />
|
|
<f name="FABT" type="12" table="HIS_TC_ZLXM_FAMB" />
|
|
<f name="FANR" type="12" table="HIS_TC_ZLXM_FAMB" />
|
|
<f name="CJR" type="12" table="HIS_TC_ZLXM_FAMB" />
|
|
<f name="CJRQ" type="93" table="HIS_TC_ZLXM_FAMB" />
|
|
<f name="XGR" type="12" table="HIS_TC_ZLXM_FAMB" />
|
|
<f name="XGRQ" type="93" table="HIS_TC_ZLXM_FAMB" />
|
|
<f name="JGID" type="12" table="HIS_TC_ZLXM_FAMB" />
|
|
<f name="LOCKFLAG" type="-5" table="HIS_TC_ZLXM_FAMB" />
|
|
</fields>
|
|
<parameter>
|
|
<p>12</p>
|
|
<p>12</p>
|
|
</parameter>
|
|
</dao>
|
|
|
|
<dao id="tcZlxmPopDao" log="true" type="1" memo="治疗站诊疗项目popdao">
|
|
<sql>
|
|
SELECT DISTINCT a.PKEY,a.YZXPKEY,a.ZLXJC,a.ZLFWZ,a.ISAUTOSEND,a.ZLZY,a.ZLSYZ,a.ZLJJ,a.CJR,a.CJRQ,a.XGR,a.XGRQ,a.JGID,a.LOCKFLAG,b.mc,b.yzzl,b.je,b.YZDW FROM HIS_TC_ZLXM a left join HIS_YZX b on a.yzxpkey=b.bm and a.JGID=b.JGID left join HIS_YZX_ZJM c on b.BM=c.YZX_BM and b.JGID=c.JGID WHERE a.JGID=? AND b.yzzl like ? AND (c.PYM LIKE ? OR b.BM LIKE ? OR b.MC LIKE ?)
|
|
|
|
|
|
</sql>
|
|
<tables>
|
|
<table name="HIS_TC_ZLXM" insert="true" update="true" delete="true">
|
|
<primary>PKEY</primary>
|
|
<primary>JGID</primary>
|
|
</table>
|
|
</tables>
|
|
<fields>
|
|
<f name="PKEY" type="12" table="HIS_TC_ZLXM" />
|
|
<f name="YZXPKEY" type="12" table="HIS_TC_ZLXM" />
|
|
<f name="ZLXJC" type="12" table="HIS_TC_ZLXM" />
|
|
<f name="ZLFWZ" type="12" table="HIS_TC_ZLXM" />
|
|
<f name="ISAUTOSEND" type="12" table="HIS_TC_ZLXM" />
|
|
<f name="ZLZY" type="12" table="HIS_TC_ZLXM" />
|
|
<f name="ZLSYZ" type="12" table="HIS_TC_ZLXM" />
|
|
<f name="ZLJJ" type="12" table="HIS_TC_ZLXM" />
|
|
<f name="CJR" type="12" table="HIS_TC_ZLXM" />
|
|
<f name="CJRQ" type="93" table="HIS_TC_ZLXM" />
|
|
<f name="XGR" type="12" table="HIS_TC_ZLXM" />
|
|
<f name="XGRQ" type="93" table="HIS_TC_ZLXM" />
|
|
<f name="JGID" type="12" table="HIS_TC_ZLXM" />
|
|
<f name="LOCKFLAG" type="-5" table="HIS_TC_ZLXM" />
|
|
<f name="MC" type="12"/>
|
|
<f name="yzzl" type="12"/>
|
|
<f name="je" type="12"/>
|
|
<f name="yzdw" type="12"/>
|
|
</fields>
|
|
<parameter>
|
|
<p>12</p>
|
|
<p>12</p>
|
|
<p>12</p>
|
|
<p>12</p>
|
|
<p>12</p>
|
|
</parameter>
|
|
</dao>
|
|
|
|
<dao id="zlsqdSqdListDao" log="true" type="1" memo="用于治疗申请单界面的申请单列表">
|
|
<sql>
|
|
select distinct b.JZPKEY,b.HZPKEY,b.pkey,b.JZH,b.YZXZSJ,b.YZXPKEY,b.SQDTYPE,b.SQDPKEY,b.SQDJSPKEY,b.YZMC,c.JJRQ,c.JJKS,b.YZJE,b.yzsfzt,b.YZZT,c.jzlx,a.ZLFL,a.SQDH,a.SQZT from HIS_TC_SQD a left join HIS_YZ_MXB b on a.YZMX=b.pkey and a.JGID=b.JGID left join HIS_JZ_BASEINFO c on b.JZPKEY=c.pkey and b.JGID=c.JGID where a.JGID=? and b.HZPKEY=? and b.JZPKEY=? order by b.YZXZSJ desc
|
|
|
|
|
|
</sql>
|
|
|
|
<fields>
|
|
<f name="JZPKEY" type="12" />
|
|
<f name="HZPKEY" type="12" />
|
|
<f name="PKEY" type="12" />
|
|
<f name="JZH" type="12" />
|
|
<f name="YZXZSJ" type="93" />
|
|
<f name="YZXPKEY" type="12" />
|
|
<f name="SQDTYPE" type="12" />
|
|
<f name="SQDPKEY" type="12" />
|
|
<f name="SQDJSPKEY" type="12" />
|
|
<f name="YZMC" type="12" />
|
|
<f name="JJRQ" type="93" />
|
|
<f name="JJKS" type="12" />
|
|
<f name="YZJE" type="12" />
|
|
<f name="YZSFZT" type="12" />
|
|
<f name="YZZT" type="12" />
|
|
<f name="JZLX" type="12" />
|
|
<f name="ZLFL" type="12" />
|
|
<f name="SQDH" type="12" />
|
|
<f name="SQZT" type="12" />
|
|
</fields>
|
|
<parameter>
|
|
<p>12</p>
|
|
<p>12</p>
|
|
<p>12</p>
|
|
</parameter>
|
|
</dao>
|
|
<dao id="tcSqdZLFZDao" log="true" type="1" memo="用于治疗分诊和治疗站的申请单查询">
|
|
<sql><![CDATA[
|
|
select a.PKEY,a.HZPKEY,a.JZPKEY,a.YZXPKEY,a.YZMX,a.ZLFL,a.ZLXM,a.ZLXMMC,a.SQDH,a.JSKS,a.ZLSL,a.DW,a.DJ,a.ZJE,a.YBBX,a.SQYS,a.SQTIME,a.SQKS,a.SQZT,a.ZLFAMB,a.ZLFA,a.ZLBZ,a.ZLBW,a.FWZ,a.SCFZJL,a.CJR,a.CJRQ,a.XGR,a.XGRQ,a.JGID,a.LOCKFLAG,b.jznl,b.jjks,b.jjys,b.jzlx,b.jzzt,b.jzno,b.zyno,b.mzno,c.xm,c.xb,c.phone,d.YZZT,d.YZSFZT from HIS_TC_SQD a left join HIS_JZ_BASEINFO b on a.jzpkey=b.pkey and a.JGID=b.JGID left join HIS_HZINFO c on a.hzpkey=c.pkey and a.JGID=c.JGID left join HIS_YZ_MXB d on a.yzmx=d.pkey and a.JGID=d.JGID where a.JGID=? and d.YZSHZT='1' and ((b.JZLX='Z' and (d.YZZT !='1' AND d.YZZT !='0')) or (b.JZLX='M' and d.YZSFZT='1')) and a.SQTIME >= ? and a.SQTIME <=? order by a.SQTIME desc
|
|
|
|
|
|
]]></sql>
|
|
<tables>
|
|
<table name="HIS_TC_SQD" insert="true" update="true" delete="true">
|
|
<primary>PKEY</primary>
|
|
<primary>JGID</primary>
|
|
</table>
|
|
</tables>
|
|
<fields>
|
|
<f name="PKEY" type="12" table="HIS_TC_SQD" />
|
|
<f name="HZPKEY" type="12" table="HIS_TC_SQD" />
|
|
<f name="JZPKEY" type="12" table="HIS_TC_SQD" />
|
|
<f name="YZXPKEY" type="12" table="HIS_TC_SQD" />
|
|
<f name="YZMX" type="12" table="HIS_TC_SQD" />
|
|
<f name="ZLFL" type="12" table="HIS_TC_SQD" />
|
|
<f name="ZLXM" type="12" table="HIS_TC_SQD" />
|
|
<f name="ZLXMMC" type="12" table="HIS_TC_SQD" />
|
|
<f name="SQDH" type="12" table="HIS_TC_SQD" />
|
|
<f name="JSKS" type="12" table="HIS_TC_SQD" />
|
|
<f name="ZLSL" type="-5" table="HIS_TC_SQD" />
|
|
<f name="DW" type="12" table="HIS_TC_SQD" />
|
|
<f name="DJ" type="8" table="HIS_TC_SQD" />
|
|
<f name="ZJE" type="8" table="HIS_TC_SQD" />
|
|
<f name="YBBX" type="12" table="HIS_TC_SQD" />
|
|
<f name="SQYS" type="12" table="HIS_TC_SQD" />
|
|
<f name="SQTIME" type="93" table="HIS_TC_SQD" />
|
|
<f name="SQKS" type="12" table="HIS_TC_SQD" />
|
|
<f name="SQZT" type="12" table="HIS_TC_SQD" />
|
|
<f name="ZLFAMB" type="12" table="HIS_TC_SQD" />
|
|
<f name="ZLFA" type="12" table="HIS_TC_SQD" />
|
|
<f name="ZLBZ" type="12" table="HIS_TC_SQD" />
|
|
<f name="ZLBW" type="12" table="HIS_TC_SQD" />
|
|
<f name="FWZ" type="12" table="HIS_TC_SQD" />
|
|
<f name="SCFZJL" type="12" table="HIS_TC_SQD" />
|
|
<f name="CJR" type="12" table="HIS_TC_SQD" />
|
|
<f name="CJRQ" type="93" table="HIS_TC_SQD" />
|
|
<f name="XGR" type="12" table="HIS_TC_SQD" />
|
|
<f name="XGRQ" type="93" table="HIS_TC_SQD" />
|
|
<f name="JGID" type="12" table="HIS_TC_SQD" />
|
|
<f name="LOCKFLAG" type="-5" table="HIS_TC_SQD" />
|
|
<f name="JZNL" type="12" />
|
|
<f name="JJKS" type="12" />
|
|
<f name="JJYS" type="12" />
|
|
<f name="JZLX" type="12" />
|
|
<f name="JZZT" type="12" />
|
|
<f name="JZNO" type="12" />
|
|
<f name="ZYNO" type="12" />
|
|
<f name="MZNO" type="12" />
|
|
<f name="XM" type="12" />
|
|
<f name="XB" type="12" />
|
|
<f name="PHONE" type="12" />
|
|
<f name="YZZT" type="12" />
|
|
<f name="YZSFZT" type="12" />
|
|
</fields>
|
|
<parameter>
|
|
<p>12</p>
|
|
<p>93</p>
|
|
<p>93</p>
|
|
</parameter>
|
|
</dao>
|
|
|
|
|
|
|
|
<dao id="tcFzExecDao" log="true" type="1" memo="用于治疗站分诊区通过申请单查询到对应的医嘱执行项,根据执行项的执行数量来对应可以分诊的数量">
|
|
<sql>
|
|
select a.PKEY,a.JZPKEY,a.HZPKEY,a.ZYNO,a.YZMX,a.YZXPKEY,a.ZXFLAG,a.ZXR,a.ZXTIME,a.ZXRKS,a.ZXRWARD,a.PRINTFLAG,a.PRINTMAN,a.PRINTTIME,a.BBCJFLAG,a.BBCJMAN,a.BBCJTIME,a.BBTM,a.QUERYCODE,a.SFFLAG,a.ZXSL,a.ZXDW,a.ZXJE,a.YZBEGINSJ,a.YZZXBEGINSJ,a.YZTZSJ,a.YZMS,a.JZBZ,a.ZDZBPKEY,a.CXR,a.CXSJ,a.TZR,a.TZSJ,a.CJR,a.CJRQ,a.XGR,a.XGRQ,a.JGID,a.CFH,a.YZMC,a.ISACTION,a.TYDNUM,a.YFBDZYZPKEY,a.BDYF,a.BDEXECPKEY,a.BDZC,a.CWJS,a.SFXSYZ,a.LOCKFLAG,a.LISCF,(select count(*) num from HIS_TC_SQD_FZQUEUE where JGID=a.JGID and EXEPKEY=a.pkey) fznum from HIS_YZ_EXEC a left join HIS_JZ_BASEINFO b on a.jzpkey=b.pkey and a.JGID=b.JGID where a.JGID=? and a.yzmx=? and ((b.JZLX='Z' and a.ZXFLAG='1') or b.jzlx !='Z') and a.ISACTION=0 order by a.ZXTIME
|
|
|
|
</sql>
|
|
<tables>
|
|
<table name="HIS_YZ_EXEC" insert="true" update="true" delete="true">
|
|
<primary>PKEY</primary>
|
|
<primary>JGID</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="ZYNO" type="12" table="HIS_YZ_EXEC" />
|
|
<f name="YZMX" 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="ZXR" type="12" table="HIS_YZ_EXEC" />
|
|
<f name="ZXTIME" type="93" table="HIS_YZ_EXEC" />
|
|
<f name="ZXRKS" type="12" table="HIS_YZ_EXEC" />
|
|
<f name="ZXRWARD" type="12" table="HIS_YZ_EXEC" />
|
|
<f name="PRINTFLAG" type="12" table="HIS_YZ_EXEC" />
|
|
<f name="PRINTMAN" type="12" table="HIS_YZ_EXEC" />
|
|
<f name="PRINTTIME" type="93" table="HIS_YZ_EXEC" />
|
|
<f name="BBCJFLAG" type="12" table="HIS_YZ_EXEC" />
|
|
<f name="BBCJMAN" type="12" table="HIS_YZ_EXEC" />
|
|
<f name="BBCJTIME" type="93" table="HIS_YZ_EXEC" />
|
|
<f name="BBTM" type="12" table="HIS_YZ_EXEC" />
|
|
<f name="QUERYCODE" type="12" table="HIS_YZ_EXEC" />
|
|
<f name="SFFLAG" type="12" table="HIS_YZ_EXEC" />
|
|
<f name="ZXSL" type="8" table="HIS_YZ_EXEC" />
|
|
<f name="ZXDW" type="12" table="HIS_YZ_EXEC" />
|
|
<f name="ZXJE" type="8" table="HIS_YZ_EXEC" />
|
|
<f name="YZBEGINSJ" type="93" table="HIS_YZ_EXEC" />
|
|
<f name="YZZXBEGINSJ" type="93" table="HIS_YZ_EXEC" />
|
|
<f name="YZTZSJ" type="93" table="HIS_YZ_EXEC" />
|
|
<f name="YZMS" type="12" table="HIS_YZ_EXEC" />
|
|
<f name="JZBZ" type="12" table="HIS_YZ_EXEC" />
|
|
<f name="ZDZBPKEY" type="12" table="HIS_YZ_EXEC" />
|
|
<f name="CXR" type="12" table="HIS_YZ_EXEC" />
|
|
<f name="CXSJ" type="93" table="HIS_YZ_EXEC" />
|
|
<f name="TZR" type="12" table="HIS_YZ_EXEC" />
|
|
<f name="TZSJ" 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="XGR" type="12" table="HIS_YZ_EXEC" />
|
|
<f name="XGRQ" type="93" table="HIS_YZ_EXEC" />
|
|
<f name="JGID" type="12" table="HIS_YZ_EXEC" />
|
|
<f name="CFH" type="12" table="HIS_YZ_EXEC" />
|
|
<f name="YZMC" type="12" table="HIS_YZ_EXEC" />
|
|
<f name="ISACTION" type="12" table="HIS_YZ_EXEC" />
|
|
<f name="TYDNUM" type="8" table="HIS_YZ_EXEC" />
|
|
<f name="YFBDZYZPKEY" type="12" table="HIS_YZ_EXEC" />
|
|
<f name="BDYF" type="12" table="HIS_YZ_EXEC" />
|
|
<f name="BDEXECPKEY" type="12" table="HIS_YZ_EXEC" />
|
|
<f name="BDZC" type="12" table="HIS_YZ_EXEC" />
|
|
<f name="CWJS" type="12" table="HIS_YZ_EXEC" />
|
|
<f name="SFXSYZ" type="12" table="HIS_YZ_EXEC" />
|
|
<f name="LOCKFLAG" type="-5" table="HIS_YZ_EXEC" />
|
|
<f name="LISCF" type="12" table="HIS_YZ_EXEC" />
|
|
<f name="FZNUM" type="4" />
|
|
</fields>
|
|
<parameter>
|
|
<p>12</p>
|
|
<p>12</p>
|
|
</parameter>
|
|
</dao>
|
|
|
|
|
|
|
|
<dao id="tcnewSqdFzQueueDao" log="true" type="1" memo="申请单新建分诊队列dao">
|
|
<sql>
|
|
select PKEY,HZPKEY,JZPKEY,SQDPKEY,YZMX,EXEPKEY,FZPBINFOPKEY,ZLRQ,ZLSJ,ZLYS,ZLKS,PDZT,PDHM,HJZT,PDYXJ,PBSD,ZLKSSJ,ZLJSSJ,CJR,CJRQ,XGR,XGRQ,JGID,LOCKFLAG from HIS_TC_SQD_FZQUEUE where 1=2 order by CJRQ
|
|
</sql>
|
|
<tables>
|
|
<table name="HIS_TC_SQD_FZQUEUE" insert="true" update="true" delete="true">
|
|
<primary>PKEY</primary>
|
|
<primary>JGID</primary>
|
|
</table>
|
|
</tables>
|
|
<fields>
|
|
<f name="PKEY" type="12" table="HIS_TC_SQD_FZQUEUE" />
|
|
<f name="HZPKEY" type="12" table="HIS_TC_SQD_FZQUEUE" />
|
|
<f name="JZPKEY" type="12" table="HIS_TC_SQD_FZQUEUE" />
|
|
<f name="SQDPKEY" type="12" table="HIS_TC_SQD_FZQUEUE" />
|
|
<f name="YZMX" type="12" table="HIS_TC_SQD_FZQUEUE" />
|
|
<f name="EXEPKEY" type="12" table="HIS_TC_SQD_FZQUEUE" />
|
|
<f name="FZPBINFOPKEY" type="12" table="HIS_TC_SQD_FZQUEUE" />
|
|
<f name="ZLRQ" type="12" table="HIS_TC_SQD_FZQUEUE" />
|
|
<f name="ZLSJ" type="93" table="HIS_TC_SQD_FZQUEUE" />
|
|
<f name="ZLYS" type="12" table="HIS_TC_SQD_FZQUEUE" />
|
|
<f name="ZLKS" type="12" table="HIS_TC_SQD_FZQUEUE" />
|
|
<f name="PDZT" type="12" table="HIS_TC_SQD_FZQUEUE" />
|
|
<f name="PDHM" type="12" table="HIS_TC_SQD_FZQUEUE" />
|
|
<f name="HJZT" type="12" table="HIS_TC_SQD_FZQUEUE" />
|
|
<f name="PDYXJ" type="12" table="HIS_TC_SQD_FZQUEUE" />
|
|
<f name="PBSD" type="12" table="HIS_TC_SQD_FZQUEUE" />
|
|
<f name="ZLKSSJ" type="93" table="HIS_TC_SQD_FZQUEUE" />
|
|
<f name="ZLJSSJ" type="93" table="HIS_TC_SQD_FZQUEUE" />
|
|
<f name="CJR" type="12" table="HIS_TC_SQD_FZQUEUE" />
|
|
<f name="CJRQ" type="93" table="HIS_TC_SQD_FZQUEUE" />
|
|
<f name="XGR" type="12" table="HIS_TC_SQD_FZQUEUE" />
|
|
<f name="XGRQ" type="93" table="HIS_TC_SQD_FZQUEUE" />
|
|
<f name="JGID" type="12" table="HIS_TC_SQD_FZQUEUE" />
|
|
<f name="LOCKFLAG" type="-5" table="HIS_TC_SQD_FZQUEUE" />
|
|
</fields>
|
|
</dao>
|
|
|
|
|
|
<dao id="tcFzPdInfoDao" log="true" type="1" memo="通过科室、服务组、分诊日期查询到对应的分诊资源dao">
|
|
<sql>
|
|
select PKEY,YSPKEY,KSPKEY,FWZ,ZLRQ,PBSD,ZLKSSJ,ZLJSSJ,JFJZRQ,ZYSL,CZZT,TZYY,TZPBKEY,TZPZR,PBBMPKEY,SHR,SHRQ,CJR,CJRQ,XGR,XGRQ,JGID,LOCKFLAG,KYZYSL from HIS_TC_FZ_PBINFO where JGID=? and KSPKEY=? and FWZ=? and ZLRQ=? and CZZT='1' order by YSPKEY,PBSD
|
|
</sql>
|
|
<tables>
|
|
<table name="HIS_TC_FZ_PBINFO" insert="false" update="true" delete="false">
|
|
<primary>PKEY</primary>
|
|
<primary>JGID</primary>
|
|
</table>
|
|
</tables>
|
|
<fields>
|
|
<f name="PKEY" type="12" table="HIS_TC_FZ_PBINFO" />
|
|
<f name="YSPKEY" type="12" table="HIS_TC_FZ_PBINFO" />
|
|
<f name="KSPKEY" type="12" table="HIS_TC_FZ_PBINFO" />
|
|
<f name="FWZ" type="12" table="HIS_TC_FZ_PBINFO" />
|
|
<f name="ZLRQ" type="12" table="HIS_TC_FZ_PBINFO" />
|
|
<f name="PBSD" type="12" table="HIS_TC_FZ_PBINFO" />
|
|
<f name="ZLKSSJ" type="93" table="HIS_TC_FZ_PBINFO" />
|
|
<f name="ZLJSSJ" type="93" table="HIS_TC_FZ_PBINFO" />
|
|
<f name="JFJZRQ" type="93" table="HIS_TC_FZ_PBINFO" />
|
|
<f name="ZYSL" type="-5" table="HIS_TC_FZ_PBINFO" />
|
|
<f name="CZZT" type="12" table="HIS_TC_FZ_PBINFO" />
|
|
<f name="TZYY" type="12" table="HIS_TC_FZ_PBINFO" />
|
|
<f name="TZPBKEY" type="12" table="HIS_TC_FZ_PBINFO" />
|
|
<f name="TZPZR" type="12" table="HIS_TC_FZ_PBINFO" />
|
|
<f name="PBBMPKEY" type="12" table="HIS_TC_FZ_PBINFO" />
|
|
<f name="SHR" type="12" table="HIS_TC_FZ_PBINFO" />
|
|
<f name="SHRQ" type="93" table="HIS_TC_FZ_PBINFO" />
|
|
<f name="CJR" type="12" table="HIS_TC_FZ_PBINFO" />
|
|
<f name="CJRQ" type="93" table="HIS_TC_FZ_PBINFO" />
|
|
<f name="XGR" type="12" table="HIS_TC_FZ_PBINFO" />
|
|
<f name="XGRQ" type="93" table="HIS_TC_FZ_PBINFO" />
|
|
<f name="JGID" type="12" table="HIS_TC_FZ_PBINFO" />
|
|
<f name="LOCKFLAG" type="-5" table="HIS_TC_FZ_PBINFO" />
|
|
<f name="KYZYSL" type="8" table="HIS_TC_FZ_PBINFO" />
|
|
</fields>
|
|
<parameter>
|
|
<p>12</p>
|
|
<p>12</p>
|
|
<p>12</p>
|
|
<p>12</p>
|
|
</parameter>
|
|
</dao>
|
|
|
|
|
|
<dao id="tcSqdFzQueueDao" log="true" type="1" memo="申请单对应分诊记录">
|
|
<sql>
|
|
select a.PKEY,a.HZPKEY,a.JZPKEY,a.SQDPKEY,a.YZMX,a.EXEPKEY,a.FZPBINFOPKEY,a.ZLRQ,a.ZLSJ,a.ZLYS,a.ZLKS,a.PDZT,a.PDHM,a.HJZT,a.PDYXJ,a.PBSD,a.ZLKSSJ,a.ZLJSSJ,a.CJR,a.CJRQ,a.XGR,a.XGRQ,a.JGID,a.LOCKFLAG,b.jzno,c.xm,d.yzmc from HIS_TC_SQD_FZQUEUE a left join HIS_JZ_BASEINFO b on a.jzpkey=b.pkey and a.JGID=b.JGID left join HIS_HZINFO c on a.hzpkey=c.pkey and a.JGID=c.JGID left join HIS_YZ_MXB d on a.yzmx=d.pkey and a.JGID=d.JGID where a.JGID=? and a.SQDPKEY=? order by a.CJRQ
|
|
</sql>
|
|
<tables>
|
|
<table name="HIS_TC_SQD_FZQUEUE" insert="true" update="true" delete="true">
|
|
<primary>PKEY</primary>
|
|
<primary>JGID</primary>
|
|
</table>
|
|
</tables>
|
|
<fields>
|
|
<f name="PKEY" type="12" table="HIS_TC_SQD_FZQUEUE" />
|
|
<f name="HZPKEY" type="12" table="HIS_TC_SQD_FZQUEUE" />
|
|
<f name="JZPKEY" type="12" table="HIS_TC_SQD_FZQUEUE" />
|
|
<f name="SQDPKEY" type="12" table="HIS_TC_SQD_FZQUEUE" />
|
|
<f name="YZMX" type="12" table="HIS_TC_SQD_FZQUEUE" />
|
|
<f name="EXEPKEY" type="12" table="HIS_TC_SQD_FZQUEUE" />
|
|
<f name="FZPBINFOPKEY" type="12" table="HIS_TC_SQD_FZQUEUE" />
|
|
<f name="ZLRQ" type="12" table="HIS_TC_SQD_FZQUEUE" />
|
|
<f name="ZLSJ" type="93" table="HIS_TC_SQD_FZQUEUE" />
|
|
<f name="ZLYS" type="12" table="HIS_TC_SQD_FZQUEUE" />
|
|
<f name="ZLKS" type="12" table="HIS_TC_SQD_FZQUEUE" />
|
|
<f name="PDZT" type="12" table="HIS_TC_SQD_FZQUEUE" />
|
|
<f name="PDHM" type="12" table="HIS_TC_SQD_FZQUEUE" />
|
|
<f name="HJZT" type="12" table="HIS_TC_SQD_FZQUEUE" />
|
|
<f name="PDYXJ" type="12" table="HIS_TC_SQD_FZQUEUE" />
|
|
<f name="PBSD" type="12" table="HIS_TC_SQD_FZQUEUE" />
|
|
<f name="ZLKSSJ" type="93" table="HIS_TC_SQD_FZQUEUE" />
|
|
<f name="ZLJSSJ" type="93" table="HIS_TC_SQD_FZQUEUE" />
|
|
<f name="CJR" type="12" table="HIS_TC_SQD_FZQUEUE" />
|
|
<f name="CJRQ" type="93" table="HIS_TC_SQD_FZQUEUE" />
|
|
<f name="XGR" type="12" table="HIS_TC_SQD_FZQUEUE" />
|
|
<f name="XGRQ" type="93" table="HIS_TC_SQD_FZQUEUE" />
|
|
<f name="JGID" type="12" table="HIS_TC_SQD_FZQUEUE" />
|
|
<f name="LOCKFLAG" type="-5" table="HIS_TC_SQD_FZQUEUE" />
|
|
<f name="JZNO" type="12" />
|
|
<f name="XM" type="12" />
|
|
<f name="YZMC" type="12" />
|
|
</fields>
|
|
<parameter>
|
|
<p>12</p>
|
|
<p>12</p>
|
|
</parameter>
|
|
</dao>
|
|
|
|
<dao id="tcSqdZlgzzByFenzhenDao" log="true" type="1" memo="用于治疗工作站的分诊模式申请单查询">
|
|
<sql><![CDATA[
|
|
select * from (select a.PKEY,a.HZPKEY,a.JZPKEY,a.YZXPKEY,a.YZMX,a.ZLFL,a.ZLXM,a.ZLXMMC,a.SQDH,a.JSKS,a.ZLSL,a.DW,a.DJ,a.ZJE,a.YBBX,a.SQYS,a.SQTIME,a.SQKS,a.SQZT,a.ZLFAMB,a.ZLFA,a.ZLBZ,a.ZLBW,a.FWZ,a.SCFZJL,a.CJR,a.CJRQ,a.XGR,a.XGRQ,a.JGID,a.LOCKFLAG,b.jznl,b.jjks,b.jjys,b.jzlx,b.jzzt,b.jzno,b.zyno,b.mzno,c.xm,c.xb,c.phone,d.YZZT,d.YZSFZT,(select count(*) num from HIS_TC_SQD_FZQUEUE where SQDPKEY=a.pkey and JGID=a.JGID and ZLYS=?) fznum from HIS_TC_SQD a left join HIS_JZ_BASEINFO b on a.jzpkey=b.pkey and a.JGID=b.JGID left join HIS_HZINFO c on a.hzpkey=c.pkey and a.JGID=c.JGID left join HIS_YZ_MXB d on a.yzmx=d.pkey and a.JGID=d.JGID where a.JGID=? and a.JSKS=? and d.YZSHZT='1' and ((b.JZLX='Z' and (d.YZZT !='1' AND d.YZZT !='0')) or (b.JZLX='M' and d.YZSFZT='1')) and a.SQTIME >= ? and a.SQTIME <=? order by a.SQTIME desc) where fznum > 0
|
|
|
|
]]></sql>
|
|
<tables>
|
|
<table name="HIS_TC_SQD" insert="true" update="true" delete="true">
|
|
<primary>PKEY</primary>
|
|
<primary>JGID</primary>
|
|
</table>
|
|
</tables>
|
|
<fields>
|
|
<f name="PKEY" type="12" table="HIS_TC_SQD" />
|
|
<f name="HZPKEY" type="12" table="HIS_TC_SQD" />
|
|
<f name="JZPKEY" type="12" table="HIS_TC_SQD" />
|
|
<f name="YZXPKEY" type="12" table="HIS_TC_SQD" />
|
|
<f name="YZMX" type="12" table="HIS_TC_SQD" />
|
|
<f name="ZLFL" type="12" table="HIS_TC_SQD" />
|
|
<f name="ZLXM" type="12" table="HIS_TC_SQD" />
|
|
<f name="ZLXMMC" type="12" table="HIS_TC_SQD" />
|
|
<f name="SQDH" type="12" table="HIS_TC_SQD" />
|
|
<f name="JSKS" type="12" table="HIS_TC_SQD" />
|
|
<f name="ZLSL" type="-5" table="HIS_TC_SQD" />
|
|
<f name="DW" type="12" table="HIS_TC_SQD" />
|
|
<f name="DJ" type="8" table="HIS_TC_SQD" />
|
|
<f name="ZJE" type="8" table="HIS_TC_SQD" />
|
|
<f name="YBBX" type="12" table="HIS_TC_SQD" />
|
|
<f name="SQYS" type="12" table="HIS_TC_SQD" />
|
|
<f name="SQTIME" type="93" table="HIS_TC_SQD" />
|
|
<f name="SQKS" type="12" table="HIS_TC_SQD" />
|
|
<f name="SQZT" type="12" table="HIS_TC_SQD" />
|
|
<f name="ZLFAMB" type="12" table="HIS_TC_SQD" />
|
|
<f name="ZLFA" type="12" table="HIS_TC_SQD" />
|
|
<f name="ZLBZ" type="12" table="HIS_TC_SQD" />
|
|
<f name="ZLBW" type="12" table="HIS_TC_SQD" />
|
|
<f name="FWZ" type="12" table="HIS_TC_SQD" />
|
|
<f name="SCFZJL" type="12" table="HIS_TC_SQD" />
|
|
<f name="CJR" type="12" table="HIS_TC_SQD" />
|
|
<f name="CJRQ" type="93" table="HIS_TC_SQD" />
|
|
<f name="XGR" type="12" table="HIS_TC_SQD" />
|
|
<f name="XGRQ" type="93" table="HIS_TC_SQD" />
|
|
<f name="JGID" type="12" table="HIS_TC_SQD" />
|
|
<f name="LOCKFLAG" type="-5" table="HIS_TC_SQD" />
|
|
<f name="JZNL" type="12" />
|
|
<f name="JJKS" type="12" />
|
|
<f name="JJYS" type="12" />
|
|
<f name="JZLX" type="12" />
|
|
<f name="JZZT" type="12" />
|
|
<f name="JZNO" type="12" />
|
|
<f name="ZYNO" type="12" />
|
|
<f name="MZNO" type="12" />
|
|
<f name="XM" type="12" />
|
|
<f name="XB" type="12" />
|
|
<f name="PHONE" type="12" />
|
|
<f name="YZZT" type="12" />
|
|
<f name="YZSFZT" type="12" />
|
|
<f name="FZNUM" type="12" />
|
|
</fields>
|
|
<parameter>
|
|
<p>12</p>
|
|
<p>12</p>
|
|
<p>12</p>
|
|
<p>93</p>
|
|
<p>93</p>
|
|
</parameter>
|
|
</dao>
|
|
|
|
<dao id="tcNewSqdExecByFenzhenDao" log="true" type="1" memo="分诊模式新增治疗记录dao">
|
|
<sql>
|
|
select PKEY,HZPKEY,JZPKEY,SQDPKEY,YZMX,EXEPKEY,FZPKEY,SFZJZX,ZLSJ,ZLYS,ZLKS,ZLBT,ZLJL,ZBGZ,BLJL,ZYSX,ZLFS,ZLYQ,BWYS,JIAYA,JIANYA,ZLYL,YND,CJR,CJRQ,XGR,XGRQ,JGID,LOCKFLAG from HIS_TC_SQD_EXEC where JGID=? and FZPKEY=?
|
|
</sql>
|
|
<tables>
|
|
<table name="HIS_TC_SQD_EXEC" insert="true" update="true" delete="true">
|
|
<primary>PKEY</primary>
|
|
<primary>JGID</primary>
|
|
</table>
|
|
</tables>
|
|
<fields>
|
|
<f name="PKEY" type="12" table="HIS_TC_SQD_EXEC" />
|
|
<f name="HZPKEY" type="12" table="HIS_TC_SQD_EXEC" />
|
|
<f name="JZPKEY" type="12" table="HIS_TC_SQD_EXEC" />
|
|
<f name="SQDPKEY" type="12" table="HIS_TC_SQD_EXEC" />
|
|
<f name="YZMX" type="12" table="HIS_TC_SQD_EXEC" />
|
|
<f name="EXEPKEY" type="12" table="HIS_TC_SQD_EXEC" />
|
|
<f name="FZPKEY" type="12" table="HIS_TC_SQD_EXEC" />
|
|
<f name="SFZJZX" type="12" table="HIS_TC_SQD_EXEC" />
|
|
<f name="ZLSJ" type="93" table="HIS_TC_SQD_EXEC" />
|
|
<f name="ZLYS" type="12" table="HIS_TC_SQD_EXEC" />
|
|
<f name="ZLKS" type="12" table="HIS_TC_SQD_EXEC" />
|
|
<f name="ZLBT" type="12" table="HIS_TC_SQD_EXEC" />
|
|
<f name="ZLJL" type="12" table="HIS_TC_SQD_EXEC" />
|
|
<f name="ZBGZ" type="12" table="HIS_TC_SQD_EXEC" />
|
|
<f name="BLJL" type="12" table="HIS_TC_SQD_EXEC" />
|
|
<f name="ZYSX" type="12" table="HIS_TC_SQD_EXEC" />
|
|
<f name="ZLFS" type="12" table="HIS_TC_SQD_EXEC" />
|
|
<f name="ZLYQ" type="12" table="HIS_TC_SQD_EXEC" />
|
|
<f name="BWYS" type="12" table="HIS_TC_SQD_EXEC" />
|
|
<f name="JIAYA" type="93" table="HIS_TC_SQD_EXEC" />
|
|
<f name="JIANYA" type="93" table="HIS_TC_SQD_EXEC" />
|
|
<f name="ZLYL" type="12" table="HIS_TC_SQD_EXEC" />
|
|
<f name="YND" type="12" table="HIS_TC_SQD_EXEC" />
|
|
<f name="CJR" type="12" table="HIS_TC_SQD_EXEC" />
|
|
<f name="CJRQ" type="93" table="HIS_TC_SQD_EXEC" />
|
|
<f name="XGR" type="12" table="HIS_TC_SQD_EXEC" />
|
|
<f name="XGRQ" type="93" table="HIS_TC_SQD_EXEC" />
|
|
<f name="JGID" type="12" table="HIS_TC_SQD_EXEC" />
|
|
<f name="LOCKFLAG" type="-5" table="HIS_TC_SQD_EXEC" />
|
|
</fields>
|
|
<parameter>
|
|
<p>12</p>
|
|
<p>12</p>
|
|
</parameter>
|
|
</dao>
|
|
|
|
|
|
|
|
<dao id="findYzxExecByPkeyDao" log="true" type="1">
|
|
<sql>
|
|
select PKEY,JZPKEY,HZPKEY,ZYNO,YZMX,YZXPKEY,ZXFLAG,ZXR,ZXTIME,ZXRKS,ZXRWARD,PRINTFLAG,PRINTMAN,PRINTTIME,BBCJFLAG,BBCJMAN,BBCJTIME,BBTM,QUERYCODE,SFFLAG,ZXSL,ZXDW,ZXJE,YZBEGINSJ,YZZXBEGINSJ,YZTZSJ,YZMS,JZBZ,ZDZBPKEY,CXR,CXSJ,TZR,TZSJ,CJR,CJRQ,XGR,XGRQ,JGID,CFH,YZMC,ISACTION,TYDNUM,YFBDZYZPKEY,BDYF,BDEXECPKEY,BDZC,CWJS,SFXSYZ,LOCKFLAG,LISCF from HIS_YZ_EXEC where JGID=? and pkey=?
|
|
</sql>
|
|
<tables>
|
|
<table name="HIS_YZ_EXEC" insert="true" update="true" delete="true">
|
|
<primary>PKEY</primary>
|
|
<primary>JGID</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="ZYNO" type="12" table="HIS_YZ_EXEC" />
|
|
<f name="YZMX" 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="ZXR" type="12" table="HIS_YZ_EXEC" />
|
|
<f name="ZXTIME" type="93" table="HIS_YZ_EXEC" />
|
|
<f name="ZXRKS" type="12" table="HIS_YZ_EXEC" />
|
|
<f name="ZXRWARD" type="12" table="HIS_YZ_EXEC" />
|
|
<f name="PRINTFLAG" type="12" table="HIS_YZ_EXEC" />
|
|
<f name="PRINTMAN" type="12" table="HIS_YZ_EXEC" />
|
|
<f name="PRINTTIME" type="93" table="HIS_YZ_EXEC" />
|
|
<f name="BBCJFLAG" type="12" table="HIS_YZ_EXEC" />
|
|
<f name="BBCJMAN" type="12" table="HIS_YZ_EXEC" />
|
|
<f name="BBCJTIME" type="93" table="HIS_YZ_EXEC" />
|
|
<f name="BBTM" type="12" table="HIS_YZ_EXEC" />
|
|
<f name="QUERYCODE" type="12" table="HIS_YZ_EXEC" />
|
|
<f name="SFFLAG" type="12" table="HIS_YZ_EXEC" />
|
|
<f name="ZXSL" type="8" table="HIS_YZ_EXEC" />
|
|
<f name="ZXDW" type="12" table="HIS_YZ_EXEC" />
|
|
<f name="ZXJE" type="8" table="HIS_YZ_EXEC" />
|
|
<f name="YZBEGINSJ" type="93" table="HIS_YZ_EXEC" />
|
|
<f name="YZZXBEGINSJ" type="93" table="HIS_YZ_EXEC" />
|
|
<f name="YZTZSJ" type="93" table="HIS_YZ_EXEC" />
|
|
<f name="YZMS" type="12" table="HIS_YZ_EXEC" />
|
|
<f name="JZBZ" type="12" table="HIS_YZ_EXEC" />
|
|
<f name="ZDZBPKEY" type="12" table="HIS_YZ_EXEC" />
|
|
<f name="CXR" type="12" table="HIS_YZ_EXEC" />
|
|
<f name="CXSJ" type="93" table="HIS_YZ_EXEC" />
|
|
<f name="TZR" type="12" table="HIS_YZ_EXEC" />
|
|
<f name="TZSJ" 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="XGR" type="12" table="HIS_YZ_EXEC" />
|
|
<f name="XGRQ" type="93" table="HIS_YZ_EXEC" />
|
|
<f name="JGID" type="12" table="HIS_YZ_EXEC" />
|
|
<f name="CFH" type="12" table="HIS_YZ_EXEC" />
|
|
<f name="YZMC" type="12" table="HIS_YZ_EXEC" />
|
|
<f name="ISACTION" type="12" table="HIS_YZ_EXEC" />
|
|
<f name="TYDNUM" type="8" table="HIS_YZ_EXEC" />
|
|
<f name="YFBDZYZPKEY" type="12" table="HIS_YZ_EXEC" />
|
|
<f name="BDYF" type="12" table="HIS_YZ_EXEC" />
|
|
<f name="BDEXECPKEY" type="12" table="HIS_YZ_EXEC" />
|
|
<f name="BDZC" type="12" table="HIS_YZ_EXEC" />
|
|
<f name="CWJS" type="12" table="HIS_YZ_EXEC" />
|
|
<f name="SFXSYZ" type="12" table="HIS_YZ_EXEC" />
|
|
<f name="LOCKFLAG" type="-5" table="HIS_YZ_EXEC" />
|
|
<f name="LISCF" type="12" table="HIS_YZ_EXEC" />
|
|
</fields>
|
|
<parameter>
|
|
<p>12</p>
|
|
<p>12</p>
|
|
</parameter>
|
|
</dao>
|
|
|
|
|
|
<dao id="tcFzQueueByPkeyDao" log="true" type="1" memo="通过主键申请单分诊队列dao">
|
|
<sql>
|
|
select PKEY,HZPKEY,JZPKEY,SQDPKEY,YZMX,EXEPKEY,FZPBINFOPKEY,ZLRQ,ZLSJ,ZLYS,ZLKS,PDZT,PDHM,HJZT,PDYXJ,PBSD,ZLKSSJ,ZLJSSJ,CJR,CJRQ,XGR,XGRQ,JGID,LOCKFLAG from HIS_TC_SQD_FZQUEUE where JGID=? and PKEY=?
|
|
</sql>
|
|
<tables>
|
|
<table name="HIS_TC_SQD_FZQUEUE" insert="true" update="true" delete="true">
|
|
<primary>PKEY</primary>
|
|
<primary>JGID</primary>
|
|
</table>
|
|
</tables>
|
|
<fields>
|
|
<f name="PKEY" type="12" table="HIS_TC_SQD_FZQUEUE" />
|
|
<f name="HZPKEY" type="12" table="HIS_TC_SQD_FZQUEUE" />
|
|
<f name="JZPKEY" type="12" table="HIS_TC_SQD_FZQUEUE" />
|
|
<f name="SQDPKEY" type="12" table="HIS_TC_SQD_FZQUEUE" />
|
|
<f name="YZMX" type="12" table="HIS_TC_SQD_FZQUEUE" />
|
|
<f name="EXEPKEY" type="12" table="HIS_TC_SQD_FZQUEUE" />
|
|
<f name="FZPBINFOPKEY" type="12" table="HIS_TC_SQD_FZQUEUE" />
|
|
<f name="ZLRQ" type="12" table="HIS_TC_SQD_FZQUEUE" />
|
|
<f name="ZLSJ" type="93" table="HIS_TC_SQD_FZQUEUE" />
|
|
<f name="ZLYS" type="12" table="HIS_TC_SQD_FZQUEUE" />
|
|
<f name="ZLKS" type="12" table="HIS_TC_SQD_FZQUEUE" />
|
|
<f name="PDZT" type="12" table="HIS_TC_SQD_FZQUEUE" />
|
|
<f name="PDHM" type="12" table="HIS_TC_SQD_FZQUEUE" />
|
|
<f name="HJZT" type="12" table="HIS_TC_SQD_FZQUEUE" />
|
|
<f name="PDYXJ" type="12" table="HIS_TC_SQD_FZQUEUE" />
|
|
<f name="PBSD" type="12" table="HIS_TC_SQD_FZQUEUE" />
|
|
<f name="ZLKSSJ" type="93" table="HIS_TC_SQD_FZQUEUE" />
|
|
<f name="ZLJSSJ" type="93" table="HIS_TC_SQD_FZQUEUE" />
|
|
<f name="CJR" type="12" table="HIS_TC_SQD_FZQUEUE" />
|
|
<f name="CJRQ" type="93" table="HIS_TC_SQD_FZQUEUE" />
|
|
<f name="XGR" type="12" table="HIS_TC_SQD_FZQUEUE" />
|
|
<f name="XGRQ" type="93" table="HIS_TC_SQD_FZQUEUE" />
|
|
<f name="JGID" type="12" table="HIS_TC_SQD_FZQUEUE" />
|
|
<f name="LOCKFLAG" type="-5" table="HIS_TC_SQD_FZQUEUE" />
|
|
</fields>
|
|
<parameter>
|
|
<p>12</p>
|
|
<p>12</p>
|
|
</parameter>
|
|
</dao>
|
|
|
|
<dao id="tcSqdExecDao" log="true" type="1" memo="申请单对应执行记录">
|
|
<sql>
|
|
select a.PKEY,a.HZPKEY,a.JZPKEY,a.SQDPKEY,a.YZMX,a.EXEPKEY,a.FZPKEY,a.SFZJZX,a.ZLSJ,a.ZLYS,a.ZLKS,a.ZLBT,a.ZLJL,a.ZBGZ,a.BLJL,a.ZYSX,a.ZLFS,a.ZLYQ,a.BWYS,a.JIAYA,a.JIANYA,a.ZLYL,a.YND,a.CJR,a.CJRQ,a.XGR,a.XGRQ,a.JGID,a.LOCKFLAG,b.jzno,c.xm,d.yzmc from HIS_TC_SQD_EXEC a left join HIS_JZ_BASEINFO b on a.jzpkey=b.pkey and a.JGID=b.JGID left join HIS_HZINFO c on a.hzpkey=c.pkey and a.JGID=c.JGID left join HIS_YZ_MXB d on a.yzmx=d.pkey and a.JGID=d.JGID where a.JGID=? and a.SQDPKEY=? order by a.CJRQ
|
|
</sql>
|
|
<tables>
|
|
<table name="HIS_TC_SQD_EXEC" insert="true" update="true" delete="true">
|
|
<primary>PKEY</primary>
|
|
<primary>JGID</primary>
|
|
</table>
|
|
</tables>
|
|
<fields>
|
|
<f name="PKEY" type="12" table="HIS_TC_SQD_EXEC" />
|
|
<f name="HZPKEY" type="12" table="HIS_TC_SQD_EXEC" />
|
|
<f name="JZPKEY" type="12" table="HIS_TC_SQD_EXEC" />
|
|
<f name="SQDPKEY" type="12" table="HIS_TC_SQD_EXEC" />
|
|
<f name="YZMX" type="12" table="HIS_TC_SQD_EXEC" />
|
|
<f name="EXEPKEY" type="12" table="HIS_TC_SQD_EXEC" />
|
|
<f name="FZPKEY" type="12" table="HIS_TC_SQD_EXEC" />
|
|
<f name="SFZJZX" type="12" table="HIS_TC_SQD_EXEC" />
|
|
<f name="ZLSJ" type="93" table="HIS_TC_SQD_EXEC" />
|
|
<f name="ZLYS" type="12" table="HIS_TC_SQD_EXEC" />
|
|
<f name="ZLKS" type="12" table="HIS_TC_SQD_EXEC" />
|
|
<f name="ZLBT" type="12" table="HIS_TC_SQD_EXEC" />
|
|
<f name="ZLJL" type="12" table="HIS_TC_SQD_EXEC" />
|
|
<f name="ZBGZ" type="12" table="HIS_TC_SQD_EXEC" />
|
|
<f name="BLJL" type="12" table="HIS_TC_SQD_EXEC" />
|
|
<f name="ZYSX" type="12" table="HIS_TC_SQD_EXEC" />
|
|
<f name="ZLFS" type="12" table="HIS_TC_SQD_EXEC" />
|
|
<f name="ZLYQ" type="12" table="HIS_TC_SQD_EXEC" />
|
|
<f name="BWYS" type="12" table="HIS_TC_SQD_EXEC" />
|
|
<f name="JIAYA" type="93" table="HIS_TC_SQD_EXEC" />
|
|
<f name="JIANYA" type="93" table="HIS_TC_SQD_EXEC" />
|
|
<f name="ZLYL" type="12" table="HIS_TC_SQD_EXEC" />
|
|
<f name="YND" type="12" table="HIS_TC_SQD_EXEC" />
|
|
<f name="CJR" type="12" table="HIS_TC_SQD_EXEC" />
|
|
<f name="CJRQ" type="93" table="HIS_TC_SQD_EXEC" />
|
|
<f name="XGR" type="12" table="HIS_TC_SQD_EXEC" />
|
|
<f name="XGRQ" type="93" table="HIS_TC_SQD_EXEC" />
|
|
<f name="JGID" type="12" table="HIS_TC_SQD_EXEC" />
|
|
<f name="LOCKFLAG" type="-5" table="HIS_TC_SQD_EXEC" />
|
|
<f name="JZNO" type="12" />
|
|
<f name="XM" type="12" />
|
|
<f name="YZMC" type="12" />
|
|
</fields>
|
|
<parameter>
|
|
<p>12</p>
|
|
<p>12</p>
|
|
</parameter>
|
|
</dao>
|
|
|
|
<dao id="tcSqdExecByPkeyDao" log="true" type="1" memo="通过治疗记录主键查看治疗记录dao">
|
|
<sql>
|
|
select PKEY,HZPKEY,JZPKEY,SQDPKEY,YZMX,EXEPKEY,FZPKEY,SFZJZX,ZLSJ,ZLYS,ZLKS,ZLBT,ZLJL,ZBGZ,BLJL,ZYSX,ZLFS,ZLYQ,BWYS,JIAYA,JIANYA,ZLYL,YND,CJR,CJRQ,XGR,XGRQ,JGID,LOCKFLAG from HIS_TC_SQD_EXEC where JGID=? and PKEY=?
|
|
</sql>
|
|
<tables>
|
|
<table name="HIS_TC_SQD_EXEC" insert="true" update="true" delete="true">
|
|
<primary>PKEY</primary>
|
|
<primary>JGID</primary>
|
|
</table>
|
|
</tables>
|
|
<fields>
|
|
<f name="PKEY" type="12" table="HIS_TC_SQD_EXEC" />
|
|
<f name="HZPKEY" type="12" table="HIS_TC_SQD_EXEC" />
|
|
<f name="JZPKEY" type="12" table="HIS_TC_SQD_EXEC" />
|
|
<f name="SQDPKEY" type="12" table="HIS_TC_SQD_EXEC" />
|
|
<f name="YZMX" type="12" table="HIS_TC_SQD_EXEC" />
|
|
<f name="EXEPKEY" type="12" table="HIS_TC_SQD_EXEC" />
|
|
<f name="FZPKEY" type="12" table="HIS_TC_SQD_EXEC" />
|
|
<f name="SFZJZX" type="12" table="HIS_TC_SQD_EXEC" />
|
|
<f name="ZLSJ" type="93" table="HIS_TC_SQD_EXEC" />
|
|
<f name="ZLYS" type="12" table="HIS_TC_SQD_EXEC" />
|
|
<f name="ZLKS" type="12" table="HIS_TC_SQD_EXEC" />
|
|
<f name="ZLBT" type="12" table="HIS_TC_SQD_EXEC" />
|
|
<f name="ZLJL" type="12" table="HIS_TC_SQD_EXEC" />
|
|
<f name="ZBGZ" type="12" table="HIS_TC_SQD_EXEC" />
|
|
<f name="BLJL" type="12" table="HIS_TC_SQD_EXEC" />
|
|
<f name="ZYSX" type="12" table="HIS_TC_SQD_EXEC" />
|
|
<f name="ZLFS" type="12" table="HIS_TC_SQD_EXEC" />
|
|
<f name="ZLYQ" type="12" table="HIS_TC_SQD_EXEC" />
|
|
<f name="BWYS" type="12" table="HIS_TC_SQD_EXEC" />
|
|
<f name="JIAYA" type="93" table="HIS_TC_SQD_EXEC" />
|
|
<f name="JIANYA" type="93" table="HIS_TC_SQD_EXEC" />
|
|
<f name="ZLYL" type="12" table="HIS_TC_SQD_EXEC" />
|
|
<f name="YND" type="12" table="HIS_TC_SQD_EXEC" />
|
|
<f name="CJR" type="12" table="HIS_TC_SQD_EXEC" />
|
|
<f name="CJRQ" type="93" table="HIS_TC_SQD_EXEC" />
|
|
<f name="XGR" type="12" table="HIS_TC_SQD_EXEC" />
|
|
<f name="XGRQ" type="93" table="HIS_TC_SQD_EXEC" />
|
|
<f name="JGID" type="12" table="HIS_TC_SQD_EXEC" />
|
|
<f name="LOCKFLAG" type="-5" table="HIS_TC_SQD_EXEC" />
|
|
</fields>
|
|
<parameter>
|
|
<p>12</p>
|
|
<p>12</p>
|
|
</parameter>
|
|
</dao>
|
|
|
|
|
|
<dao id="tcSqdZlgzzDao" log="true" type="1" memo="用于治疗工作站的直接模式申请单查询">
|
|
<sql><![CDATA[
|
|
select a.PKEY,a.HZPKEY,a.JZPKEY,a.YZXPKEY,a.YZMX,a.ZLFL,a.ZLXM,a.ZLXMMC,a.SQDH,a.JSKS,a.ZLSL,a.DW,a.DJ,a.ZJE,a.YBBX,a.SQYS,a.SQTIME,a.SQKS,a.SQZT,a.ZLFAMB,a.ZLFA,a.ZLBZ,a.ZLBW,a.FWZ,a.SCFZJL,a.CJR,a.CJRQ,a.XGR,a.XGRQ,a.JGID,a.LOCKFLAG,b.jznl,b.jjks,b.jjys,b.jzlx,b.jzzt,b.jzno,b.zyno,b.mzno,c.xm,c.xb,c.phone,d.YZZT,d.YZSFZT from HIS_TC_SQD a left join HIS_JZ_BASEINFO b on a.jzpkey=b.pkey and a.JGID=b.JGID left join HIS_HZINFO c on a.hzpkey=c.pkey and a.JGID=c.JGID left join HIS_YZ_MXB d on a.yzmx=d.pkey and a.JGID=d.JGID where a.JGID=? and a.JSKS=? and d.YZSHZT='1' and ((b.JZLX='Z' and (d.YZZT !='1' AND d.YZZT !='0')) or (b.JZLX='M' and d.YZSFZT='1')) and a.SQTIME >= ? and a.SQTIME <=? order by a.SQTIME desc
|
|
|
|
]]></sql>
|
|
<tables>
|
|
<table name="HIS_TC_SQD" insert="true" update="true" delete="true">
|
|
<primary>PKEY</primary>
|
|
<primary>JGID</primary>
|
|
</table>
|
|
</tables>
|
|
<fields>
|
|
<f name="PKEY" type="12" table="HIS_TC_SQD" />
|
|
<f name="HZPKEY" type="12" table="HIS_TC_SQD" />
|
|
<f name="JZPKEY" type="12" table="HIS_TC_SQD" />
|
|
<f name="YZXPKEY" type="12" table="HIS_TC_SQD" />
|
|
<f name="YZMX" type="12" table="HIS_TC_SQD" />
|
|
<f name="ZLFL" type="12" table="HIS_TC_SQD" />
|
|
<f name="ZLXM" type="12" table="HIS_TC_SQD" />
|
|
<f name="ZLXMMC" type="12" table="HIS_TC_SQD" />
|
|
<f name="SQDH" type="12" table="HIS_TC_SQD" />
|
|
<f name="JSKS" type="12" table="HIS_TC_SQD" />
|
|
<f name="ZLSL" type="-5" table="HIS_TC_SQD" />
|
|
<f name="DW" type="12" table="HIS_TC_SQD" />
|
|
<f name="DJ" type="8" table="HIS_TC_SQD" />
|
|
<f name="ZJE" type="8" table="HIS_TC_SQD" />
|
|
<f name="YBBX" type="12" table="HIS_TC_SQD" />
|
|
<f name="SQYS" type="12" table="HIS_TC_SQD" />
|
|
<f name="SQTIME" type="93" table="HIS_TC_SQD" />
|
|
<f name="SQKS" type="12" table="HIS_TC_SQD" />
|
|
<f name="SQZT" type="12" table="HIS_TC_SQD" />
|
|
<f name="ZLFAMB" type="12" table="HIS_TC_SQD" />
|
|
<f name="ZLFA" type="12" table="HIS_TC_SQD" />
|
|
<f name="ZLBZ" type="12" table="HIS_TC_SQD" />
|
|
<f name="ZLBW" type="12" table="HIS_TC_SQD" />
|
|
<f name="FWZ" type="12" table="HIS_TC_SQD" />
|
|
<f name="SCFZJL" type="12" table="HIS_TC_SQD" />
|
|
<f name="CJR" type="12" table="HIS_TC_SQD" />
|
|
<f name="CJRQ" type="93" table="HIS_TC_SQD" />
|
|
<f name="XGR" type="12" table="HIS_TC_SQD" />
|
|
<f name="XGRQ" type="93" table="HIS_TC_SQD" />
|
|
<f name="JGID" type="12" table="HIS_TC_SQD" />
|
|
<f name="LOCKFLAG" type="-5" table="HIS_TC_SQD" />
|
|
<f name="JZNL" type="12" />
|
|
<f name="JJKS" type="12" />
|
|
<f name="JJYS" type="12" />
|
|
<f name="JZLX" type="12" />
|
|
<f name="JZZT" type="12" />
|
|
<f name="JZNO" type="12" />
|
|
<f name="ZYNO" type="12" />
|
|
<f name="MZNO" type="12" />
|
|
<f name="XM" type="12" />
|
|
<f name="XB" type="12" />
|
|
<f name="PHONE" type="12" />
|
|
<f name="YZZT" type="12" />
|
|
<f name="YZSFZT" type="12" />
|
|
<f name="FZNUM" type="12" />
|
|
</fields>
|
|
<parameter>
|
|
<p>12</p>
|
|
<p>12</p>
|
|
<p>93</p>
|
|
<p>93</p>
|
|
</parameter>
|
|
</dao>
|
|
|
|
<dao id="tcZlExecDao" log="true" type="1" memo="用于治疗站分诊区通过申请单查询到对应的医嘱执行项,根据执行项的执行数量来对应可以分诊的数量">
|
|
<sql>
|
|
select a.PKEY,a.JZPKEY,a.HZPKEY,a.ZYNO,a.YZMX,a.YZXPKEY,a.ZXFLAG,a.ZXR,a.ZXTIME,a.ZXRKS,a.ZXRWARD,a.PRINTFLAG,a.PRINTMAN,a.PRINTTIME,a.BBCJFLAG,a.BBCJMAN,a.BBCJTIME,a.BBTM,a.QUERYCODE,a.SFFLAG,a.ZXSL,a.ZXDW,a.ZXJE,a.YZBEGINSJ,a.YZZXBEGINSJ,a.YZTZSJ,a.YZMS,a.JZBZ,a.ZDZBPKEY,a.CXR,a.CXSJ,a.TZR,a.TZSJ,a.CJR,a.CJRQ,a.XGR,a.XGRQ,a.JGID,a.CFH,a.YZMC,a.ISACTION,a.TYDNUM,a.YFBDZYZPKEY,a.BDYF,a.BDEXECPKEY,a.BDZC,a.CWJS,a.SFXSYZ,a.LOCKFLAG,a.LISCF,(select count(*) num from HIS_TC_SQD_EXEC where JGID=a.JGID and EXEPKEY=a.pkey) zlnum from HIS_YZ_EXEC a left join HIS_JZ_BASEINFO b on a.jzpkey=b.pkey and a.JGID=b.JGID where a.JGID=? and a.yzmx=? and ((b.JZLX='Z' and a.ZXFLAG='1') or b.jzlx !='Z') order by a.ZXTIME
|
|
|
|
</sql>
|
|
<tables>
|
|
<table name="HIS_YZ_EXEC" insert="true" update="true" delete="true">
|
|
<primary>PKEY</primary>
|
|
<primary>JGID</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="ZYNO" type="12" table="HIS_YZ_EXEC" />
|
|
<f name="YZMX" 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="ZXR" type="12" table="HIS_YZ_EXEC" />
|
|
<f name="ZXTIME" type="93" table="HIS_YZ_EXEC" />
|
|
<f name="ZXRKS" type="12" table="HIS_YZ_EXEC" />
|
|
<f name="ZXRWARD" type="12" table="HIS_YZ_EXEC" />
|
|
<f name="PRINTFLAG" type="12" table="HIS_YZ_EXEC" />
|
|
<f name="PRINTMAN" type="12" table="HIS_YZ_EXEC" />
|
|
<f name="PRINTTIME" type="93" table="HIS_YZ_EXEC" />
|
|
<f name="BBCJFLAG" type="12" table="HIS_YZ_EXEC" />
|
|
<f name="BBCJMAN" type="12" table="HIS_YZ_EXEC" />
|
|
<f name="BBCJTIME" type="93" table="HIS_YZ_EXEC" />
|
|
<f name="BBTM" type="12" table="HIS_YZ_EXEC" />
|
|
<f name="QUERYCODE" type="12" table="HIS_YZ_EXEC" />
|
|
<f name="SFFLAG" type="12" table="HIS_YZ_EXEC" />
|
|
<f name="ZXSL" type="8" table="HIS_YZ_EXEC" />
|
|
<f name="ZXDW" type="12" table="HIS_YZ_EXEC" />
|
|
<f name="ZXJE" type="8" table="HIS_YZ_EXEC" />
|
|
<f name="YZBEGINSJ" type="93" table="HIS_YZ_EXEC" />
|
|
<f name="YZZXBEGINSJ" type="93" table="HIS_YZ_EXEC" />
|
|
<f name="YZTZSJ" type="93" table="HIS_YZ_EXEC" />
|
|
<f name="YZMS" type="12" table="HIS_YZ_EXEC" />
|
|
<f name="JZBZ" type="12" table="HIS_YZ_EXEC" />
|
|
<f name="ZDZBPKEY" type="12" table="HIS_YZ_EXEC" />
|
|
<f name="CXR" type="12" table="HIS_YZ_EXEC" />
|
|
<f name="CXSJ" type="93" table="HIS_YZ_EXEC" />
|
|
<f name="TZR" type="12" table="HIS_YZ_EXEC" />
|
|
<f name="TZSJ" 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="XGR" type="12" table="HIS_YZ_EXEC" />
|
|
<f name="XGRQ" type="93" table="HIS_YZ_EXEC" />
|
|
<f name="JGID" type="12" table="HIS_YZ_EXEC" />
|
|
<f name="CFH" type="12" table="HIS_YZ_EXEC" />
|
|
<f name="YZMC" type="12" table="HIS_YZ_EXEC" />
|
|
<f name="ISACTION" type="12" table="HIS_YZ_EXEC" />
|
|
<f name="TYDNUM" type="8" table="HIS_YZ_EXEC" />
|
|
<f name="YFBDZYZPKEY" type="12" table="HIS_YZ_EXEC" />
|
|
<f name="BDYF" type="12" table="HIS_YZ_EXEC" />
|
|
<f name="BDEXECPKEY" type="12" table="HIS_YZ_EXEC" />
|
|
<f name="BDZC" type="12" table="HIS_YZ_EXEC" />
|
|
<f name="CWJS" type="12" table="HIS_YZ_EXEC" />
|
|
<f name="SFXSYZ" type="12" table="HIS_YZ_EXEC" />
|
|
<f name="LOCKFLAG" type="-5" table="HIS_YZ_EXEC" />
|
|
<f name="LISCF" type="12" table="HIS_YZ_EXEC" />
|
|
<f name="zlnum" type="4" />
|
|
</fields>
|
|
<parameter>
|
|
<p>12</p>
|
|
<p>12</p>
|
|
</parameter>
|
|
</dao>
|
|
|
|
<dao id="tcSqdExecByExecDao" log="true" type="1" memo="直接治疗模式新增治疗记录dao">
|
|
<sql>
|
|
select a.PKEY,a.HZPKEY,a.JZPKEY,a.SQDPKEY,a.YZMX,a.EXEPKEY,a.FZPKEY,a.SFZJZX,a.ZLSJ,a.ZLYS,a.ZLKS,a.ZLBT,a.ZLJL,a.ZBGZ,a.BLJL,a.ZYSX,a.ZLFS,a.ZLYQ,a.BWYS,a.JIAYA,a.JIANYA,a.ZLYL,a.YND,a.CJR,a.CJRQ,a.XGR,a.XGRQ,a.JGID,a.LOCKFLAG,b.jzno,c.xm,d.yzmc from HIS_TC_SQD_EXEC a left join HIS_JZ_BASEINFO b on a.jzpkey=b.pkey and a.JGID=b.JGID left join HIS_HZINFO c on a.hzpkey=c.pkey and a.JGID=c.JGID left join HIS_YZ_MXB d on a.yzmx=d.pkey and a.JGID=d.JGID where a.JGID=? and a.EXEPKEY=? order by a.CJRQ
|
|
</sql>
|
|
<tables>
|
|
<table name="HIS_TC_SQD_EXEC" insert="true" update="true" delete="true">
|
|
<primary>PKEY</primary>
|
|
<primary>JGID</primary>
|
|
</table>
|
|
</tables>
|
|
<fields>
|
|
<f name="PKEY" type="12" table="HIS_TC_SQD_EXEC" />
|
|
<f name="HZPKEY" type="12" table="HIS_TC_SQD_EXEC" />
|
|
<f name="JZPKEY" type="12" table="HIS_TC_SQD_EXEC" />
|
|
<f name="SQDPKEY" type="12" table="HIS_TC_SQD_EXEC" />
|
|
<f name="YZMX" type="12" table="HIS_TC_SQD_EXEC" />
|
|
<f name="EXEPKEY" type="12" table="HIS_TC_SQD_EXEC" />
|
|
<f name="FZPKEY" type="12" table="HIS_TC_SQD_EXEC" />
|
|
<f name="SFZJZX" type="12" table="HIS_TC_SQD_EXEC" />
|
|
<f name="ZLSJ" type="93" table="HIS_TC_SQD_EXEC" />
|
|
<f name="ZLYS" type="12" table="HIS_TC_SQD_EXEC" />
|
|
<f name="ZLKS" type="12" table="HIS_TC_SQD_EXEC" />
|
|
<f name="ZLBT" type="12" table="HIS_TC_SQD_EXEC" />
|
|
<f name="ZLJL" type="12" table="HIS_TC_SQD_EXEC" />
|
|
<f name="ZBGZ" type="12" table="HIS_TC_SQD_EXEC" />
|
|
<f name="BLJL" type="12" table="HIS_TC_SQD_EXEC" />
|
|
<f name="ZYSX" type="12" table="HIS_TC_SQD_EXEC" />
|
|
<f name="ZLFS" type="12" table="HIS_TC_SQD_EXEC" />
|
|
<f name="ZLYQ" type="12" table="HIS_TC_SQD_EXEC" />
|
|
<f name="BWYS" type="12" table="HIS_TC_SQD_EXEC" />
|
|
<f name="JIAYA" type="93" table="HIS_TC_SQD_EXEC" />
|
|
<f name="JIANYA" type="93" table="HIS_TC_SQD_EXEC" />
|
|
<f name="ZLYL" type="12" table="HIS_TC_SQD_EXEC" />
|
|
<f name="YND" type="12" table="HIS_TC_SQD_EXEC" />
|
|
<f name="CJR" type="12" table="HIS_TC_SQD_EXEC" />
|
|
<f name="CJRQ" type="93" table="HIS_TC_SQD_EXEC" />
|
|
<f name="XGR" type="12" table="HIS_TC_SQD_EXEC" />
|
|
<f name="XGRQ" type="93" table="HIS_TC_SQD_EXEC" />
|
|
<f name="JGID" type="12" table="HIS_TC_SQD_EXEC" />
|
|
<f name="LOCKFLAG" type="-5" table="HIS_TC_SQD_EXEC" />
|
|
<f name="JZNO" type="12" />
|
|
<f name="XM" type="12" />
|
|
<f name="YZMC" type="12" />
|
|
</fields>
|
|
<parameter>
|
|
<p>12</p>
|
|
<p>12</p>
|
|
</parameter>
|
|
</dao>
|
|
<dao id="tcSqdByPkeyDao" log="true" type="1" memo="通过申请单主键来获取申请单数据dao">
|
|
<sql>
|
|
select PKEY,HZPKEY,JZPKEY,YZXPKEY,YZMX,ZLFL,ZLXM,ZLXMMC,SQDH,JSKS,ZLSL,DW,DJ,ZJE,YBBX,SQYS,SQTIME,SQKS,SQZT,ZLFAMB,ZLFA,ZLBZ,ZLBW,FWZ,SCFZJL,CJR,CJRQ,XGR,XGRQ,JGID,LOCKFLAG from HIS_TC_SQD where JGID = ? and pkey=?
|
|
</sql>
|
|
<tables>
|
|
<table name="HIS_TC_SQD" insert="true" update="true" delete="true">
|
|
<primary>PKEY</primary>
|
|
<primary>JGID</primary>
|
|
</table>
|
|
</tables>
|
|
<fields>
|
|
<f name="PKEY" type="12" table="HIS_TC_SQD" />
|
|
<f name="HZPKEY" type="12" table="HIS_TC_SQD" />
|
|
<f name="JZPKEY" type="12" table="HIS_TC_SQD" />
|
|
<f name="YZXPKEY" type="12" table="HIS_TC_SQD" />
|
|
<f name="YZMX" type="12" table="HIS_TC_SQD" />
|
|
<f name="ZLFL" type="12" table="HIS_TC_SQD" />
|
|
<f name="ZLXM" type="12" table="HIS_TC_SQD" />
|
|
<f name="ZLXMMC" type="12" table="HIS_TC_SQD" />
|
|
<f name="SQDH" type="12" table="HIS_TC_SQD" />
|
|
<f name="JSKS" type="12" table="HIS_TC_SQD" />
|
|
<f name="ZLSL" type="-5" table="HIS_TC_SQD" />
|
|
<f name="DW" type="12" table="HIS_TC_SQD" />
|
|
<f name="DJ" type="8" table="HIS_TC_SQD" />
|
|
<f name="ZJE" type="8" table="HIS_TC_SQD" />
|
|
<f name="YBBX" type="12" table="HIS_TC_SQD" />
|
|
<f name="SQYS" type="12" table="HIS_TC_SQD" />
|
|
<f name="SQTIME" type="93" table="HIS_TC_SQD" />
|
|
<f name="SQKS" type="12" table="HIS_TC_SQD" />
|
|
<f name="SQZT" type="12" table="HIS_TC_SQD" />
|
|
<f name="ZLFAMB" type="12" table="HIS_TC_SQD" />
|
|
<f name="ZLFA" type="12" table="HIS_TC_SQD" />
|
|
<f name="ZLBZ" type="12" table="HIS_TC_SQD" />
|
|
<f name="ZLBW" type="12" table="HIS_TC_SQD" />
|
|
<f name="FWZ" type="12" table="HIS_TC_SQD" />
|
|
<f name="SCFZJL" type="12" table="HIS_TC_SQD" />
|
|
<f name="CJR" type="12" table="HIS_TC_SQD" />
|
|
<f name="CJRQ" type="93" table="HIS_TC_SQD" />
|
|
<f name="XGR" type="12" table="HIS_TC_SQD" />
|
|
<f name="XGRQ" type="93" table="HIS_TC_SQD" />
|
|
<f name="JGID" type="12" table="HIS_TC_SQD" />
|
|
<f name="LOCKFLAG" type="-5" table="HIS_TC_SQD" />
|
|
</fields>
|
|
<parameter>
|
|
<p>12</p>
|
|
<p>12</p>
|
|
</parameter>
|
|
</dao>
|
|
</datasource> |