Commit e7380319 authored by Liu lu's avatar Liu lu
Browse files

通过供应链生产单号批量获取工厂端分派生产单号数据

parents 1d39282d 28387a80
Loading
Loading
Loading
Loading
+62 −0
Original line number Diff line number Diff line
<?php

declare(strict_types=1);

namespace Meibuyu\Rpc\Service\Interfaces\DatacenterNew;


/**
 * @author chentianyu
 */
interface StockPlanServiceInterface
{

    /**
     * 获取历史销量分页
     * @param array $params ['year'=>2013,'sku'=>'aabbcc']
     * @return mixed
     * @author chentianyu
     */
    public function getProductChildrenHistorySalePaginate(array $params);

    /**
     * 导出历史销量
     * @param array $params ['year'=>2013,'sku'=>'aabbcc']
     * @return mixed
     * @author chentianyu
     */
    public function exportProductChildrenHistorySale(array $params);

    /**
     * 获取预测销量分页
     * @param array $params ['year'=>2013,'sku'=>'aabbcc']
     * @return mixed
     * @author chentianyu
     */
    public function getProductEstimateSalePaginate(array $params);

    /**
     * 导出预测销量
     * @param array $params ['year'=>2013,'sku'=>'aabbcc']
     * @return mixed
     * @author chentianyu
     */
    public function exportProductEstimateSale(array $params);

    /**
     * 获取月度历史销量
     * @param array $params eg: ['product_id'=>123,'product_child_id'=>1236,'start_month'=>'2023-01','end_month'=>'2023-08']
     * @return array eg: {"2023-01": "34232","2023-02": "23432"}
     * @author chentianyu
     */
    public function getMonthHistorySale(array $params);

    /**获取月度预测销量
     * @param array $params eg: ['product_id'=>123,'start_month'=>'2023-01','end_month'=>'2023-08']
     * @return array eg: {"2023-01": "34232","2023-02": "23432"}
     * @author chentianyu
     */
    public function getMonthEstimateSale(array $params);


}
 No newline at end of file
+8 −0
Original line number Diff line number Diff line
@@ -222,6 +222,14 @@ interface FactoryServiceInterface
    public function getCraftDocAddressByDeliveryNo($deliveryNo);


    /**
     * 通过名称获取工厂信息
     * @param $params
     * @return mixed
     */
    public function getFactoryInfoByNames($params);


    /**
     * 通过供应链生产单号批量获取工厂端分派生产单号数据
     * @param array $productionNo
+9 −0
Original line number Diff line number Diff line
@@ -112,4 +112,13 @@ interface MaterialServiceInterface
    public function getProductColorMaterialInfo($productId,$productChildIds=[],$keyBy='id');



    /**
     * 获取产品原料信息工艺单等
     * @param $params
     * @return array
     */
    public function getProductStuffInfo($params);


}
+25 −0
Original line number Diff line number Diff line
<?php


namespace Meibuyu\Rpc\Service\Interfaces\Production;


interface FactoryProductStockServiceInterface
{

    /**
     * 获取已绑定合作的sku列表
     * @return mixed
     */
    public function getFactoryWithSkuList($params);



    /**
     * 获取最新的原料信息
     * @param $productId
     * @author Liu lu
     * date 2023-03-28
     */
    public function getRecentMaterialInfo($productId);
}
 No newline at end of file