57 lines
2.8 KiB
XML
Raw Normal View History

2026-03-12 10:52:16 +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.transitPlatForm.interfaceCommon.mapper.RegApplyDetailMapper">
<insert id="insert">
insert into reg_apply_detail(applyid, OrderItemSerial, OrderItemCode, OrderItemName, SampleTypeCode,
SampleTypeName, BodyCode, BodyName, create_by, create_time, update_by, update_time,
DataSource, amount)
values (#{applyid},
#{OrderItemSerial},
#{OrderItemCode},
#{OrderItemName},
#{SampleTypeCode},
#{SampleTypeName},
#{BodyCode},
#{BodyName},
#{create_by},
#{create_time},
#{update_by},
#{update_time},
#{DataSource},
#{amount})
</insert>
<select id="queryList" resultType="com.transitPlatForm.common.core.domain.entity.reg.RegApplyDetail">
select * from reg_apply_detail
<where>
<if test="applyid != null and applyid != ''">and applyid = #{applyid}</if>
</where>
</select>
<update id="update">
update reg_apply_detail
<set>
<if test="OrderItemSerial != null">OrderItemSerial = #{OrderItemSerial},</if>
<if test="OrderItemCode != null and OrderItemCode != ''">OrderItemCode = #{OrderItemCode},</if>
<if test="OrderItemName != null and OrderItemName != ''">OrderItemName = #{OrderItemName},</if>
<if test="SampleTypeCode != null and SampleTypeCode != ''">SampleTypeCode = #{SampleTypeCode},</if>
<if test="SampleTypeName != null and SampleTypeName != ''">SampleTypeName = #{SampleTypeName},</if>
<if test="BodyCode != null and BodyCode != ''">BodyCode = #{BodyCode},</if>
<if test="BodyName != null and BodyName != ''">BodyName = #{BodyName},</if>
<if test="DataSource != null and DataSource != ''">DataSource = #{DataSource},</if>
<if test="amount != null">amount = #{amount},</if>
<if test="applyDetailId != null and applyDetailId != ''">applyDetailId = #{applyDetailId},</if>
<if test="bz1 != null and bz1 != ''">bz1 = #{bz1},</if>
<if test="bz2 != null and bz2 != ''">bz2 = #{bz2},</if>
<if test="update_by != null and update_by != ''">update_by = #{update_by},</if>
<if test="update_time != null ">update_time = #{update_time},</if>
applyid = #{applyid}
</set>
where applyid = #{applyid}
</update>
<delete id="delete">
delete from reg_apply_detail where applyid = #{applyid}
</delete>
</mapper>