zhaowenxuan
2024-10-16 d536b588ff3a76b7f7074580feb56bee9915dc38
ltkj-hosp/src/main/resources/mapper/hosp/TjSamplingMapper.xml
@@ -22,6 +22,9 @@
        <result property="deleted" column="deleted"/>
        <result property="parentId" column="parent_id"/>
        <result property="jyxh" column="jyxh"/>
        <result property="specimenTypeCode" column="specimen_type_code"/>
        <result property="isMerge" column="is_merge"/>
        <result property="jyxmdm" column="jyxmdm"/>
    </resultMap>
    <sql id="selectTjSamplingVo">
@@ -41,7 +44,10 @@
               update_time,
               deleted,
               parent_id,
               jyxh
               jyxh,
               specimen_type_code,
               is_merge,
               jyxmdm
        from tj_sampling
    </sql>
@@ -121,6 +127,12 @@
            </if>
            <if test="jyxh != null">jyxh,
            </if>
            <if test="specimenTypeCode != null">specimen_type_code,
            </if>
            <if test="isMerge != null">is_merge,
            </if>
            <if test="jyxmdm != null">jyxmdm,
            </if>
        </trim>
        <trim prefix="values (" suffix=")" suffixOverrides=",">
            <if test="id != null">#{id},
@@ -156,6 +168,12 @@
            <if test="parentId != null">#{parentId},
            </if>
            <if test="jyxh != null">#{jyxh},
            </if>
            <if test="specimenTypeCode != null">#{specimenTypeCode},
            </if>
            <if test="isMerge != null">#{isMerge},
            </if>
            <if test="jyxmdm != null">#{jyxmdm},
            </if>
        </trim>
    </insert>
@@ -210,6 +228,15 @@
            <if test="jyxh != null">jyxh =
                #{jyxh},
            </if>
            <if test="specimenTypeCode != null">specimen_type_code =
                #{specimenTypeCode},
            </if>
            <if test="isMerge != null">is_merge =
                #{isMerge},
            </if>
            <if test="isMerge != null">jyxmdm =
                #{jyxmdm},
            </if>
        </trim>
        where id = #{id}
    </update>