getPrice.md
1.4 KB
根据skn获取价格信息
接口名: '/product/getProductPrice'
方法
POST JSONRAW
入参
属性名称 | 类型 | 例子 | 说明是否必填 | 长度限制 |
---|---|---|---|---|
param | number | 5000060 | 商品的Skn | Y |
对应SQL的操作库表
<select id="selectByPrimaryKey" resultMap="BaseResultMap" parameterType="java.lang.Integer" >
select
<include refid="Base_Column_List" />
from product_price
where product_skn = #{productSkn,jdbcType=INTEGER}
</select>
错误编码
错误码code | 消息 | 说明 |
---|---|---|
200 | 添加成功! | |
400 | 操作失败! | |
500 | 操作失败! |
返回 (备注 : costPrice 成本价 purchasePrice 进货价 purchaseDiscount 进货折扣 )
{
"code": 200,
"data": {
"cost_price": 0,
"founder": 9278,
"product_skn": 50000063,
"purchase_discount": 0,
"purchase_price": 0,
"retail_price": 50,
"return_coin": 9999,
"sales_price": 211.22,
"updateTime": "2016-02-03 13:33:15",
"vip1_price": 200.66,
"vip2_price": 190.1,
"vip3_price": 185.87,
"vip_discount_type": 1,
"vip_price": 9999
},
"md5": "cfb9c7b74370346f4bd55fabb7f1deae",
"message": "Product Price get success."
}