2025-08-21 20:49:24 +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.interfaceCommon.mapper.LabReqsteplogMapper">
|
|
|
|
|
<select id="getLabReqsteplogOne" resultType="com.czlis.common.core.domain.entity.lis.LabReqsteplog">
|
|
|
|
|
select * from lab_reqsteplog where sqh = #{sqh} and xh=#{xh}
|
|
|
|
|
</select>
|
|
|
|
|
<select id="getLabReqsteplog" resultType="com.czlis.common.core.domain.entity.lis.LabReqsteplog">
|
|
|
|
|
select * from lab_reqsteplog where sqh = #{sqh}
|
|
|
|
|
</select>
|
2025-09-15 19:25:29 +08:00
|
|
|
<select id="getLabReqsteplogMax" resultType="Integer">
|
2025-09-23 17:12:06 +08:00
|
|
|
select MAX(xh) from lab_reqsteplog where sqh = #{sqh}
|
2025-09-15 19:25:29 +08:00
|
|
|
</select>
|
|
|
|
|
<insert id="insertLabReqsteplog" parameterType="com.czlis.common.core.domain.entity.lis.LabReqsteplog">
|
|
|
|
|
insert into lab_reqsteplog (sqh, xh, zt, userid,
|
|
|
|
|
changedate, logdate, comname,
|
2026-03-16 11:56:03 +08:00
|
|
|
<if test="logdate != null">logdate,</if>
|
2025-09-15 19:25:29 +08:00
|
|
|
comip, bz)
|
|
|
|
|
values (#{sqh}, #{xh}, #{zt}, #{userid},
|
|
|
|
|
#{changedate}, #{logdate}, #{comname},
|
2026-03-16 11:56:03 +08:00
|
|
|
<if test="logdate != null">#{logdate},</if>
|
2025-09-15 19:25:29 +08:00
|
|
|
#{comip}, #{bz})
|
|
|
|
|
</insert>
|
2025-08-21 20:49:24 +08:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
</mapper>
|