From c8f1a2becb00febfea90d50640a6760b16450d7f Mon Sep 17 00:00:00 2001 From: zhaowenxuan <chacca165@163.com> Date: 星期三, 16 十月 2024 15:03:50 +0800 Subject: [PATCH] 增加字段 --- ltkj-hosp/src/main/java/com/ltkj/hosp/domain/TjSampling.java | 11 +++++++++++ ltkj-hosp/src/main/resources/mapper/hosp/TjSamplingMapper.xml | 11 ++++++++++- 2 files changed, 21 insertions(+), 1 deletions(-) diff --git a/ltkj-hosp/src/main/java/com/ltkj/hosp/domain/TjSampling.java b/ltkj-hosp/src/main/java/com/ltkj/hosp/domain/TjSampling.java index 2ccbe50..108d774 100644 --- a/ltkj-hosp/src/main/java/com/ltkj/hosp/domain/TjSampling.java +++ b/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(); } } diff --git a/ltkj-hosp/src/main/resources/mapper/hosp/TjSamplingMapper.xml b/ltkj-hosp/src/main/resources/mapper/hosp/TjSamplingMapper.xml index a45b08d..aeea9d6 100644 --- a/ltkj-hosp/src/main/resources/mapper/hosp/TjSamplingMapper.xml +++ b/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> -- Gitblit v1.8.0