zhaowenxuan
2024-10-16 c8f1a2becb00febfea90d50640a6760b16450d7f
增加字段
2个文件已修改
22 ■■■■■ 已修改文件
ltkj-hosp/src/main/java/com/ltkj/hosp/domain/TjSampling.java 11 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
ltkj-hosp/src/main/resources/mapper/hosp/TjSamplingMapper.xml 11 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
ltkj-hosp/src/main/java/com/ltkj/hosp/domain/TjSampling.java
@@ -115,6 +115,16 @@
     */
    private String jyxh;
    public String getSpecimenTypeCode() {
        return specimenTypeCode;
    }
    public void setSpecimenTypeCode(String specimenTypeCode) {
        this.specimenTypeCode = specimenTypeCode;
    }
    private String specimenTypeCode;
    public String getParentId() {
        return parentId;
    }
@@ -215,6 +225,7 @@
                .append("deleted", getDeleted())
                .append("parentId", getParentId())
                .append("jyxh", getJyxh())
                .append("specimenTypeCode", getSpecimenTypeCode())
                .toString();
    }
}
ltkj-hosp/src/main/resources/mapper/hosp/TjSamplingMapper.xml
@@ -22,6 +22,7 @@
        <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">
@@ -41,7 +42,8 @@
               update_time,
               deleted,
               parent_id,
               jyxh
               jyxh,
               specimen_type_code
        from tj_sampling
    </sql>
@@ -121,6 +123,8 @@
            </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},
@@ -156,6 +160,8 @@
            <if test="parentId != null">#{parentId},
            </if>
            <if test="jyxh != null">#{jyxh},
            </if>
            <if test="specimenTypeCode != null">#{specimenTypeCode},
            </if>
        </trim>
    </insert>
@@ -210,6 +216,9 @@
            <if test="jyxh != null">jyxh =
                #{jyxh},
            </if>
            <if test="specimenTypeCode != null">specimen_type_code =
                #{specimenTypeCode},
            </if>
        </trim>
        where id = #{id}
    </update>