getLimitProduct.md
1.89 KB
查询限定商品详情接口
接口名:
/limitProduct/getLimitProduct
方法
POST JSONRAW
入参
属性名称 | 类型 | 例子 | 说明 | 是否必填 | 长度限制 |
---|---|---|---|---|---|
id | Integer | 83 | 限定商品表示 | 是 | 11 |
对应SQL的操作库表
<select id="selectLimitProduct" resultMap="BaseResultMap" >
select
<include refid="Base_Column_List" />
from limit_product p
where 1=1
<if test="id != null and id != ''" >
and p.id = #{id,jdbcType=INTEGER}
</if>
</select>
<select id="selectLimitProductAttachByProductIds" resultMap="BaseResultMap" parameterType="java.lang.Integer" >
select
<include refid="Base_Column_List" />
from limit_product_attach p
where
<foreach item="item" collection="list" index="index" separator="or" open="(" close=")">
p.product_id = #{item}
</foreach>
</select>
响应码
响应码code | 消息 | 说明 |
---|---|---|
200 | 操作成功. |
返回
{
"code": 200,
"message": "",
"data": {
"code": 200,
"data": {
"attachUrl": "http://img10.static.yhbimg.com/goodsimg/2016/04/20/10/01c1d3796667ec0d12080ba1eba717d496.jpg",
"dayFlag": 1,
"hotFlag": 0,
"id": 406,
"limitProductCode": "2016042018243782",
"notSaleOrderBy": 0,
"orderBy": 0,
"productName": "限购测试商品用例",
"productSkn": 50000181,
"saleFlag": 1,
"saleTime": 1461206700,
"saleTimeStr": "2016-04-21 10:45:00",
"showFlag": 1,
"status": 1
},
"md5": "a2acac4943f9a01781513ef58b1b94fd",
"message": "获取列表成功"
}
}