|
@@ -8,10 +8,11 @@
|
|
|
<result column="title" jdbcType="VARCHAR" property="title" />
|
|
<result column="title" jdbcType="VARCHAR" property="title" />
|
|
|
<result column="type" jdbcType="VARCHAR" property="type" />
|
|
<result column="type" jdbcType="VARCHAR" property="type" />
|
|
|
<result column="remark" jdbcType="VARCHAR" property="remark" />
|
|
<result column="remark" jdbcType="VARCHAR" property="remark" />
|
|
|
|
|
+ <result column="define" jdbcType="VARCHAR" property="define" />
|
|
|
<result column="tenant_id" jdbcType="VARCHAR" property="tenantId" />
|
|
<result column="tenant_id" jdbcType="VARCHAR" property="tenantId" />
|
|
|
</resultMap>
|
|
</resultMap>
|
|
|
<sql id="Base_Column_List">
|
|
<sql id="Base_Column_List">
|
|
|
- id, product_id, name, title, type, remark,tenant_id
|
|
|
|
|
|
|
+ id, product_id, name, title, type, remark,define,tenant_id
|
|
|
</sql>
|
|
</sql>
|
|
|
<select id="selectByPrimaryKey" parameterType="java.lang.String" resultMap="BaseResultMap">
|
|
<select id="selectByPrimaryKey" parameterType="java.lang.String" resultMap="BaseResultMap">
|
|
|
select
|
|
select
|
|
@@ -52,10 +53,11 @@
|
|
|
</delete>
|
|
</delete>
|
|
|
<insert id="insert" parameterType="com.tuoren.forward.entity.Model">
|
|
<insert id="insert" parameterType="com.tuoren.forward.entity.Model">
|
|
|
insert into model (id, product_id, name,
|
|
insert into model (id, product_id, name,
|
|
|
- title, type, remark,tenant_id
|
|
|
|
|
|
|
+ title, type, remark,define,tenant_id
|
|
|
)
|
|
)
|
|
|
values (#{id,jdbcType=VARCHAR}, #{productId,jdbcType=VARCHAR}, #{name,jdbcType=VARCHAR},
|
|
values (#{id,jdbcType=VARCHAR}, #{productId,jdbcType=VARCHAR}, #{name,jdbcType=VARCHAR},
|
|
|
- #{title,jdbcType=VARCHAR}, #{type,jdbcType=VARCHAR}, #{remark,jdbcType=VARCHAR},#{tenantId,jdbcType=VARCHAR}
|
|
|
|
|
|
|
+ #{title,jdbcType=VARCHAR}, #{type,jdbcType=VARCHAR}, #{remark,jdbcType=VARCHAR},
|
|
|
|
|
+ #{define,jdbcType=VARCHAR},#{tenantId,jdbcType=VARCHAR}
|
|
|
)
|
|
)
|
|
|
</insert>
|
|
</insert>
|
|
|
<insert id="insertSelective" parameterType="com.tuoren.forward.entity.Model">
|
|
<insert id="insertSelective" parameterType="com.tuoren.forward.entity.Model">
|
|
@@ -79,6 +81,9 @@
|
|
|
<if test="remark != null">
|
|
<if test="remark != null">
|
|
|
remark,
|
|
remark,
|
|
|
</if>
|
|
</if>
|
|
|
|
|
+ <if test="define != null">
|
|
|
|
|
+ define,
|
|
|
|
|
+ </if>
|
|
|
<if test="tenantId != null">
|
|
<if test="tenantId != null">
|
|
|
tenant_id,
|
|
tenant_id,
|
|
|
</if>
|
|
</if>
|
|
@@ -102,6 +107,9 @@
|
|
|
<if test="remark != null">
|
|
<if test="remark != null">
|
|
|
#{remark,jdbcType=VARCHAR},
|
|
#{remark,jdbcType=VARCHAR},
|
|
|
</if>
|
|
</if>
|
|
|
|
|
+ <if test="define != null">
|
|
|
|
|
+ #{define,jdbcType=VARCHAR},
|
|
|
|
|
+ </if>
|
|
|
<if test="tenantId != null">
|
|
<if test="tenantId != null">
|
|
|
#{tenantId,jdbcType=VARCHAR},
|
|
#{tenantId,jdbcType=VARCHAR},
|
|
|
</if>
|
|
</if>
|
|
@@ -125,6 +133,9 @@
|
|
|
<if test="remark != null">
|
|
<if test="remark != null">
|
|
|
remark = #{remark,jdbcType=VARCHAR},
|
|
remark = #{remark,jdbcType=VARCHAR},
|
|
|
</if>
|
|
</if>
|
|
|
|
|
+ <if test="define != null">
|
|
|
|
|
+ define = #{define,jdbcType=VARCHAR},
|
|
|
|
|
+ </if>
|
|
|
<if test="tenantId != null">
|
|
<if test="tenantId != null">
|
|
|
tenant_id = #{tenantId,jdbcType=VARCHAR},
|
|
tenant_id = #{tenantId,jdbcType=VARCHAR},
|
|
|
</if>
|
|
</if>
|
|
@@ -138,6 +149,7 @@
|
|
|
title = #{title,jdbcType=VARCHAR},
|
|
title = #{title,jdbcType=VARCHAR},
|
|
|
type = #{type,jdbcType=VARCHAR},
|
|
type = #{type,jdbcType=VARCHAR},
|
|
|
remark = #{remark,jdbcType=VARCHAR},
|
|
remark = #{remark,jdbcType=VARCHAR},
|
|
|
|
|
+ define = #{define,jdbcType=VARCHAR},
|
|
|
tenant_id = #{tenantId,jdbcType=VARCHAR}
|
|
tenant_id = #{tenantId,jdbcType=VARCHAR}
|
|
|
where id = #{id,jdbcType=VARCHAR}
|
|
where id = #{id,jdbcType=VARCHAR}
|
|
|
</update>
|
|
</update>
|