CarInsurance.php 1.1 KB
<?php


namespace app\common\model\serviceapi;


use app\common\model\ServiceApi;

/**
 * 功能描述 华安车险险种信息
 * Class CarInsurance
 * @package app\common\model\commapi
 * Date: 2020/7/21
 * Time: 16:50
 * @author nyq
 */
class CarInsurance extends ServiceApi
{
    protected $table = "sos_car_insurance";
    protected $pk = "id";

    /**
     * 函数功能描述 根据订单号获取险种信息
     * Date: 2020/7/21
     * Time: 16:40
     * @author nyq
     */
    public function getCarInsurance($where) {
        $res = static::where($where)->select();
        return $res;
    }

    /**
     * 函数功能描述 根据订单号删除险种
     * @param $where1
     * @param $data
     * Date: 2020/7/21
     * Time: 16:47
     * @author nyq
     */
    public function getCarInsuranceDel($where) {
        $res = static::where($where)->delete();
        return $res;
    }

    /**
     * 函数功能描述 添加险种信息
     * @param $data
     * Date: 2020/7/21
     * Time: 16:50
     * @author nyq
     */
    public function addCarInsurance($data) {
        $res = static::insert($data);
        return $res;
    }





}