Loading src/Service/Interfaces/StoreServiceInterface.php +20 −0 Original line number Diff line number Diff line Loading @@ -174,6 +174,26 @@ interface StoreServiceInterface */ public function getListStock($ids, $wareId = 0, $notWareId = []): array; /** * description:根据筛选条件获取仓库的库存列表 对库存筛选实现大一统 * 参数格式 不需要可不传入对应的键 * $args['inTeamIds'] =[]; $args['notInTeamIds'] = []; $args['inWhIds'] = []; //仓库id $args['notInWhIds'] = []; $args['inProductIds'] = []; $args['notInProductIds'] = []; $args['where'] = []; $args['group'] = ['product_id'];//默认['product_id'] $args['keyBy'] = 'product_id';//默认排序 * * author: fuyunnan * @param array $condition 筛选条件 * @return array * @throws * Date: 2020/7/27 */ public function getListStockWhere($condition): array; /** * description:检查是否有库存,有就返回库存数量(有记录) 给产品系统使用 Loading Loading
src/Service/Interfaces/StoreServiceInterface.php +20 −0 Original line number Diff line number Diff line Loading @@ -174,6 +174,26 @@ interface StoreServiceInterface */ public function getListStock($ids, $wareId = 0, $notWareId = []): array; /** * description:根据筛选条件获取仓库的库存列表 对库存筛选实现大一统 * 参数格式 不需要可不传入对应的键 * $args['inTeamIds'] =[]; $args['notInTeamIds'] = []; $args['inWhIds'] = []; //仓库id $args['notInWhIds'] = []; $args['inProductIds'] = []; $args['notInProductIds'] = []; $args['where'] = []; $args['group'] = ['product_id'];//默认['product_id'] $args['keyBy'] = 'product_id';//默认排序 * * author: fuyunnan * @param array $condition 筛选条件 * @return array * @throws * Date: 2020/7/27 */ public function getListStockWhere($condition): array; /** * description:检查是否有库存,有就返回库存数量(有记录) 给产品系统使用 Loading