|
|
# 根据品类Id查询其品类信息
|
|
|
|
|
|
> 接口名: `/product/getProductSort`
|
|
|
|
|
|
### 方法
|
|
|
|
|
|
> POST JSONRAW
|
|
|
|
|
|
|
|
|
### 入参
|
|
|
|
|
|
-------------------------
|
|
|
|属性名称|类型|例子|说明|是否必填|长度限制|
|
|
|
|--------|----|----|----|--------|--------|
|
|
|
|param|number|1|分类的Id|Y|5
|
|
|
---------------------
|
|
|
|
|
|
### 对应SQL的操作库表
|
|
|
|
|
|
```xml
|
|
|
<select id="selectByPrimaryKey" resultMap="BaseResultMap" parameterType="java.lang.Short" >
|
|
|
select
|
|
|
<include refid="Base_Column_List" />
|
|
|
from product_sort
|
|
|
where id = #{id,jdbcType=SMALLINT}
|
|
|
</select>
|
|
|
```
|
|
|
|
|
|
### 错误编码
|
|
|
|
|
|
-------------------------
|
|
|
|错误码code|消息|说明|
|
|
|
|--------|----|----|
|
|
|
|200| 查询成功!| |
|
|
|
|500| 操作失败!| |
|
|
|
|
|
|
### 返回
|
|
|
|
|
|
``` json
|
|
|
{
|
|
|
"code": 200,
|
|
|
"data": {
|
|
|
"booleanStatus": true,
|
|
|
"createTime": 0,
|
|
|
"firstSortId": 8,
|
|
|
"firstSortName": "服配",
|
|
|
"gender": 3,
|
|
|
"id": 295,
|
|
|
"isHot": "N",
|
|
|
"orderBy": 0,
|
|
|
"parentId": 294,
|
|
|
"secondSortId": 294,
|
|
|
"secondSortName": "口罩",
|
|
|
"sortCode": "8,294,295",
|
|
|
"sortInitials": "kz",
|
|
|
"sortLevel": 3,
|
|
|
"sortName": "口罩",
|
|
|
"status": 1,
|
|
|
"updateTime": 0
|
|
|
},
|
|
|
"md5": "f9a3bf63e492b75addf512ea6cac7f8e",
|
|
|
"message": "Product Sort get success."
|
|
|
}
|
|
|
|
|
|
``` |
|
|
\ No newline at end of file |
...
|
...
|
|