Authored by mali

更新品类的接口

# 新增物理分类
> 接口名: `/product/updateProductSort`
### 方法
> POST JSONRAW
### 入参
-------------------------
|属性名称|类型|例子|说明|是否必填|长度限制|
|--------|----|----|----|--------|--------|
|id|number|品类的Id|品类的ID|Y|5
|sortName|string|上衣|分类的名称|Y|30
|sortInitials|string|上衣|分类的简称|Y|10
|firstSortId|number|1|一级分类Id|N|5
|secondSortId|number|14|二级分类Id|N|5
|threeSortId|number|147|三级分类Id|N|5
|orderBy|number|1|当前子妹分类中的序值|Y|5
|status|number|1|分类的状态(1是开启 0是关闭)|Y|1
---------------------
### 对应SQL的操作库表
```xml
<update id="updateById" parameterType="com.yohobuy.platform.dal.product.model.ProductSort" >
update product_sort
<set >
<if test="sortName != null" >
sort_name = #{sortName,jdbcType=VARCHAR},
</if>
<if test="sortInitials != null" >
sort_initials = #{sortInitials,jdbcType=VARCHAR},
</if>
<if test="parentId != null" >
parent_id = #{parentId,jdbcType=SMALLINT},
</if>
<if test="orderBy != null" >
order_by = #{orderBy,jdbcType=SMALLINT},
</if>
<if test="gender != null" >
gender = #{gender,jdbcType=TINYINT},
</if>
<if test="sortCode != null" >
sort_code = #{sortCode,jdbcType=VARCHAR},
</if>
<if test="sortLevel != null" >
sort_level = #{sortLevel,jdbcType=SMALLINT},
</if>
<if test="isHot != null" >
is_hot = #{isHot,jdbcType=CHAR},
</if>
<if test="status != null" >
status = #{status,jdbcType=TINYINT},
</if>
<if test="createTime != null" >
create_time = #{createTime,jdbcType=INTEGER},
</if>
<if test="updateTime != null" >
update_time = #{updateTime,jdbcType=INTEGER},
</if>
</set>
where id = #{id,jdbcType=SMALLINT}
</update>
```
### 错误编码
-------------------------
|错误码code|消息|说明|
|--------|----|----|
|200| 添加成功!| |
|500| 操作失败!| |
### 返回
``` json
{
"code": 200,
"data": [],
"md5": "d751713988987e9331980363e24189ce",
"message": "Product Sort Update success."
}
```
\ No newline at end of file
... ...