From 0bd3125739c0d8bded4f7bd405fd99f1723df964 Mon Sep 17 00:00:00 2001 From: liurunyu <lry9898@163.com> Date: 星期五, 30 五月 2025 15:51:49 +0800 Subject: [PATCH] 不同服务器配置文件备份 --- pms-parent/pms-global/src/main/resources/mapper/OthFileManageMapper.xml | 14 ++++++++++---- 1 files changed, 10 insertions(+), 4 deletions(-) diff --git a/pms-parent/pms-global/src/main/resources/mapper/OthFileManageMapper.xml b/pms-parent/pms-global/src/main/resources/mapper/OthFileManageMapper.xml index d7dc4e0..7566219 100644 --- a/pms-parent/pms-global/src/main/resources/mapper/OthFileManageMapper.xml +++ b/pms-parent/pms-global/src/main/resources/mapper/OthFileManageMapper.xml @@ -28,16 +28,19 @@ delete from oth_file_manage where id = #{id,jdbcType=BIGINT} </delete> - <insert id="insert" keyColumn="id" keyProperty="id" parameterType="com.dy.pmsGlobal.pojoOth.OthFileManage" useGeneratedKeys="true"> + <insert id="insert" parameterType="com.dy.pmsGlobal.pojoOth.OthFileManage"> <!--@mbg.generated--> - insert into oth_file_manage (user_id, file_id, deleted, dt) - values (#{userId,jdbcType=BIGINT}, #{fileId,jdbcType=BIGINT}, #{deleted,jdbcType=TINYINT}, + insert into oth_file_manage (id, user_id, file_id, deleted, dt) + values (#{id,jdbcType=BIGINT},#{userId,jdbcType=BIGINT}, #{fileId,jdbcType=BIGINT}, #{deleted,jdbcType=TINYINT}, #{dt,jdbcType=TIMESTAMP}) </insert> - <insert id="insertSelective" keyColumn="id" keyProperty="id" parameterType="com.dy.pmsGlobal.pojoOth.OthFileManage" useGeneratedKeys="true"> + <insert id="insertSelective" parameterType="com.dy.pmsGlobal.pojoOth.OthFileManage"> <!--@mbg.generated--> insert into oth_file_manage <trim prefix="(" suffix=")" suffixOverrides=","> + <if test="id != null"> + id, + </if> <if test="userId != null"> user_id, </if> @@ -52,6 +55,9 @@ </if> </trim> <trim prefix="values (" suffix=")" suffixOverrides=","> + <if test="id != null"> + #{id,jdbcType=BIGINT}, + </if> <if test="userId != null"> #{userId,jdbcType=BIGINT}, </if> -- Gitblit v1.8.0