20240120-ljl-routeConfig
ljl 10 months ago
parent 2b98aacc4e
commit de8fd543b1

@ -7,7 +7,7 @@ use Service\FulfillmentOrder\RsyncFulfillmentOrderService;
use Service\FulfillmentOrder\RsyncGoodsService;
use Service\Mall\MallService;
use Service\Order\RsyncOrderService;
use Service\OrderPrint\LogisticsService;
use Service\Logistics\LogisticsService;
class OverallController extends AbstractApiController {
private $areaService;

@ -1,6 +1,6 @@
<?php
use Service\OrderPrint\LogisticsService;
use Service\Logistics\LogisticsService;
class LogisticsController extends AbstractApiController {
private $logisticsService;

@ -178,7 +178,7 @@ class OrderPrintController extends AbstractApiController {
* @param array authMallIds * 授权店铺ID
*/
public function getHotProductList() {
$goodsList = $this->orderPrintService->getHotGoodsList($this->mallId, $_GET);
$goodsList = $this->orderPrintService->getHotProductList($this->mallId, $_GET);
return $this->renderSuccess(['goodsList' => $goodsList]);
}

@ -1,6 +1,6 @@
<?php
namespace Service\OrderPrint;
namespace Service\Logistics;
use AppConst;
use CommonTool;
@ -20,12 +20,9 @@ use Dao\OrderPrint\OpLogisticsStatusCheckBufferDao;
use Dao\OrderPrint\OpOrderExpressNoDao;
use Dao\OrderPrint\OpWaybillInfoDao;
use Dao\OrderSend\OpOrderOutstorageHistoryDao;
use Dao\OrderSend\OpOrderOutstorageHistoryTagDao;
use Dao\PendingMatter\PendingMasterQueueDao;
use Dao\PendingMatter\PendingMatterBufferDao;
use Dao\PendingMatter\PendingMatterCategoryDao;
use Dao\PendingMatter\PendingMatterDao;
use DbTool;
use ExcelTool;
use Exception;
use Exception\BizException;
@ -39,10 +36,8 @@ use OrderPrintTool;
use PddApi;
use PermissionTool;
use PurchaseOrderConst;
use Repository\Order\OrderDecryptRepository;
use Repository\OrderPrint\OrderPrintRepository;
use Service\AbstractService;
use StatusConst;
use ZcArrayHelper;
use ZcDateHelper;
use ZcDbEval;

@ -876,6 +876,25 @@ class OrderPrintService extends AbstractService {
return $goodsList;
}
public function getHotProductList($data, $operatorInfo) {
/* $mallId = $operatorInfo['mallId'];
$filterCondition = $this->getFilterOrderCondition($data, $operatorInfo);
$filterCondition['excludeMergedChildOrder'] = false;
list($orderIds, $productList) = $this->getOrderIdsHotProductList($sellerId, $filterCondition);
$sellerIdAndSellerNameMap = $this->sellerDao->getSellerIdAndSellerNameMap($filterCondition['filterVenderIds']);
foreach ($productList as &$product) {
$product['shopName'] = $sellerIdAndSellerNameMap[$product['sellerId']];
}
unset($product);
return [
'productList' => $productList,
'productNameMap' => array_column($productList, 'skuName', 'itemId'),
'orderIds' => $orderIds,
]; */
return [];
}
public function getHotGoodsListByMallIds($mallIds) {
if (empty($mallIds)) {
return [];

Loading…
Cancel
Save