From 0bd562144e83aa82e090880447548debbd1d8281 Mon Sep 17 00:00:00 2001 From: mrz <17966059@qq.com> Date: Sun, 9 Oct 2022 11:23:07 +0800 Subject: [PATCH] 修复MAPPER 生成重复节点问题 --- src/main/resources/mapping/CONFIG_USER_CUSTOMCODEMapper.xml | 29 +---------------------------- 1 file changed, 1 insertion(+), 28 deletions(-) diff --git a/src/main/resources/mapping/CONFIG_USER_CUSTOMCODEMapper.xml b/src/main/resources/mapping/CONFIG_USER_CUSTOMCODEMapper.xml index f124efd..b1751e6 100755 --- a/src/main/resources/mapping/CONFIG_USER_CUSTOMCODEMapper.xml +++ b/src/main/resources/mapping/CONFIG_USER_CUSTOMCODEMapper.xml @@ -28,31 +28,4 @@ </if> </trim> </insert> - <resultMap id="BaseResultMap" type="com.sunyo.wlpt.base.model.CONFIG_USER_CUSTOMCODE"> - <result column="userID" jdbcType="INTEGER" property="userid" /> - <result column="customCode" jdbcType="VARCHAR" property="customcode" /> - </resultMap> - <insert id="insert" parameterType="com.sunyo.wlpt.base.model.CONFIG_USER_CUSTOMCODE"> - insert into CONFIG_USER_CUSTOMCODE (userID, customCode) - values (#{userid,jdbcType=INTEGER}, #{customcode,jdbcType=VARCHAR}) - </insert> - <insert id="insertSelective" parameterType="com.sunyo.wlpt.base.model.CONFIG_USER_CUSTOMCODE"> - insert into CONFIG_USER_CUSTOMCODE - <trim prefix="(" suffix=")" suffixOverrides=","> - <if test="userid != null"> - userID, - </if> - <if test="customcode != null"> - customCode, - </if> - </trim> - <trim prefix="values (" suffix=")" suffixOverrides=","> - <if test="userid != null"> - #{userid,jdbcType=INTEGER}, - </if> - <if test="customcode != null"> - #{customcode,jdbcType=VARCHAR}, - </if> - </trim> - </insert> -</mapper> \ No newline at end of file +</mapper> -- libgit2 0.24.0