Commit 27b2575e authored by luhongguang's avatar luhongguang

update:获取拼单商品

parent 33bd09f0
......@@ -359,6 +359,7 @@ class MarketingPindanGoodsService
*/
public static function getPindanGoodsList($params)
{
$params['goods_sku_ids'] = !empty($params['goods_sku_ids']) ? $params['goods_sku_ids'] : "";
$params['page'] = !empty($params['page']) ? $params['page'] : 1;
$limit = !empty($params['page_size']) ? $params['page_size'] : 20;
$page = ($params['page'] - 1) * $limit;
......@@ -370,6 +371,10 @@ class MarketingPindanGoodsService
if (!empty($params["goods_name"])) {
$where["goods_name[~]"] = $params["goods_name"];
}
if (!empty($params["goods_sku_ids"])) {
$where["goods_sku_id"] = explode(",", $params["goods_sku_ids"]);
}
$where['LIMIT'] = [$page, $limit];
$where['ORDER'] = ["update_time" => "DESC"];
......@@ -392,6 +397,8 @@ class MarketingPindanGoodsService
if (!empty($otaData) && !empty($otaData[$item["ota_id"]])) {
$list[$key]["ota_name"] = $otaData[$item["ota_id"]]["ota_name"];
}
$ksyun = GoodsService::getUrlList($item["desc_pic_url"]);
$list[$key]["desc_pic_url_list"] = $ksyun;
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment