成本价增加字段
接口改动
Station工程
product/sku_salemenu/list 改动
Method: GET
请求:
不变
响应:
{
"data": [{
新增
latest_in_stock_price 最近入库价 不存在为null
latest_quote_price 最近询价 不存在为null
}],
其他不变
}
merchandise/spu/index 改动
Method: GET
请求:
不变
响应:
{
"data": [{
"skus": [{
新增
latest_in_stock_price 最近入库价 不存在为null
latest_quote_price 最近询价 不存在为null
}],
}],
其他不变
}
task/purchase/search 改动
Method: GET
请求:
不变
响应:
{
"data": [{
新增
latest_in_stock_price 最近入库价 不存在为null
latest_quote_price 最近询价 不存在为null
}],
其他不变
}
station/price_rule/edit 改动
Method: GET
请求:
不变
响应:
{
"data": {
"skus": [{
新增
latest_in_stock_price 最近入库价 不存在为null
latest_quote_price 最近询价 不存在为null
}],
},
其他不变
}
station/order/order_sku_list 改动
Method: GET
请求:
不变
响应:
{
"data": {
"list": [{
新增
latest_in_stock_price 最近入库价 不存在为null
latest_quote_price 最近询价 不存在为null
}],
},
"msg": "ok",
"code": 0
}
station/order/edit 改动
Method: GET
请求:
不变
响应:
{
"data": {
"details": [{
新增
latest_in_stock_price 最近入库价 不存在为null
latest_quote_price 最近询价 不存在为null
}],
},
"msg": "ok",
"code": 0
}
station/skus/addr 改动
Method: GET
请求:
不变
响应:
{
"data": [{
新增
latest_in_stock_price 最近入库价 不存在为null
latest_quote_price 最近询价 不存在为null
}],
"msg": "ok",
"code": 0
}
station/skus 改动
Method: GET
请求:
不变
响应:
{
"data": [{
新增
latest_in_stock_price 最近入库价 不存在为null
latest_quote_price 最近询价 不存在为null
}],
"msg": "ok",
"code": 0
}
/station/order/batch/upload 改动
Method: GET
请求:
不变
响应:
{
"data":{
"details":[{
"skus":[{
新增
latest_in_stock_price 最近入库价 不存在为null
latest_quote_price 最近询价 不存在为null
}],
}],
},
"msg": "ok",
"code": 0
}
/station/order/batch/result 改动
Method: GET
请求:
不变
响应:
{
"data":{
"details":[{
"skus":[{
新增
latest_in_stock_price 最近入库价 不存在为null
latest_quote_price 最近询价 不存在为null
}],
}],
},
"msg": "ok",
"code": 0
}
station/ref_price_type/set 改动
Method: POST
请求:
其他不变
type: 新增两个类型{5:latest_quote_price, 6:latest_in_stock_price}
响应:
不变
station/ref_price_type/get 改动
Method: GET
请求:
不变
响应:
其他不变
type: 新增两个类型{5:latest_quote_price, 6:latest_in_stock_price}
刷数据
把in_stock_log这张表中数据刷到purchase_specification中去。
涉及的字段:
supplier_id: 供应商id
price: 入库价格
time: 最后入库的时间
涉及最近入库价写入purchase_specification表中的地方需要修改:
- InStockSheetDetailModify
- __spec_snap()
涉及查询最近入库价的地方需要修改:
- get_ref_price_by_sku_and_order_id()
- get_ref_price()
- get_all_ref_price()
- get_single_ref_price()
- filling_ref_price()
涉及到REF_PRICE_TYPE的地方都需要修改(全局搜索)。