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

35 lines
1.6 KiB
XML
Raw Normal View History

2025-07-01 11:52:54 +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.LisWorkOperMapper">
<select id="checkReqClass" resultType="Long">
select COUNT(*) from xm_feeinstr,lab_reqdetail
where lab_reqdetail.sqxmdh=xm_feeinstr.sfxmdh
and lab_reqdetail.sqh=#{sqh} and xm_feeinstr.yq=#{yq};
</select>
<select id="selectsqxmdh" resultType="String">
select sqxmdh from lab_reqdetail where lab_reqdetail.sqh=#{sqh}
</select>
<select id="selectyqdl" resultType="String">
select yqdl from lab_instr where lab_instr.yq=#{yq}
</select>
<update id="updatelabresultsqxmdhall">
update lab_result set sqxmdh=#{sqxmdh} where yq=#{yq} and jyrq=#{jyrq} and ybh=#{ybh};
</update>
<update id="updatelabresultsqxmdh">
<![CDATA[ update a set a.sqxmdh=c.sqxmdh from lab_result a,xm_reqitem_vs_reportitem b ,lab_reqdetail c
where b.sqxmdh=c.sqxmdh and b.xmdh=a.xmdh and b.yq=a.yq and c.sqh=#{sqh} and a.yq=#{yq} and a.ybh=#{ybh} and a.jyrq=#{jyrq} ;
]]>
</update>
<select id="spSetrefs" parameterType="map" statementType="CALLABLE" useCache="false">
{call sp_setrefs(#{jyrq,mode=IN,jdbcType=DATETIME},
#{yq,mode=IN,jdbcType=VARCHAR},
#{ybh,mode=IN,jdbcType=VARCHAR},
#{settype,mode=IN,jdbcType=VARCHAR},
#{retmsg,mode=OUT,jdbcType=VARCHAR},
#{retcode,mode=OUT,jdbcType=INTEGER})
}
</select>
2025-07-01 11:52:54 +08:00
</mapper>