Commit cd213a3c authored by zhangdongying's avatar zhangdongying
Browse files

新增批量更新子产品RPC

parent 50165b77
Loading
Loading
Loading
Loading
+8 −0
Original line number Diff line number Diff line
@@ -143,4 +143,12 @@ interface ProductChildServiceInterface
     * @return array GroupBy('product_id')
     */
    public function getListByProductIds(array $productIds, array $columns = ['*']): array;

    /**
     * 批量更新子产品
     *
     * @param array $updates 更新数据,[['id' => 1, 'cost' => '1.11'], ['id' => 2, 'cost' => '1.11']]
     * @return bool
     */
    public function updateChildProducts(array $updates): bool;
}