lis8.0/zycx/src/main/resources/mapper/ZycxMapper.xml

49 lines
2.2 KiB
XML
Raw Normal View History

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-05-12 14:04:13 +08:00
select * from lab_reqmain
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>
<if test="sqh != null and sqh != ''"> and sqh = #{sqh}</if>
<if test="zt != null and zt != ''"> and zt = #{zt}</if>
<if test="ksdh != null and ksdh != ''"> and ksdh = #{ksdh}</if>
<if test="brly != null and brly != ''"> and brly = #{brly}</if>
<if test="params.beginTime != null and params.beginTime != ''"><!-- 开始时间检索 -->
AND sqsj &gt;= CONVERT(varchar(100), #{params.beginTime}, 120)
</if>
<if test="params.endTime != null and params.endTime != ''"><!-- 结束时间检索 -->
AND sqsj &lt;= CONVERT(varchar(100), #{params.endTime}, 120)
</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>