quanwei
18 hours ago c441dea81bd86bdfb12dff35821fed51f4cc91c2
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
<?php
 
namespace app\operations\model\plus\bargain;
 
use app\common\model\plus\bargain\BargainSku as BargainSkuModel;
 
/**
 * Class BargainProductSku
 * 砍价商品规格模型
 * @package app\operations\model\plus\bargain
 */
class BargainSku extends BargainSkuModel
{
    /**
     * @param $data
     * 保存数据
     * @return \think\Collection
     */
    public function editAll($data)
    {
        return self::saveAll($data);
    }
 
    /**
     *删除商品规格
     */
    public function delSku($id)
    {
        $this->where('bargain_product_id', '=', $id)->delete();
        return true;
    }
}