|
|
# 修改资讯标签
|
|
|
|
|
|
> 接口名: `/guang/tags/updateTag
|
|
|
|
|
|
### 方法
|
|
|
|
|
|
> POST
|
|
|
|
|
|
### 入参
|
|
|
-------------------------
|
|
|
|属性名称|类型|例子|说明|
|
|
|
|--------|----|----|----|
|
|
|
|name|String|流行|分类名称|
|
|
|
|status|Byte|1|状态|
|
|
|
|orderBy|Byte|3|排序|
|
|
|
|advertCode|String|324dfasf|广告码|
|
|
|
---------------------
|
|
|
|
|
|
|
|
|
### 对应SQL的操作库表
|
|
|
|
|
|
```
|
|
|
<update id="updateByPrimaryKeySelective" parameterType="com.yohobuy.platform.dal.guang.model.ArticleTags" >
|
|
|
update article_tags
|
|
|
<set >
|
|
|
<if test="tagName != null" >
|
|
|
tag_name = #{tagName,jdbcType=VARCHAR},
|
|
|
</if>
|
|
|
<if test="classifyId != null" >
|
|
|
classify_id = #{classifyId,jdbcType=INTEGER},
|
|
|
</if>
|
|
|
<if test="isHot != null" >
|
|
|
is_hot = #{isHot,jdbcType=TINYINT},
|
|
|
</if>
|
|
|
<if test="status != null" >
|
|
|
status = #{status,jdbcType=TINYINT},
|
|
|
</if>
|
|
|
<if test="createTime != null" >
|
|
|
create_time = #{createTime,jdbcType=INTEGER},
|
|
|
</if>
|
|
|
</set>
|
|
|
where id = #{id,jdbcType=INTEGER}
|
|
|
</update>
|
|
|
```
|
|
|
|
|
|
### 错误编码
|
|
|
|
|
|
-------------------------
|
|
|
|错误码code|消息|说明|
|
|
|
|--------|----|----|
|
|
|
|200|修改成功| |
|
|
|
|400|修改失败| |
|
|
|
|
|
|
|
|
|
### 返回
|
|
|
|
|
|
``` json
|
|
|
{
|
|
|
"code": "200",
|
|
|
"message":"修改成功"
|
|
|
}
|
|
|
|
|
|
``` |
...
|
...
|
|