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/resources/mapper/hosp/TjSamplingMapper.xml | 22 ++++++++++++++++++++-- 1 files changed, 20 insertions(+), 2 deletions(-) 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