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

44 lines
2.0 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">
2025-08-13 10:33:22 +08:00
{call sp_setrefs(#{jyrq,mode=IN,jdbcType=TIMESTAMP},
#{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>
<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>