From 86d28d655da31baebb505cfee98d7a36cde17d3b Mon Sep 17 00:00:00 2001 From: zhaowenxuan <chacca165@163.com> Date: 星期三, 16 十月 2024 14:13:04 +0800 Subject: [PATCH] 增加字段 --- ltkj-hosp/src/main/java/com/ltkj/hosp/domain/TjSampling.java | 28 ++++++++++++++++++++++++++++ ltkj-hosp/src/main/resources/mapper/hosp/TjSamplingMapper.xml | 22 ++++++++++++++++++++-- 2 files changed, 48 insertions(+), 2 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 3629ebf..2ccbe50 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 @@ -105,6 +105,32 @@ @TableField(exist = false) private TjCustomer customer; + /** + * 鍚堝苟鍚庣殑鐖秈d + */ + private String parentId; + + /** + * 鍚憀is鐢宠鍗曠殑妫�楠屽簭鍙� + */ + private String jyxh; + + public String getParentId() { + return parentId; + } + + public void setParentId(String parentId) { + this.parentId = parentId; + } + + public String getJyxh() { + return jyxh; + } + + public void setJyxh(String jyxh) { + this.jyxh = jyxh; + } + public void setId(String id) { this.id = id; } @@ -187,6 +213,8 @@ .append("updateBy", getUpdateBy()) .append("updateTime", getUpdateTime()) .append("deleted", getDeleted()) + .append("parentId", getParentId()) + .append("jyxh", getJyxh()) .toString(); } } diff --git a/ltkj-hosp/src/main/resources/mapper/hosp/TjSamplingMapper.xml b/ltkj-hosp/src/main/resources/mapper/hosp/TjSamplingMapper.xml index bc3017d..a45b08d 100644 --- a/ltkj-hosp/src/main/resources/mapper/hosp/TjSamplingMapper.xml +++ b/ltkj-hosp/src/main/resources/mapper/hosp/TjSamplingMapper.xml @@ -20,6 +20,8 @@ <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"/> </resultMap> <sql id="selectTjSamplingVo"> @@ -37,7 +39,9 @@ create_time, update_by, update_time, - deleted + deleted, + parent_id, + jyxh from tj_sampling </sql> @@ -113,6 +117,10 @@ </if> <if test="deleted != null">deleted, </if> + <if test="parentId != null">parent_id, + </if> + <if test="jyxh != null">jyxh, + </if> </trim> <trim prefix="values (" suffix=")" suffixOverrides=","> <if test="id != null">#{id}, @@ -144,6 +152,10 @@ <if test="updateTime != null">#{updateTime}, </if> <if test="deleted != null">#{deleted}, + </if> + <if test="parentId != null">#{parentId}, + </if> + <if test="jyxh != null">#{jyxh}, </if> </trim> </insert> @@ -192,6 +204,12 @@ <if test="deleted != null">deleted = #{deleted}, </if> + <if test="parentId != null">parent_id = + #{parentId}, + </if> + <if test="jyxh != null">jyxh = + #{jyxh}, + </if> </trim> where id = #{id} </update> @@ -208,4 +226,4 @@ #{id} </foreach> </delete> -</mapper> \ No newline at end of file +</mapper> -- Gitblit v1.8.0