2025-06-13 18:00: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.mzcx.mapper.RptgetRuleMapper">
|
|
|
|
|
|
2025-08-08 15:05:24 +08:00
|
|
|
<select id="query" resultType="com.czlis.common.core.domain.entity.lis.LabRptgetRule">
|
2025-06-13 18:00:34 +08:00
|
|
|
select * from lab_rptgetrule
|
|
|
|
|
<where>
|
|
|
|
|
<if test="bglqdh != null"> and bglqdh = #{bglqdh}</if>
|
|
|
|
|
<if test="bglqmc != null and bglqmc != ''"> and bglqmc = #{bglqmc}</if>
|
|
|
|
|
<if test="bz != null and bz != ''"> and bz = #{bz}</if>
|
|
|
|
|
</where>
|
|
|
|
|
</select>
|
|
|
|
|
|
2025-08-08 15:05:24 +08:00
|
|
|
<select id="queryDetail" resultType="com.czlis.common.core.domain.entity.lis.LabRptgetRuleDetail">
|
2025-06-13 18:00:34 +08:00
|
|
|
select * from lab_rptgetruledetail where bglqdh = #{bglqdh}
|
2025-09-12 09:03:03 +08:00
|
|
|
<if test="xh != null"> and xh = #{xh}</if>
|
2025-06-13 18:00:34 +08:00
|
|
|
</select>
|
|
|
|
|
|
|
|
|
|
<insert id="insert">
|
|
|
|
|
insert into lab_rptgetrule(
|
|
|
|
|
<if test="bglqmc != null and bglqmc != ''">bglqmc,</if>
|
|
|
|
|
<if test="bz != null and bz != ''">bz,</if>
|
|
|
|
|
bglqdh
|
|
|
|
|
)
|
|
|
|
|
values(
|
|
|
|
|
<if test="bglqmc != null and bglqmc != ''">#{bglqmc},</if>
|
|
|
|
|
<if test="bz != null and bz != ''">#{bz},</if>
|
|
|
|
|
#{bglqdh}
|
|
|
|
|
)
|
|
|
|
|
</insert>
|
|
|
|
|
|
|
|
|
|
<insert id="insertDetail">
|
|
|
|
|
insert into lab_rptgetruledetail(
|
|
|
|
|
<if test="kssj != null and kssj != ''">kssj,</if>
|
|
|
|
|
<if test="jssj != null and jssj != ''">jssj,</if>
|
|
|
|
|
<if test="bgxss != null">bgxss,</if>
|
|
|
|
|
<if test="bglqsm != null and bglqsm != ''">bglqsm,</if>
|
|
|
|
|
<if test="bz != null and bz != ''">bz,</if>
|
|
|
|
|
<if test="weekday != null and weekday != ''">weekday,</if>
|
|
|
|
|
<if test="weekday1 != null and weekday1 != ''">weekday1,</if>
|
|
|
|
|
bglqdh,xh
|
|
|
|
|
)values(
|
|
|
|
|
<if test="kssj != null and kssj != ''">#{kssj},</if>
|
|
|
|
|
<if test="jssj != null and jssj != ''">#{jssj},</if>
|
|
|
|
|
<if test="bgxss != null">#{bgxss},</if>
|
|
|
|
|
<if test="bglqsm != null and bglqsm != ''">#{bglqsm},</if>
|
|
|
|
|
<if test="bz != null and bz != ''">#{bz},</if>
|
|
|
|
|
<if test="weekday != null and weekday != ''">#{weekday},</if>
|
|
|
|
|
<if test="weekday1 != null and weekday1 != ''">#{weekday1},</if>
|
|
|
|
|
#{bglqdh},#{xh}
|
|
|
|
|
)
|
|
|
|
|
</insert>
|
|
|
|
|
|
|
|
|
|
|
2025-08-08 15:05:24 +08:00
|
|
|
<update id="update" parameterType="com.czlis.common.core.domain.entity.lis.LabRptgetRule">
|
2025-06-13 18:00:34 +08:00
|
|
|
update lab_rptgetrule
|
|
|
|
|
<set>
|
|
|
|
|
<if test="bglqmc != null and bglqmc != ''">bglqmc = #{bglqmc},</if>
|
|
|
|
|
<if test="bz != null and bz != ''">bz = #{bz},</if>
|
2025-09-12 09:03:03 +08:00
|
|
|
bglqdh = #{bglqdh}
|
2025-06-13 18:00:34 +08:00
|
|
|
</set>
|
|
|
|
|
where bglqdh = #{bglqdh}
|
|
|
|
|
</update>
|
|
|
|
|
|
2025-08-08 15:05:24 +08:00
|
|
|
<update id="updateDetail" parameterType="com.czlis.common.core.domain.entity.lis.LabRptgetRuleDetail">
|
2025-06-13 18:00:34 +08:00
|
|
|
update lab_rptgetruledetail
|
|
|
|
|
<set>
|
|
|
|
|
<if test="kssj != null and kssj != ''">kssj = #{kssj},</if>
|
|
|
|
|
<if test="jssj != null and jssj != ''">jssj = #{jssj},</if>
|
|
|
|
|
<if test="bgxss != null ">bgxss = #{bgxss},</if>
|
|
|
|
|
<if test="bglqsm != null and bglqsm != ''">bglqsm = #{bglqsm},</if>
|
|
|
|
|
<if test="bz != null and bz != ''">bz = #{bz},</if>
|
|
|
|
|
<if test="weekday != null and weekday != '' ">weekday = #{weekday},</if>
|
|
|
|
|
<if test="weekday1 != null and weekday1 != ''">weekday1 = #{weekday1},</if>
|
2025-09-12 09:03:03 +08:00
|
|
|
bglqdh = #{bglqdh}
|
2025-06-13 18:00:34 +08:00
|
|
|
</set>
|
|
|
|
|
where bglqdh = #{bglqdh} and xh = #{xh}
|
|
|
|
|
</update>
|
|
|
|
|
|
|
|
|
|
<delete id="delete">
|
|
|
|
|
delete from lab_rptgetrule where bglqdh = #{bglqdh}
|
|
|
|
|
</delete>
|
|
|
|
|
|
|
|
|
|
<delete id="deleteDetail">
|
|
|
|
|
delete from lab_rptgetruledetail where bglqdh = #{bglqdh} and xh = #{xh}
|
|
|
|
|
</delete>
|
|
|
|
|
|
|
|
|
|
<select id="getLabRptgetRuleDetailCount" resultType="Long">
|
|
|
|
|
select count(1) from lab_rptgetruledetail where bglqdh = #{bglqdh}
|
|
|
|
|
</select>
|
|
|
|
|
|
2025-09-10 17:33:09 +08:00
|
|
|
<select id="getMaxNo" resultType="int">
|
|
|
|
|
SELECT max(bglqdh) FROM lab_rptgetrule
|
|
|
|
|
</select>
|
2025-06-13 18:00:34 +08:00
|
|
|
</mapper>
|