zhaowenxuan
2024-10-16 cb50f227bb5276600a8011caf13f2784d94af6ab
ltkj-hosp/src/main/resources/mapper/hosp/TjSamplingMapper.xml
@@ -20,6 +20,9 @@
        <result property="updateBy" column="update_by"/>
        <result property="updateTime" column="update_time"/>
        <result property="deleted" column="deleted"/>
        <result property="parentId" column="parent_id"/>
        <result property="jyxh" column="jyxh"/>
        <result property="specimenTypeCode" column="specimen_type_code"/>
    </resultMap>
    <sql id="selectTjSamplingVo">
@@ -37,7 +40,10 @@
               create_time,
               update_by,
               update_time,
               deleted
               deleted,
               parent_id,
               jyxh,
               specimen_type_code
        from tj_sampling
    </sql>
@@ -113,6 +119,12 @@
            </if>
            <if test="deleted != null">deleted,
            </if>
            <if test="parentId != null">parent_id,
            </if>
            <if test="jyxh != null">jyxh,
            </if>
            <if test="specimenTypeCode != null">specimen_type_code,
            </if>
        </trim>
        <trim prefix="values (" suffix=")" suffixOverrides=",">
            <if test="id != null">#{id},
@@ -144,6 +156,12 @@
            <if test="updateTime != null">#{updateTime},
            </if>
            <if test="deleted != null">#{deleted},
            </if>
            <if test="parentId != null">#{parentId},
            </if>
            <if test="jyxh != null">#{jyxh},
            </if>
            <if test="specimenTypeCode != null">#{specimenTypeCode},
            </if>
        </trim>
    </insert>
@@ -192,6 +210,15 @@
            <if test="deleted != null">deleted =
                #{deleted},
            </if>
            <if test="parentId != null">parent_id =
                #{parentId},
            </if>
            <if test="jyxh != null">jyxh =
                #{jyxh},
            </if>
            <if test="specimenTypeCode != null">specimen_type_code =
                #{specimenTypeCode},
            </if>
        </trim>
        where id = #{id}
    </update>
@@ -208,4 +235,4 @@
            #{id}
        </foreach>
    </delete>
</mapper>
</mapper>