...
|
...
|
@@ -6231,3 +6231,69 @@ POST请求 请求参数 使用raw模式 |
|
|
|
|
|
```
|
|
|
|
|
|
# 查询指定父物理类目下一层次的物理类目,且值返回状态时开启的
|
|
|
|
|
|
> 接口名: `/product/queryPSListByParentIdWhenStatus`
|
|
|
|
|
|
### 方法
|
|
|
> POST JSONRAW
|
|
|
|
|
|
### 入参
|
|
|
|
|
|
-------------------------
|
|
|
|属性名称|类型|例子|说明|是否必填|长度限制|
|
|
|
|-------|----|----|----|-------|--------|
|
|
|
|param|Integer|父物理类目的ID|是|5
|
|
|
--------------------------------
|
|
|
|
|
|
### 对应SQL的操作库表
|
|
|
|
|
|
```xml
|
|
|
<select id="selectPSListbyParentIdWhenStatus" resultMap="BaseResultMap" parameterType="java.lang.Short">
|
|
|
select
|
|
|
<include refid="Base_Column_List" />
|
|
|
from product_sort WHERE 1 = 1
|
|
|
<if test="sortId != null" >
|
|
|
AND parent_id = #{sortId,jdbcType=SMALLINT}
|
|
|
</if>
|
|
|
AND status = 1
|
|
|
order by order_by asc;
|
|
|
</select>
|
|
|
```
|
|
|
|
|
|
### 响应码
|
|
|
|
|
|
-------------------------
|
|
|
|响应码code|消息|说明|
|
|
|
|--------|----|----|
|
|
|
|400| 入口参数不能为空| |
|
|
|
|200| queryPSListByParentIdWhenStatus success| |
|
|
|
|
|
|
### 返回
|
|
|
|
|
|
``` json
|
|
|
{
|
|
|
"code": 200,
|
|
|
"data": [
|
|
|
{
|
|
|
"booleanStatus": true,
|
|
|
"createTime": 1460079406,
|
|
|
"gender": 3,
|
|
|
"id": 594,
|
|
|
"isHot": "N",
|
|
|
"orderBy": 111,
|
|
|
"parentId": 592,
|
|
|
"sortCode": "592,594,0,0",
|
|
|
"sortInitials": "11",
|
|
|
"sortLevel": 2,
|
|
|
"sortName": "0408二级",
|
|
|
"status": 1,
|
|
|
"text": "0408二级",
|
|
|
"updateTime": 1460079542
|
|
|
}
|
|
|
],
|
|
|
"md5": "94ae24a3681479a04ebe2374950a8484",
|
|
|
"message": "queryPSListByParentIdWhenStatus List."
|
|
|
}
|
|
|
|
|
|
``` |
...
|
...
|
|