lis8.0/liswork/src/main/resources/mapper/LisWorkMapper.xml

45 lines
1.8 KiB
XML
Raw Normal View History

2025-06-23 18:04:39 +08:00
<?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.czlis.liswork.mapper.LisWorkMapper">
<select id="getInstrdList" parameterType="string">
SELECT com_usrpower.yhdh,com_usrpower.yq ,com_usrpower.xtdh ,com_usrpower.yhqx , lab_instr.yqmc ,lab_instr.instrid
FROM com_usrpower , lab_instr WHERE ( com_usrpower.yq = lab_instr.yq ) and ( ( com_usrpower.yhdh = #{userId} ) and ( com_usrpower.xtdh = 'LIS' ) )
and lab_instr.useflag = '0'
</select>
<select id="getInstrdConfig">
select * from com_opt where yq = #{yq}
</select>
<select id="getLabResult">
select * from lab_Result where jyrq = #{jyrq} and yq = #{yq}
<if test="ybh != null and ybh !=''">and ybh = #{ybh}</if>
<if test="xmdh != null and xmdh !=''">and xmdh = #{xmdh}</if>
</select>
<select id="getLabPatList">
select * from lab_pat
<where>
<if test="jyrq != null">and jyrq = #{jyrq}</if>
<if test="yq != null and yq !=''">and yq = #{yq}</if>
<if test="ybh != null and ybh != ''">and ybh = #{ybh}</if>
</where>
</select>
<select id="getLabPatInfo">
select * from lab_patinfo where jyrq = #{jyrq} and yq = #{yq}
<if test="ybh != null and ybh !=''">and ybh = #{ybh}</if>
</select>
<select id="getLabResultMedInfo">
select * from lab_resultmed where jyrq = #{jyrq} and yq = #{yq}
<if test="ybh != null and ybh !=''">and ybh = #{ybh}</if>
<if test="xmdh != null and xmdh !=''">and xmdh = #{xmdh}</if>
<if test="xh != null">and xh = #{xh}</if>
<if test="ywdh != null and ywdh != ''">and ywdh = #{ywdh}</if>
</select>
</mapper>