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

353 lines
17 KiB

<?xml version="1.0" encoding="UTF-8"?>
<datasource>
<!-- 1 表示 sql语句dao 2表示存储过程dao 默认为sql语句dao-->
<dao id="messageTypeSetupDao" log="true" type="1" memo="消息类型设置dao">
<sql>
select PKEY,BM,MC,JSDX,FSFS,ZYX,YXTS,TDXX,ZYZDCL,SFQY,CJR,CJRQ,XGR,XGRQ,JGID,LOCKFLAG,VOICE from HIS_MESSAGE_TYPE where JGID=? order by pkey
</sql>
<tables>
<table name="HIS_MESSAGE_TYPE" insert="true" update="true" delete="true">
<primary>PKEY</primary>
<primary>JGID</primary>
</table>
</tables>
<fields>
<f name="PKEY" type="12" table="HIS_MESSAGE_TYPE" />
<f name="BM" type="12" table="HIS_MESSAGE_TYPE" />
<f name="MC" type="12" table="HIS_MESSAGE_TYPE" />
<f name="JSDX" type="12" table="HIS_MESSAGE_TYPE" />
<f name="FSFS" type="12" table="HIS_MESSAGE_TYPE" />
<f name="ZYX" type="12" table="HIS_MESSAGE_TYPE" />
<f name="YXTS" type="4" table="HIS_MESSAGE_TYPE" />
<f name="TDXX" type="12" table="HIS_MESSAGE_TYPE" />
<f name="ZYZDCL" type="12" table="HIS_MESSAGE_TYPE" />
<f name="SFQY" type="12" table="HIS_MESSAGE_TYPE" />
<f name="CJR" type="12" table="HIS_MESSAGE_TYPE" />
<f name="CJRQ" type="93" table="HIS_MESSAGE_TYPE" />
<f name="XGR" type="12" table="HIS_MESSAGE_TYPE" />
<f name="XGRQ" type="93" table="HIS_MESSAGE_TYPE" />
<f name="JGID" type="12" table="HIS_MESSAGE_TYPE" />
<f name="LOCKFLAG" type="-5" table="HIS_MESSAGE_TYPE" />
<f name="VOICE" type="12" table="HIS_MESSAGE_TYPE" />
</fields>
<parameter>
<p>12</p>
</parameter>
</dao>
<dao id="messageTypeDao" log="true" cache="true" type="1" memo="消息类型dao">
<sql>
select PKEY,BM,MC,JSDX,FSFS,ZYX,YXTS,TDXX,ZYZDCL,SFQY,CJR,CJRQ,XGR,XGRQ,JGID,LOCKFLAG,VOICE from HIS_MESSAGE_TYPE where JGID=? and SFQY='1' order by pkey
</sql>
<tables>
<table name="HIS_MESSAGE_TYPE" insert="true" update="true" delete="true">
<primary>PKEY</primary>
<primary>JGID</primary>
</table>
</tables>
<fields>
<f name="PKEY" type="12" table="HIS_MESSAGE_TYPE" />
<f name="BM" type="12" table="HIS_MESSAGE_TYPE" />
<f name="MC" type="12" table="HIS_MESSAGE_TYPE" />
<f name="JSDX" type="12" table="HIS_MESSAGE_TYPE" />
<f name="FSFS" type="12" table="HIS_MESSAGE_TYPE" />
<f name="ZYX" type="12" table="HIS_MESSAGE_TYPE" />
<f name="YXTS" type="4" table="HIS_MESSAGE_TYPE" />
<f name="TDXX" type="12" table="HIS_MESSAGE_TYPE" />
<f name="ZYZDCL" type="12" table="HIS_MESSAGE_TYPE" />
<f name="SFQY" type="12" table="HIS_MESSAGE_TYPE" />
<f name="CJR" type="12" table="HIS_MESSAGE_TYPE" />
<f name="CJRQ" type="93" table="HIS_MESSAGE_TYPE" />
<f name="XGR" type="12" table="HIS_MESSAGE_TYPE" />
<f name="XGRQ" type="93" table="HIS_MESSAGE_TYPE" />
<f name="JGID" type="12" table="HIS_MESSAGE_TYPE" />
<f name="LOCKFLAG" type="-5" table="HIS_MESSAGE_TYPE" />
<f name="VOICE" type="12" table="HIS_MESSAGE_TYPE" />
</fields>
<parameter>
<p>12</p>
</parameter>
</dao>
<dao id="sendMessageDao" log="true" type="1" memo="消息发送dao">
<sql>
select PKEY,MESSAGETYPE,JSDX,FSFS,ZYX,YXTS,TDXX,ZYZDCL,FSR,FSTIME,CONTENT,HZPKEY,JZPKEY,SFCL,JJKS,WARD,JJYS,XZYS,CJR,CJRQ,XGR,XGRQ,JGID,LOCKFLAG from HIS_MESSAGE where 1=2
</sql>
<tables>
<table name="HIS_MESSAGE" insert="true" update="true" delete="true">
<primary>PKEY</primary>
<primary>JGID</primary>
</table>
</tables>
<fields>
<f name="PKEY" type="12" table="HIS_MESSAGE" />
<f name="MESSAGETYPE" type="12" table="HIS_MESSAGE" />
<f name="JSDX" type="12" table="HIS_MESSAGE" />
<f name="FSFS" type="12" table="HIS_MESSAGE" />
<f name="ZYX" type="12" table="HIS_MESSAGE" />
<f name="YXTS" type="4" table="HIS_MESSAGE" />
<f name="TDXX" type="12" table="HIS_MESSAGE" />
<f name="ZYZDCL" type="12" table="HIS_MESSAGE" />
<f name="FSR" type="12" table="HIS_MESSAGE" />
<f name="FSTIME" type="93" table="HIS_MESSAGE" />
<f name="CONTENT" type="12" table="HIS_MESSAGE" />
<f name="HZPKEY" type="12" table="HIS_MESSAGE" />
<f name="JZPKEY" type="12" table="HIS_MESSAGE" />
<f name="SFCL" type="12" table="HIS_MESSAGE" />
<f name="JJKS" type="12" table="HIS_MESSAGE" />
<f name="WARD" type="12" table="HIS_MESSAGE" />
<f name="JJYS" type="12" table="HIS_MESSAGE" />
<f name="XZYS" type="12" table="HIS_MESSAGE" />
<f name="CJR" type="12" table="HIS_MESSAGE" />
<f name="CJRQ" type="93" table="HIS_MESSAGE" />
<f name="XGR" type="12" table="HIS_MESSAGE" />
<f name="XGRQ" type="93" table="HIS_MESSAGE" />
<f name="JGID" type="12" table="HIS_MESSAGE" />
<f name="LOCKFLAG" type="-5" table="HIS_MESSAGE" />
</fields>
</dao>
<dao id="getAllNotProcessMessageDao" log="true" type="1" memo="获取说有的没有处理的消息,按有效天数">
<sql><![CDATA[
select '' flag,PKEY,MESSAGETYPE,JSDX,FSFS,ZYX,YXTS,TDXX,ZYZDCL,FSR,FSTIME,CONTENT,HZPKEY,JZPKEY,SFCL,JJKS,WARD,JJYS,XZYS,CJR,CJRQ,XGR,XGRQ,JGID,LOCKFLAG from HIS_MESSAGE where JGID=? and SFCL=0 and to_date(to_char(fstime+yxts,'yyyy-MM-dd'),'yyyy-MM-dd') >= sysdate order by ZYX,fstime desc
]]></sql>
<tables>
<table name="HIS_MESSAGE" insert="true" update="true" delete="true">
<primary>PKEY</primary>
<primary>JGID</primary>
</table>
</tables>
<fields>
<f name="FLAG" type="12"/>
<f name="PKEY" type="12" table="HIS_MESSAGE" />
<f name="MESSAGETYPE" type="12" table="HIS_MESSAGE" />
<f name="JSDX" type="12" table="HIS_MESSAGE" />
<f name="FSFS" type="12" table="HIS_MESSAGE" />
<f name="ZYX" type="12" table="HIS_MESSAGE" />
<f name="YXTS" type="4" table="HIS_MESSAGE" />
<f name="TDXX" type="12" table="HIS_MESSAGE" />
<f name="ZYZDCL" type="12" table="HIS_MESSAGE" />
<f name="FSR" type="12" table="HIS_MESSAGE" />
<f name="FSTIME" type="93" table="HIS_MESSAGE" />
<f name="CONTENT" type="12" table="HIS_MESSAGE" />
<f name="HZPKEY" type="12" table="HIS_MESSAGE" />
<f name="JZPKEY" type="12" table="HIS_MESSAGE" />
<f name="SFCL" type="12" table="HIS_MESSAGE" />
<f name="JJKS" type="12" table="HIS_MESSAGE" />
<f name="WARD" type="12" table="HIS_MESSAGE" />
<f name="JJYS" type="12" table="HIS_MESSAGE" />
<f name="XZYS" type="12" table="HIS_MESSAGE" />
<f name="CJR" type="12" table="HIS_MESSAGE" />
<f name="CJRQ" type="93" table="HIS_MESSAGE" />
<f name="XGR" type="12" table="HIS_MESSAGE" />
<f name="XGRQ" type="93" table="HIS_MESSAGE" />
<f name="JGID" type="12" table="HIS_MESSAGE" />
<f name="LOCKFLAG" type="-5" table="HIS_MESSAGE" />
</fields>
<parameter>
<p>12</p>
</parameter>
</dao>
<dao id="userGlBqDao" cache="true" log="true" type="1" memo="用户关联所有病区">
<sql>
select a.PKEY,b.pkey BQKEY,a.HSPKEY,a.CJR,a.CJRQ,a.XGR,a.XGRQ,a.JGID,b.MC,b.BQLC,b.BQXB,b.BQKSNL,b.BQJSNL,b.BQZJM,b.bm from HIS_BQGLHS a left join HIS_BQ b on a.JGID=b.JGID left join HIS_BQGLKS c on b.PKEY=c.BQKEY and b.JGID=c.JGID where a.JGID=? and a.hspkey=? and c.KSKEY=? and b.SCBZ=1 order by b.bm
</sql>
<tables>
<table name="HIS_BQGLHS" insert="true" update="true" delete="true">
<primary>PKEY</primary>
<primary>BQKEY</primary>
<primary>HSPKEY</primary>
<primary>JGID</primary>
</table>
</tables>
<fields>
<f name="PKEY" type="12" table="HIS_BQGLHS" />
<f name="BQKEY" type="12" table="HIS_BQGLHS" />
<f name="HSPKEY" type="12" table="HIS_BQGLHS" />
<f name="CJR" type="12" table="HIS_BQGLHS" />
<f name="CJRQ" type="93" table="HIS_BQGLHS" />
<f name="XGR" type="12" table="HIS_BQGLHS" />
<f name="XGRQ" type="93" table="HIS_BQGLHS" />
<f name="JGID" type="12" table="HIS_BQGLHS" />
<f name="MC" type="12" />
<f name="BQLC" type="12" />
<f name="BQXB" type="12" />
<f name="BQKSNL" type="12" />
<f name="BQJSNL" type="12" />
<f name="BQZJM" type="12" />
<f name="BM" type="12" />
</fields>
<parameter>
<p>12</p>
<p>12</p>
<p>12</p>
</parameter>
</dao>
<dao id="receiveMessageDao" log="true" type="1" memo="消息接收dao">
<sql>
select PKEY,MESSAGEPKEY,READMESSAGEMAN,READMESAGETIME,RECEIVEMESSAGEMAN,RECEIVEMESSAGETIME,CJR,CJRQ,XGR,XGRQ,JGID,LOCKFLAG from HIS_MESSAGE_RECEIVE where JGID=? and messagepkey=?
</sql>
<tables>
<table name="HIS_MESSAGE_RECEIVE" insert="true" update="true" delete="true">
<primary>PKEY</primary>
<primary>JGID</primary>
</table>
</tables>
<fields>
<f name="PKEY" type="12" table="HIS_MESSAGE_RECEIVE" />
<f name="MESSAGEPKEY" type="12" table="HIS_MESSAGE_RECEIVE" />
<f name="READMESSAGEMAN" type="12" table="HIS_MESSAGE_RECEIVE" />
<f name="READMESAGETIME" type="93" table="HIS_MESSAGE_RECEIVE" />
<f name="RECEIVEMESSAGEMAN" type="12" table="HIS_MESSAGE_RECEIVE" />
<f name="RECEIVEMESSAGETIME" type="93" table="HIS_MESSAGE_RECEIVE" />
<f name="CJR" type="12" table="HIS_MESSAGE_RECEIVE" />
<f name="CJRQ" type="93" table="HIS_MESSAGE_RECEIVE" />
<f name="XGR" type="12" table="HIS_MESSAGE_RECEIVE" />
<f name="XGRQ" type="93" table="HIS_MESSAGE_RECEIVE" />
<f name="JGID" type="12" table="HIS_MESSAGE_RECEIVE" />
<f name="LOCKFLAG" type="-5" table="HIS_MESSAGE_RECEIVE" />
</fields>
<parameter>
<p>12</p>
<p>12</p>
</parameter>
</dao>
<dao id="messageTypeDic" log="true" type="1" memo="消息类型字典">
<sql>
select PKEY,BM,MC,JSDX,FSFS,ZYX,YXTS,TDXX,ZYZDCL,SFQY,CJR,CJRQ,XGR,XGRQ,JGID,LOCKFLAG,VOICE from HIS_MESSAGE_TYPE where JGID=? order by pkey
</sql>
<tables>
<table name="HIS_MESSAGE_TYPE" insert="true" update="true" delete="true">
<primary>PKEY</primary>
<primary>JGID</primary>
</table>
</tables>
<fields>
<f name="PKEY" type="12" table="HIS_MESSAGE_TYPE" />
<f name="BM" type="12" table="HIS_MESSAGE_TYPE" />
<f name="MC" type="12" table="HIS_MESSAGE_TYPE" />
<f name="JSDX" type="12" table="HIS_MESSAGE_TYPE" />
<f name="FSFS" type="12" table="HIS_MESSAGE_TYPE" />
<f name="ZYX" type="12" table="HIS_MESSAGE_TYPE" />
<f name="YXTS" type="4" table="HIS_MESSAGE_TYPE" />
<f name="TDXX" type="12" table="HIS_MESSAGE_TYPE" />
<f name="ZYZDCL" type="12" table="HIS_MESSAGE_TYPE" />
<f name="SFQY" type="12" table="HIS_MESSAGE_TYPE" />
<f name="CJR" type="12" table="HIS_MESSAGE_TYPE" />
<f name="CJRQ" type="93" table="HIS_MESSAGE_TYPE" />
<f name="XGR" type="12" table="HIS_MESSAGE_TYPE" />
<f name="XGRQ" type="93" table="HIS_MESSAGE_TYPE" />
<f name="JGID" type="12" table="HIS_MESSAGE_TYPE" />
<f name="LOCKFLAG" type="-5" table="HIS_MESSAGE_TYPE" />
<f name="VOICE" type="12" table="HIS_MESSAGE_TYPE" />
</fields>
<parameter>
<p>12</p>
</parameter>
</dao>
<dao id="getAllMessageDao" log="true" type="1" memo="获取说有的的消息,按查询时间范围">
<sql><![CDATA[
select '' flag,PKEY,MESSAGETYPE,JSDX,FSFS,ZYX,YXTS,TDXX,ZYZDCL,FSR,FSTIME,CONTENT,HZPKEY,JZPKEY,SFCL,JJKS,WARD,JJYS,XZYS,CJR,CJRQ,XGR,XGRQ,JGID,LOCKFLAG from HIS_MESSAGE where JGID=? order by ZYX,fstime desc
]]></sql>
<tables>
<table name="HIS_MESSAGE" insert="true" update="true" delete="true">
<primary>PKEY</primary>
<primary>JGID</primary>
</table>
</tables>
<fields>
<f name="flag" type="12" />
<f name="PKEY" type="12" table="HIS_MESSAGE" />
<f name="MESSAGETYPE" type="12" table="HIS_MESSAGE" />
<f name="JSDX" type="12" table="HIS_MESSAGE" />
<f name="FSFS" type="12" table="HIS_MESSAGE" />
<f name="ZYX" type="12" table="HIS_MESSAGE" />
<f name="YXTS" type="4" table="HIS_MESSAGE" />
<f name="TDXX" type="12" table="HIS_MESSAGE" />
<f name="ZYZDCL" type="12" table="HIS_MESSAGE" />
<f name="FSR" type="12" table="HIS_MESSAGE" />
<f name="FSTIME" type="93" table="HIS_MESSAGE" />
<f name="CONTENT" type="12" table="HIS_MESSAGE" />
<f name="HZPKEY" type="12" table="HIS_MESSAGE" />
<f name="JZPKEY" type="12" table="HIS_MESSAGE" />
<f name="SFCL" type="12" table="HIS_MESSAGE" />
<f name="JJKS" type="12" table="HIS_MESSAGE" />
<f name="WARD" type="12" table="HIS_MESSAGE" />
<f name="JJYS" type="12" table="HIS_MESSAGE" />
<f name="XZYS" type="12" table="HIS_MESSAGE" />
<f name="CJR" type="12" table="HIS_MESSAGE" />
<f name="CJRQ" type="93" table="HIS_MESSAGE" />
<f name="XGR" type="12" table="HIS_MESSAGE" />
<f name="XGRQ" type="93" table="HIS_MESSAGE" />
<f name="JGID" type="12" table="HIS_MESSAGE" />
<f name="LOCKFLAG" type="-5" table="HIS_MESSAGE" />
</fields>
<parameter>
<p>12</p>
</parameter>
</dao>
<dao id="getProcessMessageByPkeyDao" log="true" type="1" memo="通过pkey返回消息">
<sql><![CDATA[
select PKEY,MESSAGETYPE,JSDX,FSFS,ZYX,YXTS,TDXX,ZYZDCL,FSR,FSTIME,CONTENT,HZPKEY,JZPKEY,SFCL,JJKS,WARD,JJYS,XZYS,CJR,CJRQ,XGR,XGRQ,JGID,LOCKFLAG from HIS_MESSAGE where JGID=? and pkey=?
]]></sql>
<tables>
<table name="HIS_MESSAGE" insert="true" update="true" delete="true">
<primary>PKEY</primary>
<primary>JGID</primary>
</table>
</tables>
<fields>
<f name="PKEY" type="12" table="HIS_MESSAGE" />
<f name="MESSAGETYPE" type="12" table="HIS_MESSAGE" />
<f name="JSDX" type="12" table="HIS_MESSAGE" />
<f name="FSFS" type="12" table="HIS_MESSAGE" />
<f name="ZYX" type="12" table="HIS_MESSAGE" />
<f name="YXTS" type="4" table="HIS_MESSAGE" />
<f name="TDXX" type="12" table="HIS_MESSAGE" />
<f name="ZYZDCL" type="12" table="HIS_MESSAGE" />
<f name="FSR" type="12" table="HIS_MESSAGE" />
<f name="FSTIME" type="93" table="HIS_MESSAGE" />
<f name="CONTENT" type="12" table="HIS_MESSAGE" />
<f name="HZPKEY" type="12" table="HIS_MESSAGE" />
<f name="JZPKEY" type="12" table="HIS_MESSAGE" />
<f name="SFCL" type="12" table="HIS_MESSAGE" />
<f name="JJKS" type="12" table="HIS_MESSAGE" />
<f name="WARD" type="12" table="HIS_MESSAGE" />
<f name="JJYS" type="12" table="HIS_MESSAGE" />
<f name="XZYS" type="12" table="HIS_MESSAGE" />
<f name="CJR" type="12" table="HIS_MESSAGE" />
<f name="CJRQ" type="93" table="HIS_MESSAGE" />
<f name="XGR" type="12" table="HIS_MESSAGE" />
<f name="XGRQ" type="93" table="HIS_MESSAGE" />
<f name="JGID" type="12" table="HIS_MESSAGE" />
<f name="LOCKFLAG" type="-5" table="HIS_MESSAGE" />
</fields>
<parameter>
<p>12</p>
<p>12</p>
</parameter>
</dao>
</datasource>