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-06-10 12:03:23 +08:00
|
|
|
select a.*,b.sflbmc,b.sampletips from lab_reqmain a,lab_feeitemclass b where a.bgddh = b.sflbdh
|
2025-05-08 14:18:34 +08:00
|
|
|
</sql>
|
|
|
|
|
|
2025-05-09 09:53:46 +08:00
|
|
|
<select id="getSQDInfo" parameterType="com.czlis.common.core.domain.entity.LabReqmain" resultType="com.czlis.common.core.domain.entity.LabReqmain">
|
|
|
|
|
<include refid="selectLabReqmainVo"></include>
|
2025-05-12 14:04:13 +08:00
|
|
|
<where>
|
2025-06-10 12:03:23 +08:00
|
|
|
<if test="a.sqh != null and a.sqh != ''"> and sqh = #{sqh}</if>
|
|
|
|
|
<if test="a.zt != null and a.zt != ''"> and zt = #{zt}</if>
|
|
|
|
|
<if test="a.ksdh != null and a.ksdh != ''"> and ksdh = #{ksdh}</if>
|
|
|
|
|
<if test="a.brly != null and a.brly != ''"> and brly = #{brly}</if>
|
2025-05-12 14:04:13 +08:00
|
|
|
<if test="params.beginTime != null and params.beginTime != ''"><!-- 开始时间检索 -->
|
2025-06-10 12:03:23 +08:00
|
|
|
AND a.sqsj >= CONVERT(varchar(100), #{params.beginTime}, 120)
|
2025-05-12 14:04:13 +08:00
|
|
|
</if>
|
|
|
|
|
<if test="params.endTime != null and params.endTime != ''"><!-- 结束时间检索 -->
|
2025-06-10 12:03:23 +08:00
|
|
|
AND a.sqsj <= CONVERT(varchar(100), #{params.endTime}, 120)
|
2025-05-12 14:04:13 +08:00
|
|
|
</if>
|
|
|
|
|
</where>
|
|
|
|
|
|
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>
|