2025-05-08 14:18:34 +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.zycx.mapper.ZycxMapper">
|
|
|
|
|
|
2025-05-09 09:53:46 +08:00
|
|
|
<sql id="selectLabReqmainVo">
|
2025-08-29 14:16:35 +08:00
|
|
|
select a.*,b.sflbmc as bgddhname,b.sampletips,b.bkcolor,
|
|
|
|
|
(case rtrim(a.brxb) when '1' then '男' when '2' then '女' else '' end) as brxbname,
|
|
|
|
|
(select zdmc from com_dict where zdlb = 'SRD' AND zddh = a.sqys) as sqysname,
|
|
|
|
|
(select zdmc from com_dict where zdlb = 'SRD' AND zddh = a.bbsjr) as bbsjrname,
|
|
|
|
|
(select yhxm from com_usr where yhdh = a.zxys) as zxysname,
|
|
|
|
|
(select yhxm from com_usr where yhdh = a.jsys) as jsysname,
|
|
|
|
|
(select zdmc from com_dict where zdlb = 'DP' AND zddh = a.ksdh) as ksname
|
|
|
|
|
from lab_reqmain a,lab_feeitemclass b where a.bgddh = b.sflbdh
|
2025-05-08 14:18:34 +08:00
|
|
|
</sql>
|
|
|
|
|
|
2025-08-29 14:16:35 +08:00
|
|
|
<select id="getSQDInfo" parameterType="com.czlis.zycx.pojo.Web_getBarcode" resultType="com.czlis.zycx.pojo.Web_getBarcode">
|
2025-05-09 09:53:46 +08:00
|
|
|
<include refid="selectLabReqmainVo"></include>
|
2025-08-27 17:26:31 +08:00
|
|
|
<if test="sqh != null and sqh != ''"> and a.sqh = #{sqh}</if>
|
|
|
|
|
<if test="zt != null and zt != ''"> and a.zt = #{zt}</if>
|
|
|
|
|
<if test="ksdh != null and ksdh != ''"> and a.ksdh = #{ksdh}</if>
|
|
|
|
|
<if test="brly != null and brly != ''"> and a.brly = #{brly}</if>
|
2025-08-29 14:16:35 +08:00
|
|
|
<if test="yljg != null and yljg != ''"> and a.yljg = #{yljg}</if>
|
|
|
|
|
<if test="st != null"><!-- 开始时间检索 -->
|
|
|
|
|
AND a.sqsj >= CONVERT(varchar(100), #{st}, 120)
|
2025-08-27 17:26:31 +08:00
|
|
|
</if>
|
2025-08-29 14:16:35 +08:00
|
|
|
<if test="et != null"><!-- 结束时间检索 -->
|
|
|
|
|
AND a.sqsj <= CONVERT(varchar(100), #{et}, 120)
|
2025-08-27 17:26:31 +08:00
|
|
|
</if>
|
2025-05-08 14:18:34 +08:00
|
|
|
</select>
|
|
|
|
|
|
2025-05-21 14:18:14 +08:00
|
|
|
<select id="createSQD" parameterType="map" statementType="CALLABLE" useCache="false">
|
|
|
|
|
{call sp_getreqinterface(#{dept,mode=IN,jdbcType=VARCHAR},
|
|
|
|
|
#{userid,mode=IN,jdbcType=VARCHAR},
|
|
|
|
|
#{st,mode=IN,jdbcType=VARCHAR},
|
|
|
|
|
#{et,mode=IN,jdbcType=VARCHAR},
|
|
|
|
|
#{yljg,mode=IN,jdbcType=VARCHAR},
|
|
|
|
|
#{retcode,mode=OUT,jdbcType=INTEGER},
|
|
|
|
|
#{retmsg,mode=OUT,jdbcType=VARCHAR})
|
|
|
|
|
}
|
|
|
|
|
</select>
|
|
|
|
|
|
|
|
|
|
<select id="execSQD" parameterType="map" statementType="CALLABLE" useCache="false">
|
|
|
|
|
{call sp_setreqstatus(#{sqh,mode=IN,jdbcType=VARCHAR},
|
|
|
|
|
#{userid,mode=IN,jdbcType=VARCHAR},
|
|
|
|
|
#{status,mode=IN,jdbcType=VARCHAR},
|
|
|
|
|
#{retcode,mode=OUT,jdbcType=INTEGER},
|
|
|
|
|
#{retmsg,mode=OUT,jdbcType=VARCHAR})
|
|
|
|
|
}
|
|
|
|
|
</select>
|
|
|
|
|
|
2025-05-08 14:18:34 +08:00
|
|
|
|
|
|
|
|
</mapper>
|