审查视图

app/index/model/OrderRenewModel.php 406 字节
王晓刚 authored
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20
<?php
/**
 * Created by PhpStorm.
 * User: Administrator
 * Date: 2019/1/8
 * Time: 9:05
 */

namespace app\index\model;


use think\Model;

class OrderRenewModel extends Model
{
    public function findData($where){
        $data = $this->where($where)->find();
        return $data;
    }
    public function insertData($data){
王晓刚 authored
21
        $result = $this->insertGetId($data);
王晓刚 authored
22 23 24
        return $result;
    }
}