90 lines
4.0 KiB
XML
90 lines
4.0 KiB
XML
|
|
<?xml version="1.0" encoding="UTF-8" ?>
|
||
|
|
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||
|
|
"http://mybatis.org/dtd/mybatis-3-mapper.dtd" >
|
||
|
|
<mapper namespace="com.czlisinterface.system.mapper.CommonMapper">
|
||
|
|
<select id="getOption" parameterType="map" resultType="java.lang.String">
|
||
|
|
select top 1 xxqz from com_opt where yq = #{yq} and xxdh = #{xxdh}
|
||
|
|
</select>
|
||
|
|
|
||
|
|
<select id="getUserCount" parameterType="java.lang.String" resultType="java.lang.Integer">
|
||
|
|
select count(1) from com_usr where yhdh = #{yhdh}
|
||
|
|
</select>
|
||
|
|
|
||
|
|
<select id="getUserHISId" parameterType="java.lang.String" resultType="com.czlisinterface.system.pojo.ComUsr">
|
||
|
|
SELECT * FROM com_usr WHERE yhdh = #{yhdh}
|
||
|
|
</select>
|
||
|
|
|
||
|
|
<select id="getFeeClassList" parameterType="java.lang.String" resultType="map">
|
||
|
|
SELECT
|
||
|
|
lab_feeitemclass.sflbdh ,
|
||
|
|
lab_feeitemclass.sflbmc ,
|
||
|
|
lab_feeitemclass.sflbjc ,
|
||
|
|
lab_feeitemclass.bkcolor ,
|
||
|
|
lab_feeitemclass.bglqdh ,
|
||
|
|
xm_fee.bz ,
|
||
|
|
xm_fee.sfxmmc ,
|
||
|
|
lab_feeitemclass.sampletips ,
|
||
|
|
lab_feeitem_vs_class.sfxmdh ,
|
||
|
|
lab_feeitemclass.yblx ,
|
||
|
|
lab_feeitemclass.printcnt,
|
||
|
|
xm_fee.yblx
|
||
|
|
FROM lab_feeitem_vs_class ,
|
||
|
|
lab_feeitemclass ,
|
||
|
|
xm_fee
|
||
|
|
WHERE ( lab_feeitem_vs_class.sflbdh = lab_feeitemclass.sflbdh )
|
||
|
|
AND ( lab_feeitem_vs_class.sfxmdh = xm_fee.sfxmdh )
|
||
|
|
<if test="sfxmdh != null and sfxmdh.length > 0">
|
||
|
|
AND lab_feeitem_vs_class.sfxmdh = #{sfxmdh}
|
||
|
|
</if>
|
||
|
|
</select>
|
||
|
|
|
||
|
|
<select id="getCurrentTime" resultType="java.util.Date">
|
||
|
|
select getdate()
|
||
|
|
</select>
|
||
|
|
|
||
|
|
<select id="getLabInstr" parameterType="string" resultType="com.czlisinterface.system.pojo.LabInstr">
|
||
|
|
select * from lab_instr where yq = #{yq}
|
||
|
|
</select>
|
||
|
|
|
||
|
|
<select id="getXmMed" parameterType="string" resultType="com.czlisinterface.system.pojo.XmMed">
|
||
|
|
select * from xm_med where ywdh=#{ywdh}
|
||
|
|
</select>
|
||
|
|
|
||
|
|
<select id="getDisLabReqdetail" parameterType="string" resultType="map">
|
||
|
|
select distinct(bz2) as bz2, bz1,sqxmdh,sqxmmc,sl,dj,jjzt from lab_reqdetail where sqh = #{sqh}
|
||
|
|
</select>
|
||
|
|
|
||
|
|
<select id="getLabReqdetail_bz2" parameterType="map" resultType="string">
|
||
|
|
select top 1 b.bz2 from lab_result a,lab_reqdetail b,lab_pat c where a.jyrq = c.jyrq and a.yq = c.yq and a.ybh = c.ybh and b.sqh = c.sqh and a.sqxmdh = b.sqxmdh
|
||
|
|
and c.yq = #{yq} and a.xmdh = #{xmdh} and c.sqh = #{sqh}
|
||
|
|
</select>
|
||
|
|
|
||
|
|
<select id="getTopTask" parameterType="map" resultType="com.czlisinterface.system.pojo.Hisinter_exec_log">
|
||
|
|
<![CDATA[ select top 100 * from hisinter_exec_log where level = #{level} and (txt1 = '' or txt1 is null) and execdate < getdate() - 0.01 ORDER BY id]]>
|
||
|
|
</select>
|
||
|
|
|
||
|
|
<select id="getMaxComDict_BT" resultType="int">
|
||
|
|
SELECT MAX(CONVERT(INT,zddh)) FROM com_dict WHERE zdlb = 'BT'
|
||
|
|
</select>
|
||
|
|
|
||
|
|
<select id="getBgddh" parameterType="string" resultType="string">
|
||
|
|
SELECT sflbdh from lab_feeitem_vs_class where sfxmdh=#{sqxmdh};
|
||
|
|
</select>
|
||
|
|
|
||
|
|
<select id="getxm_reqitem_vs_reportitem" parameterType="string" resultType="map">
|
||
|
|
select distinct xm_reqitem_vs_reportitem.sqxmdh,xm_reqitem_vs_reportitem.xmdh
|
||
|
|
from lab_reqdetail,xm_reqitem_vs_reportitem
|
||
|
|
where xm_reqitem_vs_reportitem.sqxmdh=lab_reqdetail.sqxmdh and
|
||
|
|
xm_reqitem_vs_reportitem.yq=#{yq} and
|
||
|
|
lab_reqdetail.sqh=#{sqh}
|
||
|
|
</select>
|
||
|
|
|
||
|
|
<select id="getLis_patlogOne" parameterType="map" resultType="com.czlisinterface.system.pojo.Lis_patlog">
|
||
|
|
select top 1 * from lis_patlog where jyrq = #{jyrq} and yq = #{yq} and ybh = #{ybh} order by xgrq desc
|
||
|
|
</select>
|
||
|
|
|
||
|
|
<select id="getLabPatList" resultType="com.czlisinterface.system.pojo.LabPat">
|
||
|
|
select * from lab_pat where sqh = #{sqh} and yljg = #{yljg}
|
||
|
|
</select>
|
||
|
|
|
||
|
|
</mapper>
|