...
|
...
|
@@ -20,57 +20,55 @@ |
|
|
|
|
|
### 对应SQL的操作库表
|
|
|
|
|
|
```
|
|
|
<insert id="insertSelective" parameterType="com.yohobuy.platform.dal.guang.model.ArticleSort">
|
|
|
insert into article_sort
|
|
|
<trim prefix="(" suffix=")" suffixOverrides=",">
|
|
|
<if test="id != null">
|
|
|
id,
|
|
|
</if>
|
|
|
<if test="parentId != null">
|
|
|
parent_id,
|
|
|
</if>
|
|
|
<if test="name != null">
|
|
|
name,
|
|
|
</if>
|
|
|
<if test="status != null">
|
|
|
status,
|
|
|
</if>
|
|
|
<if test="orderBy != null">
|
|
|
order_by,
|
|
|
</if>
|
|
|
<if test="advertCode != null">
|
|
|
advert_code,
|
|
|
</if>
|
|
|
<if test="createTime != null">
|
|
|
create_time,
|
|
|
</if>
|
|
|
</trim>
|
|
|
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
|
|
<if test="id != null">
|
|
|
#{id,jdbcType=INTEGER},
|
|
|
</if>
|
|
|
<if test="parentId != null">
|
|
|
#{parentId,jdbcType=INTEGER},
|
|
|
</if>
|
|
|
<if test="name != null">
|
|
|
#{name,jdbcType=VARCHAR},
|
|
|
</if>
|
|
|
<if test="status != null">
|
|
|
#{status,jdbcType=TINYINT},
|
|
|
</if>
|
|
|
<if test="orderBy != null">
|
|
|
#{orderBy,jdbcType=TINYINT},
|
|
|
</if>
|
|
|
<if test="advertCode != null">
|
|
|
#{advertCode,jdbcType=VARCHAR},
|
|
|
</if>
|
|
|
<if test="createTime != null">
|
|
|
#{createTime,jdbcType=INTEGER},
|
|
|
</if>
|
|
|
</trim>
|
|
|
</insert>
|
|
|
```
|
|
|
insert into article_sort
|
|
|
<trim prefix="(" suffix=")" suffixOverrides=",">
|
|
|
<if test="id != null">
|
|
|
id,
|
|
|
</if>
|
|
|
<if test="parentId != null">
|
|
|
parent_id,
|
|
|
</if>
|
|
|
<if test="name != null">
|
|
|
name,
|
|
|
</if>
|
|
|
<if test="status != null">
|
|
|
status,
|
|
|
</if>
|
|
|
<if test="orderBy != null">
|
|
|
order_by,
|
|
|
</if>
|
|
|
<if test="advertCode != null">
|
|
|
advert_code,
|
|
|
</if>
|
|
|
<if test="createTime != null">
|
|
|
create_time,
|
|
|
</if>
|
|
|
</trim>
|
|
|
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
|
|
<if test="id != null">
|
|
|
#{id,jdbcType=INTEGER},
|
|
|
</if>
|
|
|
<if test="parentId != null">
|
|
|
#{parentId,jdbcType=INTEGER},
|
|
|
</if>
|
|
|
<if test="name != null">
|
|
|
#{name,jdbcType=VARCHAR},
|
|
|
</if>
|
|
|
<if test="status != null">
|
|
|
#{status,jdbcType=TINYINT},
|
|
|
</if>
|
|
|
<if test="orderBy != null">
|
|
|
#{orderBy,jdbcType=TINYINT},
|
|
|
</if>
|
|
|
<if test="advertCode != null">
|
|
|
#{advertCode,jdbcType=VARCHAR},
|
|
|
</if>
|
|
|
<if test="createTime != null">
|
|
|
#{createTime,jdbcType=INTEGER},
|
|
|
</if>
|
|
|
</trim>
|
|
|
</insert>
|
|
|
|
|
|
### 错误编码
|
|
|
|
...
|
...
|
|