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>
|
2025-08-12 18:18:24 +08:00
|
|
|
<select id="selectSqxmdh" resultType="String">
|
2025-08-09 22:28:44 +08:00
|
|
|
select sqxmdh from lab_reqdetail where lab_reqdetail.sqh=#{sqh}
|
|
|
|
|
</select>
|
2025-08-12 18:18:24 +08:00
|
|
|
<select id="selectYqdl" resultType="String">
|
2025-08-09 22:28:44 +08:00
|
|
|
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-08-12 18:18:24 +08:00
|
|
|
|
|
|
|
|
<select id="getResultCalc" resultType="com.czlis.liswork.pojo.DTO.ResultCalcDTO">
|
|
|
|
|
SELECT DISTINCT xm_calc.jsxm ,lab_result.xmdh ,lab_result.csjg ,xm_calc.jsgs
|
|
|
|
|
FROM lab_result ,xm_calc WHERE ( lab_result.yq = xm_calc.yq ) and
|
|
|
|
|
( lab_result.xmdh = xm_calc.xmdh ) and
|
|
|
|
|
( ( lab_result.jyrq = #{jyrq} ) And
|
|
|
|
|
( lab_result.yq =#{yq}) And
|
|
|
|
|
( lab_result.ybh = #{ybh}) )
|
|
|
|
|
</select>
|
2025-07-01 11:52:54 +08:00
|
|
|
</mapper>
|