OrderModel.php 571 字节
<?php
/**
 * Created by PhpStorm.
 * User: Administrator
 * Date: 2019/1/7
 * Time: 16:23
 */

namespace app\index\model;


use think\Model;

class OrderModel extends Model
{
    public function insertData($data){
        $result = $this->insertGetId($data);
        return $result;
    }
    public function findData($where){
        $data = $this->where($where)->find();
        return $data;
    }
    public function selectData($where){
        $where['delete_time'] = ['eq',0];
        $data = $this->where($where)->select()->toArray();
        return $data;
    }
}